-
Notifications
You must be signed in to change notification settings - Fork 0
Tooling freshness, cross-skill handoffs, and multi-agent discoverability #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+379
−278
Merged
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
6deb71d
Update tooling versions: snforge 0.57.0, Scarb 2.16.x
omarespejel be05b14
Add cross-skill handoff mechanism
omarespejel b98cd76
Add recommended Scarb.toml template with current versions
omarespejel 7084605
Add multi-agent discovery: AGENTS.md, llms.txt, Cursor rules
omarespejel 846eb31
Resolve PR45 handoff and frontmatter review feedback
omarespejel 0074508
Address remaining PR45 reviewer feedback
omarespejel 6aa0ea4
Harden handoff rules and align docs metadata
omarespejel cd4e31f
Define authoring-to-auditor handoff chain
omarespejel bf6cc81
Make post-optimization auditor run explicit
omarespejel 62cafa7
Regenerate website snapshot
omarespejel 637df7d
Add README frontmatter metadata
omarespejel d0a3e4b
Clarify optional optimization flow and handoff validation
omarespejel 2ad8e19
Reorder handoff validation and fix llms cursor guidance
omarespejel c5f144b
Refine cursor setup and testing checklist wording
omarespejel c65c088
chore: retrigger review checks
omarespejel f5eaed2
fix: strengthen handoff coverage signal and optimization workflow gate
omarespejel 36bb80a
fix: use plain handoff path refs to satisfy SKILL validator
omarespejel 46f1b32
fix: remove duplicate auditor invocation in optimization quick start
omarespejel 330b59f
fix: align handoff timing docs and add oz introspection dep
omarespejel d9aa1d7
fix: align handoff chain source labels with quick-start emit steps
omarespejel 6e15fd6
chore: retrigger review checks
omarespejel 4c3ff70
fix: clarify handoff validation and toolchain version guidance
omarespejel 70f926c
fix: align starknet version baseline in authoring reference
omarespejel 419597c
fix: align cursor copied skills with example prompt
omarespejel 891f3e2
fix: clarify canonical handoff refs and cursor copy context
omarespejel 4d95476
fix: align handoff claim and strengthen parity checks
omarespejel ae9c170
docs: remove technical blog post from repository
omarespejel b37592a
docs: correct snforge 0.57 scarb minimum in testing reference
omarespejel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| name: cursor-starknet-skills | ||
| description: Router and enforcement rules for using starknet-skills in Cursor. | ||
| --- | ||
|
|
||
| # Starknet Skills for Cursor | ||
|
|
||
| This project provides Cairo/Starknet skills for AI coding agents. When working on Cairo contracts, load the appropriate skill from this repository. | ||
|
|
||
| ## Skill Router | ||
|
|
||
| Each skill is at `<skill-name>/SKILL.md`. Read it and follow its orchestration steps. | ||
|
|
||
| | Task | Skill to load | | ||
| |------|---------------| | ||
| | Write a new Cairo contract | `cairo-contract-authoring/SKILL.md` | | ||
| | Add tests to a contract | `cairo-testing/SKILL.md` | | ||
| | Optimize gas/steps | `cairo-optimization/SKILL.md` | | ||
| | Security review | `cairo-auditor/SKILL.md` | | ||
| | Deploy/declare/verify | `cairo-toolchain/SKILL.md` | | ||
|
|
||
| ## Current Tooling (March 2026) | ||
|
|
||
| - Scarb >= 2.14.0 (recommended 2.16.x) | ||
| - Starknet Foundry 0.57.0 | ||
| - OpenZeppelin Cairo 3.0.0 | ||
|
|
||
| ## Security Rules (always enforced) | ||
|
|
||
| 1. Every storage-mutating external has explicit access posture: guarded or documented-public. | ||
| 2. Constructor validates all critical addresses are non-zero. | ||
| 3. Upgrade flows reject zero class-hash values. | ||
| 4. Timelock checks read from `get_block_timestamp()`, never from caller arguments. | ||
| 5. Anti-pattern/secure-pattern pairs enforced — the anti-pattern is never written. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,47 @@ | ||
| # starknet-skills | ||
| --- | ||
| name: repo-agent-instructions | ||
| description: Top-level guidance for agents using starknet-skills modules. | ||
| --- | ||
|
|
||
| Canonical router: [SKILL.md](./SKILL.md) | ||
| # Agent Instructions | ||
|
|
||
| This repository contains Cairo/Starknet skills for AI coding agents. Each skill is a prescriptive orchestrator — it tells you exactly what to load, what to check, and in what order. | ||
|
|
||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| ## Available Skills | ||
|
|
||
| | Skill | Use when | Entry point | | ||
| |-------|----------|-------------| | ||
| | **cairo-auditor** | Security review of Cairo contracts | `cairo-auditor/SKILL.md` | | ||
| | **cairo-contract-authoring** | Writing new contracts or modifying existing ones | `cairo-contract-authoring/SKILL.md` | | ||
| | **cairo-testing** | Writing unit, integration, fuzz, or regression tests | `cairo-testing/SKILL.md` | | ||
| | **cairo-optimization** | Profiling and optimizing gas/steps | `cairo-optimization/SKILL.md` | | ||
| | **cairo-toolchain** | Build, declare, deploy, verify operations | `cairo-toolchain/SKILL.md` | | ||
| | **account-abstraction** | Account abstraction patterns and risks | `account-abstraction/SKILL.md` | | ||
| | **starknet-network-facts** | Starknet network constraints and semantics | `starknet-network-facts/SKILL.md` | | ||
|
|
||
| ## Recommended Flow | ||
|
|
||
| For new contract work, use this sequence: | ||
|
|
||
| 1. `cairo-contract-authoring` — write the contract | ||
| 2. `cairo-testing` — add tests | ||
| 3. `cairo-optimization` — optimize hot paths (if needed) | ||
| 4. `cairo-auditor` — security review | ||
|
|
||
| ## How to Use | ||
|
|
||
| Each `SKILL.md` file contains: | ||
| - **When to Use / When NOT to Use** — scope boundaries | ||
| - **Quick Start** — 5-step summary | ||
| - **Orchestration** — turn-by-turn instructions with exact tool calls | ||
| - **Security-Critical Rules** — non-negotiable constraints | ||
| - **References** — links to detailed reference material | ||
|
|
||
| Read the `SKILL.md` for the task at hand. Follow its orchestration steps. Load references only when the orchestration tells you to — this keeps context focused. | ||
|
|
||
| ## Tooling Versions (March 2026) | ||
|
|
||
| - Scarb: >= 2.14.0 (recommended 2.16.x) | ||
| - Starknet Foundry (snforge/sncast): 0.57.0 | ||
| - OpenZeppelin Cairo: 3.0.0 | ||
| - Cairo edition: 2024_07 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.