ai-shakespii
AGENTS.md2 starsChanged 5 months agoMITView on GitHub
See docs/STRATEGY.md for rationale.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,638 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 repository2 other files it gives its agents.
- authoring-skillsSkill
- using-shakespiiSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
TDD for all code: Every lint rule is a pure function over a parsed skill with fixture tests written first.
- Distinctive: line 53
Never point the LLM stages at untrusted third-party skills.
- Distinctive: line 58
Prefer subagent-driven execution for multi-task plans (fresh implementer per task, per-task spec + quality review, final whole-branch …
- Distinctive: line 64
Before claiming any work complete, run all of:
- Very specific: line 76
Do not add an npm self-upgrade step to the workflow (it corrupted the runner's npm tree once — see docs/RELEASE-M5C.md).
- Very specific: line 81
Update tracked specs when decisions change.
- Very specific: line 82
Commit messages: normal prose, type(scope): summary style, no AI attribution.
- Distinctive: line 83
Keep this file procedural and stable.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
AGENTS
Project Summary
shakespii(repoai-shakespii) is a workbench for Agent Skills — init / lint / test / bench / gate-checked install. Skills are treated as software components with explicit contracts, not prompt folders.- Architecture is lib-first thin CLI:
src/libis pure (rules never touch disk — sibling file content rides onFileEntry.text),src/clidoes all I/O. TypeScript on Bun; published to npm asshakespiiwith no build step — the tarball shipssrc/verbatim, so the tarball layout must equal the repo layout (packageRootresolution depends on it). - Build order (decided): linter → test harness → writer-as-skill → library. The writer (
skills/authoring-skills) is a skill, not app code.
Non-Negotiable Decisions
See docs/STRATEGY.md for rationale.
- Standard format only. Skills produced or validated by this tool use the standard Agent Skills format (
SKILL.md, YAML frontmatter withname+description, spec at agentskills.io). Never invent a parallel format. The shakespii skill anatomy (Intent / Inputs / Preconditions / Procedure / Output / Examples / Anti-patterns) is enforced as a content contract inside standard SKILL.md bodies. - Reuse skill-creator eval schemas (
evals.json/grading.json/benchmark.json+ the trigger-accuracy eval design). Wrap and enforce; do not reinvent. - TDD for all code. Every lint rule is a pure function over a parsed skill with fixture tests written first; the same discipline applies to harness and CLI code.
- Agent-first interface. The CLI is the deterministic substrate (
--json, exit codes, rule IDs); the bundled companion skills are the interface agents drive it through.
Source Of Truth
- Tracked specs live in
docs/specs/. Implementation plans (docs/superpowers/plans/) and calibration docs (docs/CALIBRATION-*.md) are git-ignored local working copies — kept in the repo tree for the workflow but never committed; their canonical copies live only in the ai-pref-nsync root below. Citations todocs/CALIBRATION-*.mdinside tracked docs therefore resolve locally, not on GitHub. - Dual-location rule: canonical doc copies live in
~/.ai-pref-nsync/local-docs/ai-shakespii/(subdirsspecs/,plans/,brainstorm/,knowledge-references/; ROADMAP canonical atplans/ROADMAP.md). The in-repodocs/files are synced mirrors — update both, verify withcp+cmp.README.mdis repo-only. docs/ROADMAP.mdlists open decisions — they are the user's to make; never pick one silently.- Lint rules cite their evidence (audit doc reference) in
docs/LINT-RULES.mdbefore implementation. The dogfood corpus is the user's installed skills at~/.claude/skills/plus the superpowers plugin — calibrate against it; synthetic fixtures are never enough.
Repo Layout
src/cli/: command entrypoints (index.tsdispatch;lint,test,bench,init,install;format/serializers).src/lib/: pure core —engine.ts(rule runner),parser/,profile/,rules/(one file per rule ID),corpus/,install/(registry + gate),harness/(deterministic + LLM stages, runner, cache, contamination scan).profiles/default.yaml: the lint profile — every threshold and alias lives in data, not code.templates/skill/: the literalshakespii initscaffold (RED-by-design placeholders).skills/: bundled companion skills (using-shakespii,authoring-skills) — linted, eval-tested, and trigger-measured by the tool itself; weld tests pin their contracts.tests/: fixture-driven bun tests;tests/helpers/skill.tsbuilders.scripts/check-pack.ts: npm tarball guard..github/workflows/:ci.yml+release.yml.
Memory Layer Self-Use
- This project uses ai-cortex. Consult before non-trivial edits (
recall_memorywith scoped files), and record scars, adjudications, and gotchas as memories — not in this file, so they surface only when relevant. - Cardinal pattern:
recall_memoryis browse-only;get_memory(id)is the consult signal.
Frozen Surfaces
Locked contracts — changing any of these requires an explicit user decision, never a drive-by edit:
- Lint CLI flags + JSON report v1; flagless
testoutput byte-identical; bench schema and stdout purity; grading contract; trigger report key orders; INSTALL_REPORT v1 (including the three-valuedadvisory: findings array /[]ran-clean /nullskipped). HARNESS_SCHEMA_VERSION = 1,RUN_CACHE_VERSION = 2, and the harness constants (trigger reps/thresholds, timeouts, drain/settle bounds).- Never weaken an existing test assertion. Version re-pins for sanctioned skill bumps are the only allowed re-pins.
- using-shakespii's frontmatter
descriptionis byte-frozen at its measured wording (weld-test pinned); description changes require a fresh trigger-accuracy loop, not an edit.
Live Corpus & Harness Safety
- The dogfood corpus (
~/.claude/skills/) migrated at M5d (2026-07-11). Source of truth is split by origin: derived personal skills live in the user's skills repo~/Dev/ai-skills; the bundled companion skills (using-shakespii,authoring-skills) live in this repo'sskills/. In both cases live copies change only viashakespii install --forcefrom their source repo — never hand-edit an installed skill. The superpowers plugin cache remains read-only. - Tests never touch real provider directories (inject a temp
HOMEor explicit--target) and never spawn a realclaude; the suite must stay hermetic (CI carries no API key). - The LLM stages (
test --run,--triggers,bench) spawn headless sessions with--dangerously-skip-permissionsin disposable workspaces — trusted skills only. Containment is convention, not a sandbox (docs/HARNESS.md): run live sweeps on a clean tree and checkgit statusplus both doc roots for strays afterward. - Never point the LLM stages at untrusted third-party skills.
Workflow Rules
- Non-trivial features follow brainstorming → spec → plan → implement. Specs are adjudicated with the user before planning; plans carry complete code and tests per task.
- Prefer subagent-driven execution for multi-task plans (fresh implementer per task, per-task spec + quality review, final whole-branch review), with the model allocation the plan specifies.
- Each milestone closes with a calibration or verification pass against the real corpus/pipelines, recorded in a
docs/CALIBRATION-*.md(git-ignored; canonical copy in ai-pref-nsync) or release-notes doc with predictions/adjudications where applicable. - Small fixes can go directly on
master; inside an ai-whisper workflow the mounted workspace is operator-provided consent.
Verification Rules
Before claiming any work complete, run all of:
bun test(unpiped — the full hermetic suite)bun run typecheckbun run check-pack(tarball content guard)
Green at every commit, not just at the end. If verification is not clean, the work is not complete — report real failures instead of hand-waving them.
Release Process
- Tag-driven: bump
package.jsonversion in a release commit,git tag vX.Y.Z, push the tag →release.ymlruns the full CI gates, a tag-vs-package.json version guard, thennpm publish --access public. - Auth is currently the
NPM_TOKENgranular-token path (trusted publishing could not be configured pre-first-publish); migrating to OIDC trusted publishing + provenance is an open follow-up — when done, drop theNODE_AUTH_TOKENenv line. - Do not add an npm self-upgrade step to the workflow (it corrupted the runner's npm tree once — see
docs/RELEASE-M5C.md); both workflows pinNO_COLOR=1because Actions setsCI=true, which would flip picocolors into color mode and break the formatter byte-pins. - The npm page (README + description) refreshes only on publish — a docs-only patch release is the lever for npm-facing doc changes.
Documentation Policy
- Update tracked specs when decisions change; update
README.md(user-facing, npm page) and the relevantdocs/file for behavior changes; sync canonical mirrors per the dual-location rule. - Commit messages: normal prose,
type(scope): summarystyle, no AI attribution. - Keep this file procedural and stable. Do not duplicate spec content here; refer to the tracked docs.
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.

