shadowclone
AGENTS.md25 starsChanged 32 days agoMITView on GitHub
shadowclone maintains portable coding-agent skills from consented sessions and memory. It delivers skills and small native instruction sections. Follow CONTRIBUTING.md when you edit code or prose. Read .claude/skills/data-handling/SKILL.md before you change capture, storage, model access, or user actions. Read a package AGENTS.md before you change that package. Inspect the worktree and keep unrelated edits. Before you implement, record the reasoning and sequence in docs/. If you extend a design, use its existing record. Keep types and names explicit. Use Bun…
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 31,700 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 repository49 other files it gives its agents.
- evals/AGENTS.mdAGENTS.md
- tooling/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- evals/CLAUDE.mdCLAUDE.md
- tooling/CLAUDE.mdCLAUDE.md
- choose-by-consequenceSkill
- design-deep-modulesSkill
- diagnose-before-editingSkill
- plan-with-review-pageSkill
- research-primary-sourcesSkill
- resolve-conflicts-by-intentSkill
- scope-confirmed-changesSkill
- shadowclone-build-preferencesSkill
- shadowclone-reviewSkill
- shadowclone-workSkill
- tests-that-catch-bugsSkill
- typescript-type-safetySkill
- verify-and-reviewSkill
- write-plain-englishSkill
- choose-by-consequenceSkill
- data-handlingSkill
- design-deep-modulesSkill
- diagnose-before-editingSkill
- plan-with-review-pageSkill
- research-primary-sourcesSkill
- resolve-conflicts-by-intentSkill
- scope-confirmed-changesSkill
- shadowclone-build-preferencesSkill
- shadowclone-reviewSkill
- shadowclone-workSkill
- tests-that-catch-bugsSkill
- typescript-type-safetySkill
- verify-and-reviewSkill
- write-plain-englishSkill
- choose-by-consequenceSkill
- design-deep-modulesSkill
- diagnose-before-editingSkill
- guided-pr-reviewSkill
- plan-with-review-pageSkill
- research-primary-sourcesSkill
- resolve-conflicts-by-intentSkill
- scope-confirmed-changesSkill
- shadowclone-reviewSkill
- shadowclone-workSkill
- tests-that-catch-bugsSkill
- typescript-type-safetySkill
- verify-and-reviewSkill
- verify-review-findingsSkill
- write-plain-englishSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
25 rules. About 0 are common, 15 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Follow CONTRIBUTING.md when you edit code or prose.
- Very specific: line 15
Import another package only by its name and its declared subpaths, such as ./testing and ./browser.
- Very specific: line 17
If a change alters the purpose, exports, dependencies, or rules of a package, update its guide in the same commit and run bun run guides.
- Distinctive: line 40
Keep private repository material, transcripts, receipts, and identifying paths outside this public checkout, including ignored files.
- Distinctive: line 44
Keep repository and remote-owner scope.
- Distinctive: line 45
Keep manual edits and ownership checks when you write skills or native instructions.
- Very specific: line 49
Write all Markdown and all text that a person reads in ASD-STE100 Simplified Technical English at about 80% strictness, with the …
- Distinctive: line 50
Update each page that your change affects (start at the documentation index).
- Distinctive: line 51
Write for the reader of the page.
- Very specific: line 52
Keep the README a short path to a working setup: a quick start with time estimates, plain results, and a privacy summary.
- Very specific: line 58
Commit messages and pull request titles use one lowercase conventional-commit subject, such as fix: keep cursors after a failed index, with …
- Distinctive: line 63
Follow repository requirements.
- Distinctive: line 65
when a change adds a skip, block, fallback, default, or retry: choose-by-consequence
- Distinctive: line 66
when designing or reshaping a module or subsystem: design-deep-modules
- Distinctive: line 67
when behavior is wrong or slow and the cause is not known: diagnose-before-editing
- Distinctive: line 68
before a change that has many steps or open design choices: plan-with-review-page
- Distinctive: line 69
when a decision depends on facts outside the repository: research-primary-sources
- Distinctive: line 71
when fixing a bug, a regression, or a confirmed review finding: scope-confirmed-changes
- Very specific: line 72
when a pull request needs a review: shadowclone-review
- Very specific: line 73
when taking a change or a pull request to ready for review: shadowclone-work
- Distinctive: line 74
when adding, changing, or proving a test: tests-that-catch-bugs
- Distinctive: line 75
when changing TypeScript types or input that enters typed code: typescript-type-safety
- Distinctive: line 76
before you say that work is done or ready for review: verify-and-review
- Very specific: line 77
before you write any text that a person reads: write-plain-english Follow the selected working preferences in the …
- Very specific: line 78
Follow the selected working preferences in the shadowclone-build-preferences skill when relevant.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Working on shadowclone
shadowclone maintains portable coding-agent skills from consented sessions and memory. It delivers skills and small native instruction sections.
Follow CONTRIBUTING.md when you edit code or prose. Read .claude/skills/data-handling/SKILL.md before you change capture, storage, model access, or user actions. Read a package AGENTS.md before you change that package.
Layout
packages/*: the@shadowclone/<name>packages, with dependencies in the architecture.skills/,preferences/,plugins/: bundled content that installers find at the root.evals/,tooling/: private workspaces for evaluations and repository checks.
Package rules
- Import another package only by its name and its declared subpaths, such as
./testingand./browser. tooling/src/boundaries/packages.tsholds the package graph, and the boundary check enforces it. Add a dependency edge only with a design record.- If a change alters the purpose, exports, dependencies, or rules of a package, update its guide in the same commit and run
bun run guides. Lint fails when a guide is missing or out of date.
Work on the requested change
Inspect the worktree and keep unrelated edits. Before you implement, record the reasoning and sequence in docs/. If you extend a design, use its existing record. Keep types and names explicit. Use Bun and the existing module boundaries. Add a dependency only for a concrete reason.
The skills environment is the only store for learned rules. Keep code for removed formats out of the repository.
Checks
bun install
bun run check
bun test packages/skills
bun run cli --help
bun run build
bun run stagebun run check runs typecheck, lint, knip, and tests. Run focused checks while you edit and the full gate before handoff. Before you open a pull request, run npx @theonly1me/vigilante@0.3.0 diff --base origin/main. If it lists an intended new power, run npx @theonly1me/vigilante@0.3.0 lock and commit vigilante.lock. Report earlier failures separately. Tests use synthetic fixtures. An authenticated run or paid evaluation needs an explicitly authorized scope.
Data boundaries
- Keep private repository material, transcripts, receipts, and identifying paths outside this public checkout, including ignored files. Use synthetic examples that you wrote yourself.
- Public evaluation material may name models and versions. It must not name evaluators, billing details, private installations, paths, or repositories. An evaluation of public code may name its public repositories.
- Each capture source needs its own consent flag, off by default. Document each new source in
docs/data-handling.md. - Resolve eligible learning text through
resolveRedacted. Exclude tool results, tool-returned file contents, thinking blocks, and data-access results from learning. - Keep repository and remote-owner scope. Global guidance needs explicit global evidence or a direct user decision.
- Keep manual edits and ownership checks when you write skills or native instructions. Keep every change reversible.
Documentation
- Write all Markdown and all text that a person reads in ASD-STE100 Simplified Technical English at about 80% strictness, with the
write-plain-englishskill.CHANGELOG.md, which Release Please writes, is exempt. - Update each page that your change affects (start at the documentation index). Update the architecture diagram when the flow or a trust boundary changes.
- Write for the reader of the page. Remove session narration, expired instructions, and duplicate explanations. Label historical designs as history.
- Keep the README a short path to a working setup: a quick start with time estimates, plain results, and a privacy summary. Put detail in
docs/guides/. User-facing commands use the installedshadowcloneCLI. Bun commands belong in contributor instructions.
Handoff and Git
Explain what changed, how you verified it, and the remaining limits. Commit, push, and open a draft pull request without a diff review. Before you push to a branch that has a pull request, run gh pr view --json state.
Commit messages and pull request titles use one lowercase conventional-commit subject, such as fix: keep cursors after a failed index, with no body and no co-author trailer. A squash merge uses the title as the subject on main, and Release Please creates releases only from conventional commits.
<shadowclone-guidance>
## Your agent buildFollow repository requirements. Repository build choices override personal global choices. Load each selected workflow skill at the moment listed for it. When a selected workflow skill conflicts with the user's own skills or learned baseline rules, follow the user's guidance.
- when a change adds a skip, block, fallback, default, or retry: choose-by-consequence
- when designing or reshaping a module or subsystem: design-deep-modules
- when behavior is wrong or slow and the cause is not known: diagnose-before-editing
- before a change that has many steps or open design choices: plan-with-review-page
- when a decision depends on facts outside the repository: research-primary-sources
- while a merge, rebase, or cherry-pick has conflicts: resolve-conflicts-by-intent
- when fixing a bug, a regression, or a confirmed review finding: scope-confirmed-changes
- when a pull request needs a review: shadowclone-review
- when taking a change or a pull request to ready for review: shadowclone-work
- when adding, changing, or proving a test: tests-that-catch-bugs
- when changing TypeScript types or input that enters typed code: typescript-type-safety
- before you say that work is done or ready for review: verify-and-review
- before you write any text that a person reads: write-plain-english
Follow the selected working preferences in the shadowclone-build-preferences skill when relevant.
</shadowclone-guidance>
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.

