Skip to content

Add Strale agent-capabilities cursor rule#212

Open
petterlindstrom79 wants to merge 3 commits intoPatrickJS:mainfrom
petterlindstrom79:add-strale-capability-rules
Open

Add Strale agent-capabilities cursor rule#212
petterlindstrom79 wants to merge 3 commits intoPatrickJS:mainfrom
petterlindstrom79:add-strale-capability-rules

Conversation

@petterlindstrom79
Copy link
Copy Markdown

@petterlindstrom79 petterlindstrom79 commented Mar 25, 2026

Adds a .cursorrules rule for AI agents using Strale's data capabilities.

Strale's MCP server (and SDK) gives agents access to a catalog of data capabilities — company registry lookups across 27 countries, sanctions/PEP screening, IBAN/VAT/LEI validation, web extraction, document parsing, and EU compliance checks. The rule tells the IDE-paired model when to reach for Strale and how to wire it up via MCP.

  • npm: strale-mcp (MCP server, stdio + Streamable HTTP)
  • SDK: straleio (npm + PyPI)
  • Free tier: five capabilities work without an API key
  • Docs: https://strale.dev/docs

Two files added: .cursorrules (the rule) and README.md (companion doc). 71 lines total.

Summary by CodeRabbit

  • Documentation
    • Added docs describing Strale agent capabilities for KYB/business checks, financial identifier validation, sanctions/PEP/adverse media screening, and structured data extraction (web/PDF/invoices)
    • Includes setup and integration guidance, configuration examples, SDK install snippets, and a reference link
    • Notes which capabilities are available on a free tier versus those requiring an API key

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 25, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9f5d8d39-31b2-4050-9e87-2e71f46d1e0c

📥 Commits

Reviewing files that changed from the base of the PR and between f1a8afe and 066e333.

📒 Files selected for processing (1)
  • rules/strale-agent-capabilities-cursorrules-prompt-file/.cursorrules
✅ Files skipped from review due to trivial changes (1)
  • rules/strale-agent-capabilities-cursorrules-prompt-file/.cursorrules

📝 Walkthrough

Walkthrough

Adds a new .cursorrules prompt file and accompanying README that define Strale agent capability triggers, invocation patterns (search → execute), capability catalog (KYB, financial ID validation, sanctions/PEP, extraction, compliance checks), and MCP/SDK integration examples.

Changes

Cohort / File(s) Summary
Strale agent rules & docs
rules/strale-agent-capabilities-cursorrules-prompt-file/.cursorrules, rules/strale-agent-capabilities-cursorrules-prompt-file/README.md
New Cursor rules file specifying trigger conditions, expected strale_searchstrale_execute flow, capability slugs, input/output structure, free vs paid capability notes, MCP server JSON example and SDK (npm/pip) installation and links to docs.

Sequence Diagram(s)

sequenceDiagram
  participant User as User/Agent
  participant Agent as AI Agent
  participant MCP as MCP Server
  participant Strale as Strale Capability
  participant Ext as External Data Source

  User->>Agent: Request verification/compliance task
  Agent->>MCP: strale_search(query) — locate capability slug
  MCP-->>Agent: capability slug
  Agent->>Strale: strale_execute(capability_slug, structured_input)
  Strale->>Ext: optional fetch/extraction (web/PDF/invoice)
  Ext-->>Strale: extracted structured data
  Strale-->>Agent: structured JSON result + quality metadata
  Agent->>User: return findings
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Suggested reviewers

  • PatrickJS

Poem

🐰 I hopped to read the rules today,

Strale guides the verification way.
KYB, IBAN, and sanction cues,
I munch the docs and share the news.
Hooray — tidy data on display!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'Add Strale agent-capabilities cursor rule' accurately reflects the main change—adding a new .cursorrules file for Strale agent capabilities (KYB, compliance, and financial validation).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
rules/strale-agent-capabilities-cursorrules-prompt-file/.cursorrules (1)

13-14: Verify the JSON configuration syntax.

The JSON configuration on line 14 appears to be a single-line representation. While this is technically valid JSON, it may be harder for users to read and copy-paste correctly compared to a multi-line formatted example.

📝 Suggested formatting improvement for readability
-Setup (add to MCP config):
-{ "mcpServers": { "strale": { "command": "npx", "args": ["-y", "strale-mcp"] } } }
+Setup (add to MCP config):
+```json
+{
+  "mcpServers": {
+    "strale": {
+      "command": "npx",
+      "args": ["-y", "strale-mcp"]
+    }
+  }
+}
+```
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@rules/strale-agent-capabilities-cursorrules-prompt-file/.cursorrules` around
lines 13 - 14, The JSON example for the MCP config is valid but hard to read as
a single line; reformat the single-line object into a readable multi-line JSON
block so users can copy it easily—expand the top-level "mcpServers" object and
the nested "strale" entry, placing "command": "npx" and "args": ["-y",
"strale-mcp"] on their own lines (preserve keys "mcpServers", "strale",
"command", and "args" and the argument "strale-mcp").
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@rules/strale-agent-capabilities-cursorrules-prompt-file/README.md`:
- Around line 1-4: Update the README to include author attribution: add an
"Author" line or short credits paragraph near the top of the file (e.g.,
directly under the title) that names the original author and optionally their
contact or source, and add a one-sentence note linking the README to the
corresponding .cursorrules file (e.g., "This README accompanies
rules/strale-agent-capabilities-cursorrules-prompt-file.cursorrules"). Ensure
the credit is clear and concise and matches the project’s author-attribution
style used elsewhere.

---

Nitpick comments:
In `@rules/strale-agent-capabilities-cursorrules-prompt-file/.cursorrules`:
- Around line 13-14: The JSON example for the MCP config is valid but hard to
read as a single line; reformat the single-line object into a readable
multi-line JSON block so users can copy it easily—expand the top-level
"mcpServers" object and the nested "strale" entry, placing "command": "npx" and
"args": ["-y", "strale-mcp"] on their own lines (preserve keys "mcpServers",
"strale", "command", and "args" and the argument "strale-mcp").

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 70134732-0c69-4de7-b06a-4a163b6a6de8

📥 Commits

Reviewing files that changed from the base of the PR and between fc2ce04 and 9c5db87.

📒 Files selected for processing (2)
  • rules/strale-agent-capabilities-cursorrules-prompt-file/.cursorrules
  • rules/strale-agent-capabilities-cursorrules-prompt-file/README.md

Comment thread rules/strale-agent-capabilities-cursorrules-prompt-file/README.md
@petterlindstrom79
Copy link
Copy Markdown
Author

Hi — just checking in on this PR. Happy to address any feedback or make adjustments if needed. Let me know if there's anything blocking the merge.

@petterlindstrom79
Copy link
Copy Markdown
Author

Friendly ping — this has been open for a while. Let me know if there's anything I can do to move it forward.

@petterlindstrom79
Copy link
Copy Markdown
Author

Hey — just a gentle nudge on this one. PR is still mergeable and CodeRabbit comments are addressed. Happy to rebase or adjust anything needed. Thanks!

Drop "quality scores" and "250+ capabilities" claims; describe what
the rule actually covers (company registry lookups, sanctions/PEP
screening, financial validation, document extraction).
@petterlindstrom79 petterlindstrom79 changed the title Add Strale agent capabilities rule (KYB, compliance, financial validation) Add Strale agent-capabilities cursor rule Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant