story-skills
CLAUDE.md4 starsChanged 9 months agoMITView on GitHub
AI-powered skills for Story Protocol development. This monorepo contains two marketplace skill packages: SDK (TypeScript) and Contracts (Solidity). All operations go through Nx: All packages use the @story-protocol scope. Two top-level skill packages for the skills.sh marketplace: Contains 4 sub-skills plus an umbrella SKILL.md: - SKILL.md — umbrella (setup + routing to sub-skills) - sdk-integration/SKILL.md — SDK methods, client modules, usage patterns - ip-registration/SKILL.md — IP Asset registration, metadata, SPG workflows - licensing/SKILL.md — PIL license terms, derivatives, license tokens…
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- smart-contractsSkill
- story-sdkSkill
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
All operations go through Nx:
- Very specific: line 15
Run eval suite: npx promptfoo eval -c evals/suites/<skill-name>/promptfoo.yaml
- Very specific: line 19
All packages use the @story-protocol scope.
- Distinctive: line 61
Use conventional commits for changelogs
- Distinctive: line 66
Write prompts that work with any LLM, not just Claude
- Very specific: line 67
Avoid model-specific features in SKILL.md files
- Very specific: line 79
Never use --- in .txt prompt files (Promptfoo treats as multi-prompt separator).
- Very specific: line 81
Use {% raw %}...{% endraw %} to protect Nunjucks {% patterns in prompt files.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Story Protocol AI Skills
Overview
AI-powered skills for Story Protocol development. This monorepo contains two marketplace skill packages: SDK (TypeScript) and Contracts (Solidity).
Nx Usage
All operations go through Nx:
- Validate all packages:
npx nx run-many -t validate - Lint markdown:
npx nx run-many -t lint-markdown - Validate specific package:
npx nx run story-sdk:validate - Run eval suite:
npx promptfoo eval -c evals/suites/<skill-name>/promptfoo.yaml
Package Scope
All packages use the @story-protocol scope.
Skill Package Architecture
Two top-level skill packages for the skills.sh marketplace:
story-sdk/ (TypeScript SDK)
Contains 4 sub-skills plus an umbrella SKILL.md:
SKILL.md— umbrella (setup + routing to sub-skills)sdk-integration/SKILL.md— SDK methods, client modules, usage patternsip-registration/SKILL.md— IP Asset registration, metadata, SPG workflowslicensing/SKILL.md— PIL license terms, derivatives, license tokensroyalty-integration/SKILL.md— Royalty vaults, revenue claiming, payments
story-contracts/ (Solidity)
Single skill for smart contract interaction:
SKILL.md— Solidity contracts, Foundry testing, direct contract calls
Structure
Each skill package contains:
SKILL.md— skill instructions with YAML frontmatterreferences/— supplementary reference docs (per skill or shared)package.json— npm package configproject.json— Nx project config (must havetype:skill-packagetag)
Installation (skills.sh)
# SDK skills (TypeScript developers)
npx skills add piplabs/story-skills@story-sdk --full-depth
# Smart contract skills (Solidity developers)
npx skills add piplabs/story-skills@story-contractsVersioning
metadata.versionin SKILL.md tracks skill content changespackage.jsonversion tracks npm package releases- Use conventional commits for changelogs
- Release tags:
<package-name>@<version>
Agent-Agnostic Design
- Write prompts that work with any LLM, not just Claude
- Avoid model-specific features in SKILL.md files
Evals Framework (Promptfoo)
Each skill has an eval suite at evals/suites/<skill-name>/:
promptfoo.yaml— test configurationprompt-wrapper.txt— prompt template injecting skill + referencescases/*.md— test scenariosrubrics/*.txt— LLM grading criteria
Constraints
- Never use
---in.txtprompt files (Promptfoo treats as multi-prompt separator). Use***instead. - Rubric files MUST use
.txtextension. - Use
{% raw %}...{% endraw %}to protect Nunjucks{%patterns in prompt files. - Provider:
anthropic:claude-sonnet-4-5-20250929, temperature 0. - Timeout: 120s per test case.
- Pass rate: >=85% required in CI.
Validation
node scripts/validate-skill-package.cjs <package-dir>— validates skill package structurenode scripts/validate-docs.cjs— ensures every package/skill has docs pages- CI runs both with
--require-evalsflag
Story Protocol Context
Networks
| Network | Chain ID | RPC |
| Aeneid (testnet) | 1315 | https://aeneid.storyrpc.io |
| Mainnet | 1514 | https://mainnet.storyrpc.io |
Key Contracts (same on both networks unless noted)
| Contract | Address |
| IPAssetRegistry | 0x77319B4031e6eF1250907aa00018B8B1c67a244b |
| LicensingModule | 0x04fbd8a2e56dd85CFD5500A4A4DfA955B9f1dE6f |
| RoyaltyModule | 0xD2f60c40fEbccf6311f8B47c4f2Ec6b040400086 |
| PILicenseTemplate | 0x2E896b0b2Fdb7457499B56AAaA4AE55BCB4Cd316 |
| RegistrationWorkflows | 0xbe39E1C756e921BD25DF86e7AAa31106d1eb0424 |
SDK
- Package:
@story-protocol/core-sdk - Key export:
StoryClient,WIP_TOKEN_ADDRESS,PILFlavor
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

