cyotee/cyotee-claude-plugin-crane/crane-natspec
Claude Code and agent skill by cyotee/cyotee-claude-plugin-crane
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks about "natspec", "documentation", "include-tag", "selector", "cast", "@custom:signature", "@custom:selector", "@custom:topiczero", "@custom:interfaceid", "AsciiDoc", or needs guidance on documenting Crane contracts with NatSpec and AsciiDoc include-tags.
Install
npx vskill@latest install cyotee/cyotee-claude-plugin-crane/crane-natspecSKILL.md
Crane NatSpec & Documentation Standards
Crane uses NatSpec combined with AsciiDoc include-tags for accurate, extractable documentation.
AsciiDoc Include-Tags
Wrap documented symbols with include-tags for documentation extraction:
Tag Format Rules
- Tag markers must match exactly (no extra spaces inside
[]) - Tag name should match the symbol being documented
- Use PascalCase for tag names matching type names
- Use camelCase for function tag names
Example Usage
Custom NatSpec Tags
Functions
| Tag | Purpose | Example | |
|---|---|---|---|
@custom:signature | Canonical signature string | transfer(address,uint256) | |
@custom:selector | bytes4 selector | 0xa9059cbb |
Errors
| Tag | Purpose | Example | |
|---|---|---|---|
@custom:signature | Canonical error signature | NotOwner(address) | |
@custom:selector | bytes4 selector | 0x30cd7471 |
Events
| Tag | Purpose | Example | |
|---|---|---|---|
@custom:signature | Canonical event signature | Transfer(address,address,uint256) | |
@custom:topiczero | bytes32 topic0 hash | 0xddf252ad... |
Note: Events use @custom:topiczero (bytes32), not @custom:selector (bytes4).
ERC-165 Interfaces
| Tag | Purpose | Example | |
|---|---|---|---|
@custom:interfaceid | bytes4 interface ID | 0x01ffc9a7 |
Computing Values with cast
Use Foundry's cast to compute selectors and hashes:
Function Selector (bytes4)
Error Selector (bytes4)
Event Topic0 (bytes32)
Interface ID (bytes4)
For interface IDs, prefer computing in Solidity:
Or compute manually by XOR-ing all function selectors:
Complete Documentation Example
Validation Checklist
For each documented symbol, verify:
- [ ] Include-tags wrap the symbol correctly
- [ ] Tag names match symbol names
- [ ]
@custom:signaturematches actual signature exactly - [ ]
@custom:selectorcomputed correctly (functions/errors) - [ ]
@custom:topiczerocomputed correctly (events) - [ ]
@custom:interfaceidcomputed correctly (interfaces) - [ ] NatSpec params match function parameters
Additional Resources
Reference Files
- `references/natspec-examples.md` - More complete examples
Quick Reference
| Symbol Type | Selector Tag | Hash Type | |
|---|---|---|---|
| Function | @custom:selector | bytes4 | |
| Error | @custom:selector | bytes4 | |
| Event | @custom:topiczero | bytes32 | |
| Interface | @custom:interfaceid | bytes4 (XOR of selectors) |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/crane-natspec/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cyotee/cyotee-claude-plugin-crane/crane-natspec)