clarity-skills
AGENTS.md2 starsChanged 30 days agoMITView on GitHub
This file is for AI agents working in this repository. People start with docs/CONTRIBUTING.md; this file adds the technical detail an agent needs to make a change that passes review. Specifications and official documentation: The rules for a change are in docs/CONTRIBUTING.md. What the startup hook and the scripts may do on a user's machine is in docs/SECURITY.md. Reference skills to copy from: The marketplaces live in .claude-plugin/, .agents/plugins/, .github/plugin/, .factory-plugin/ and .cursor-plugin/. Edit skills only in plugin/skills/. Never edit…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- clarity-apisSkill
- clarity-assetsSkill
- clarity-auditorSkill
- clarity-bitcoin-proofsSkill
- clarity-deploymentSkill
- clarity-ecosystemSkill
- clarity-environmentsSkill
- clarity-epochsSkill
- clarity-fuzzingSkill
- clarity-governanceSkill
- clarity-optimizerSkill
- clarity-oraclesSkill
- clarity-protocolsSkill
- clarity-scholarSkill
- clarity-securitySkill
- clarity-sip-complianceSkill
- clarity-stakingSkill
- clarity-startSkill
- clarity-system-integrationSkill
- clarity-testingSkill
- clarity-upgradesSkill
- clarity-walletsSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 68
Use only name, description, license, compatibility, metadata and allowed-tools.
- Very specific: line 70
Keep each field on one line, quote the description, and quote every value in the metadata map.
- Very specific: line 73
Leave metadata.version alone.
- Distinctive: line 78
Every session carries every skill's name and description, so all descriptions together stay within 4,650 characters.
- Distinctive: line 89
Use only the Python 3.10 standard library.
- Distinctive: line 91
Read files and print results.
- Distinctive: line 92
Never execute the user's repository or contracts, and never sign or broadcast a transaction.
- Distinctive: line 106
Never tell an agent to fetch instructions or registries at run time.
- Very specific: line 128
Keep the description budget in mind.
- Distinctive: line 154
every manifest and marketplace naming the same plugin, version and source
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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
Contributing to the Clarity Skills
This file is for AI agents working in this repository. People start with docs/CONTRIBUTING.md; this file adds the technical detail an agent needs to make a change that passes review.
Resources
Specifications and official documentation:
- Agent Skills specification, the format every host reads
- Claude Code plugins and Claude Code skills
- Skill authoring best practices
The rules for a change are in docs/CONTRIBUTING.md. What the startup hook and the scripts may do on a user's machine is in docs/SECURITY.md.
Reference skills to copy from:
| Shape | Skill | What it shows |
| One file | oracles | A self-contained SKILL.md with Codex metadata and icons |
| References and a script | scholar | Lookup material in references/, an offline script pre-approved in allowed-tools |
| Registries and the network | protocols | Dated address registries, an offline age check and a read-only network check |
| Router | start | The task table that names the skills to load, and the pre-finish checklist |
Technical Reference
Repository Layout
plugin/ # what Claude Code, the Claude apps and Codex install
plugin.json # Codex manifest
.claude-plugin/plugin.json # Claude Code manifest
hooks/ # the SessionStart hook
skills/<name>/
SKILL.md # frontmatter and the must-follow rules
references/ # lookup material, loaded on demand
scripts/ # Python standard library helpers
agents/openai.yaml # Codex display name, short description and icons
assets/ # icon-small.svg and icon-large.png
skills/clarity-<name>/ # generated copy for hosts that list skills by folder name
docs/ # install guide, contributing, security policy, code of conduct, changelog
assets/banner.png # README banner, rendered by the maintainers' logo generator
plugin.json # Agent Plugins manifest for hosts that read skills/
gemini-extension.json # Gemini CLI manifest; GEMINI.md loads the router as context
llms.txt # generated index of the skillsThe marketplaces live in .claude-plugin/, .agents/plugins/, .github/plugin/, .factory-plugin/ and .cursor-plugin/.
Edit skills only in plugin/skills/. Never edit skills/ or llms.txt by hand: maintainers regenerate them at each release, renaming clarity:<name> to clarity-<name>. Until then they lag behind develop, and CI skips the copy check there.
Frontmatter
From plugin/skills/scholar/SKILL.md:
---
name: scholar
description: "Write, build or refactor Clarity (.clar) contracts: syntax, types, responses, errors, traits, loops and layout. Use before writing or editing Clarity code, fixing compile errors, or answering how Clarity code behaves: what an expression returns, what aborts or rolls back, what the VM checks."
license: MIT
compatibility: "Optional: Python 3.10+ for scripts/lookup_function.py. Examples assume Clarinet 3.26.0 (Clarity 6 at epoch 4.0)."
allowed-tools: "Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/lookup_function.py *)"
metadata:
version: "1.0.0"
baseline_date: "2026-10-19"
---- Use only
name,description,license,compatibility,metadataandallowed-tools. Some hosts reject any other field. nameequals the folder name: lowercase words joined by hyphens.- Keep each field on one line, quote the description, and quote every value in the
metadatamap. The check parses nothing else. - The description is at most 1,024 characters. Say what the skill covers, then when to use it, in the words a user would type.
allowed-toolsmay only pre-approve bundled scripts, asBash(python3 <path> *)with${CLAUDE_SKILL_DIR}or${CLAUDE_PLUGIN_ROOT}. Pre-approve offline scripts only; a network script must always ask.- Leave
metadata.versionalone. A release bumps every skill and manifest together. baseline_dateis the date of the skill's last editorial review.
Budgets
- Every session carries every skill's name and description, so all descriptions together stay within 4,650 characters.
- A
SKILL.mdbody stays under 24,000 bytes, the most Google Antigravity reads. Move lookup material toreferences/.
Names and Links
- Refer to another skill as
clarity:<name>in text, and link to it with a relative path such as../security/SKILL.md#security-patterns-a01-a29. - Links inside
plugin/must resolve and stay insideplugin/. - Links in
docs/start with/, such as/docs/SECURITY.md. GitHub's Contributing and Security tabs resolve links from the repository root.
Scripts
- Use only the Python 3.10 standard library.
- Give each script a module docstring that says what it does and how to run it.
- Read files and print results. Write a file only to a path the user passes.
- Never execute the user's repository or contracts, and never sign or broadcast a transaction.
- A new network call needs discussion in an issue first. The existing network scripts query a Stacks node API and send
HIRO_API_KEYonly tohiro.sohosts.
Startup Hook
plugin/hooks/clarity-context.sh runs at every session start, clear and compact. Keep it POSIX sh, fast and offline. It writes nothing and prints one line of context or nothing. A change to its message changes how often the skills load, so explain the reason in the pull request.
Quality Standards
What a Skill Holds
SKILL.mdholds the rules, decisions, exact call shapes and short fragments an agent must follow.references/holds lookup material: tables, signatures and longer examples.- Teach what models get wrong about Clarity and Stacks. Do not restate what a model already knows.
- Say why a rule exists and what fails without it.
- Never tell an agent to fetch instructions or registries at run time.
Evidence
- Back each claim about Clarity behavior with a link to the implementation or specification, pinned to a commit.
- List every commit a skill's links use in its
Reference baselinesection, and name the Clarity version and epoch its examples were checked on. - An address or function signature needs the deployed contract: its source, the deployment transaction and, for state, a read-only call result.
- Address registries record when they were last verified (
registry_verified_at). Releases refresh them, so describe an address change in the pull request with its evidence.
Style
Short sentences, no em dashes, and examples that run.
Adding or Renaming a Skill
Change all of these together:
- the folder in
plugin/skills/<name>/, withSKILL.md,agents/openai.yaml,assets/icon-small.svgandassets/icon-large.png - the router's "Load by task" table in
plugin/skills/start/SKILL.md - the skills table in
README.md(the Skills section) - the Skill dropdown in
.github/ISSUE_TEMPLATE/bug_report.yml
Keep the description budget in mind. Maintainers regenerate skills/ and llms.txt.
When a change alters what the hook or a script does, update docs/SECURITY.md. When it alters an install step or a manifest, update that host's section in docs/INSTALL.md, and the short install commands in README.md if they change. Add an entry for any user-visible change to the unreleased section at the top of docs/CHANGELOG.md.
Branches and Releases
- Branch from
developand open the pull request againstdevelop. A pull request that fixes a bug links to its report from the bug report form.mainholds the latest release. Its pull requests come only fromdevelopor ahotfix/branch, and CI rejects any other. - A release bumps
metadata.versionand every manifest, regeneratesskills/andllms.txt, and dates the changelog section. Maintainers merge it intomain, tag itv<version>and publish a GitHub Release with that changelog section as its notes. - Hosts follow releases: Claude Code updates when the version changes, Gemini CLI installs the latest GitHub Release, and the skills CLI reads
main.
Before Finishing
Pull requests run .github/workflows/validate.yml on GitHub, so nothing needs to run locally. It runs .github/scripts/check_package.py (with --develop on develop, which skips the generated copy), compiles every bundled script and runs claude plugin validate --strict on plugin/ and on the repository root. A pull request into main also runs .github/scripts/check_release.py, which needs a version newer than the last release and a dated changelog section. If the user wants the result before pushing, python3 .github/scripts/check_package.py --develop only reads the repository.
What the Check Enforces
Each of these fails the pull request, so there is no need to check them by hand:
- frontmatter fields, the name, the description and compatibility lengths, and the
metadatamap metadata.versionmatchingplugin/plugin.jsonallowed-toolsnaming onlyBash(python3 <path> *)rules for scripts that existagents/openai.yamlpointingicon_smallandicon_largeat files that exist- the body size and the description budget
- the generated
skills/copy holding the same skills and files asplugin/skills/, onmainand pull requests into it - relative links that resolve, GitHub
blobandtreelinks in skill pages pinned to a 40-hex commit, root-relative links indocs/, and the images inREADME.md - the bug report form listing every skill
- every manifest and marketplace naming the same plugin, version and source
- for a pull request into
main: a source branch ofdeveloporhotfix/, a newer version and a dated changelog section
What No Tool Checks
- The description triggers on the words a user would type.
- The rule is correct on the epoch it names, and the evidence supports it.
- The examples run.
- The change does not contradict another skill, such as
clarity:securityandclarity:scholaron the same function. - Addresses and signatures match the deployed contracts.
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.

