agentleFS
TeFuirneverTeFuirnever/azhou-ai-hub/AGENTS.md

azhou-ai-hub

AGENTS.md3 starsChanged 4 days agoMITView on GitHub

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow product principles and the roadmap for direction.

    line 5
  2. Distinctive:

    Avoid unnecessary secondary labels and descriptions.

    line 6
  3. Distinctive:

    When a contributor asks Ask Azhou to choose a skill in this checkout, use the project router.

    line 10
  4. Very specific:

    Keep every canonical skill independently installable under skills/<canonical-name>/.

    line 11
  5. Very specific:

    Do not add agents/openai.yaml or other model-specific package identity.

    line 14
  6. Very specific:

    Every canonical package carries one restrained Azhou identity anchor in its SKILL.md.

    line 15
  7. Very specific:

    Use type(scope): imperative summary.

    line 30
  8. Distinctive:

    Do not rewrite public default-branch history or let bots create statistics-only commits.

    line 32
  9. Distinctive:

    Keep versioned docs in the repository rather than a competing Wiki.

    line 34
  10. Distinctive:

    Never return a dirty, unmerged, unverified or in-use worktree.

    line 41
  11. Very specific:

    Before returning a lease, cd the host shell out of the worktree and have persistent agent shells do the same.

    line 42
  12. Distinctive:

    Treat code and machine-readable configuration as current behavior.

    line 49
  13. Distinctive:

    Keep raw agent history, excerpts, local inventory, hook state, and evolution candidates out of Git.

    line 52
  14. Distinctive:

    Before merging or releasing a user-visible website, Skill, or CLI change to functionality, copy, or interaction, complete the pre-release …

    line 56
  15. Very specific:

    Use uv run --with pyyaml python <skill-creator>/scripts/quick_validate.py skills/<skill> only for development validation.

    line 68

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Azhou AI Hub agent rules

Repository shape

  • Follow product principles and the roadmap for direction; they do not override current runtime contracts, support evidence or legal grants.
  • Avoid unnecessary secondary labels and descriptions. Let the layout do the explaining.
  • docs/skill-standard.md is the project authority for every skill's package, setup, brand lifecycle, evidence, evaluation, evolution, and closeout.
  • docs/integrations.md governs the optional pstack-agent-harness and azhou-agent-inspector projects under packages/. Maintain their canonical package sources, preserve original-import provenance, and fingerprint current runtime_paths inputs for each plan. Keep native installation ownership and installation/discovery/invocation evidence distinct. They do not become canonical Skills or bypass the orchestrator composition rule.
  • When a contributor asks Ask Azhou to choose a skill in this checkout, use the project router.
  • Keep every canonical skill independently installable under skills/<canonical-name>/; project-local engineering workflows remain in .agents/skills/. Keep development-only evaluation material under repository-level benchmarks/.
  • README.md is the English public entry and README.zh-CN.md its Chinese reader mirror. Material product, install, evidence, compatibility, security, or license changes update both in one commit.
  • Public support claims must match docs/support-matrix.md. Portable runtime does not imply identical hooks, memory APIs, or tool access across harnesses.
  • Do not add agents/openai.yaml or other model-specific package identity. Harness adapters must call a neutral core or stay in documented examples. This restriction applies to public repository files; untracked, Git-ignored local tool installations under .agents/skills/ may retain their upstream metadata.
  • Every canonical package carries one restrained Azhou identity anchor in its SKILL.md; interactive skills additionally broadcast one restrained Azhou anchor per material stage with a stable receipt. Emoji stays out of schema keys, enums, digests, paths, commands, tests, and raw evidence.
  • Adapted or vendored material requires an immutable source, license, retained notice, local boundary and reproducible update path. Public code without a license is not reusable source.
  • Long-range plans and ticket drafts live under .planning/, which is git-ignored and therefore absent from Treehouse worktrees; read them from the maintainer checkout by absolute path whenever a task references them. Maintainer-requested, reviewed design references may be promoted to tracked package docs/design/ directories. Mark proposals and unverified behavior explicitly. Keep raw transcripts, private inventories, installation receipts and lease state in ignored local evidence.

Change scope

  • Separate authorized change targets, mechanism references, protected objects and evaluation subjects before work; none grants authority over another. Follow scope and attribution and the stable-source update rules.
  • pstack is excluded from Hub Skill upgrades and autonomous evolution, including its bundled skills. Do not enhance, upgrade, regenerate, install or reconfigure it in a Skill task, or use pstack maintenance tasks as in-scope benefit evidence. Upstream maintenance requires a separate explicit task under the existing source and generation contract; preserve its pristine sources, recorded patch queue and adapters rather than asserting assembled byte parity or deleting them.
  • Protect actual shared-dependency effects without expanding scope. Unattributed host/configuration drift is an observation, not automatically a task-caused defect or a global blocker. A hold must name the affected action, dependency/evidence, owner and release condition; pause the affected action when safety cannot be established and continue independent work. Never repair excluded objects or write back shared host configuration without authorization.
  • Host-side operations on managed installs (plugin installs, migrations, uninstalls) close out by aligning docs/support-matrix.md and the provenance contract with the new reality and recording a dated receipt; the closeout pass treats support-matrix as a required review surface for such tasks.

For change planning or review with an explicit base and head, use the experimental Foundation scope command to separate committed, staged, unstaged and non-ignored untracked paths. Recheck the complete result before relying on it and stop if concurrent changes cannot be excluded. Trace owners and consumers in the semantic impact record; path lists are not semantic closure or proof of an atomic snapshot.

Git and GitHub

  • Use type(scope): imperative summary. One commit answers one reason; code, its test and necessary contract update may stay together. Preserve frozen/reviewed candidates; governance or report corrections use a new commit. Changed content requires a fresh exact-diff binding, not reuse of an earlier approval.
  • Merging to main is squash-only and stays blocked until the ruleset's required checks pass and every review thread (including CodeQL and bot comments) is resolved.
  • Do not rewrite public default-branch history or let bots create statistics-only commits.
  • GitHub Actions use least privilege, full commit-SHA action pins, bounded timeouts and no untrusted pull_request_target checkout.
  • Keep versioned docs in the repository rather than a competing Wiki. Security reports use private advisories, never public issues.

Treehouse worktrees

  • Treehouse v2.3.0 or newer is the default for temporary, concurrent, experimental and coding-agent implementation work in maintainer checkouts. Acquire a durable lease with treehouse get --lease --json --lease-holder <task-id>.
  • Record the returned path, lease ID and holder in task evidence. Use one task, one lease and one codex/<task> branch; verify the leased path belongs to this repository before writing. One active writer owns a worktree; a lease is not a writer lock. Resume only after identifying or handing off that owner; reviewers use read-only snapshots.
  • Direct git worktree add is reserved for an explicitly approved, long-lived manual worktree. If Treehouse is unavailable, do not install or upgrade it implicitly; report the blocker or obtain approval for the fallback.
  • Never return a dirty, unmerged, unverified or in-use worktree. Never prune or destroy dirty, unlanded, in-use or leased work. Keep the lease until work is landed or preserved by a separately verified recovery point.
  • Before returning a lease, cd the host shell out of the worktree and have persistent agent shells do the same; a shell left inside the deleted directory fails getcwd afterward.
  • Automated return requires both --if-lease-id and --if-lease-holder. Do not use path-only automation or treehouse return --force.
  • Destructive Treehouse operations stay dry-run-first. --include-unlanded, --include-in-use and --include-leased require explicit user authorization for the exact path.
  • Treehouse provides workspace and lifecycle isolation, not a security sandbox, identity proof or approval boundary. Follow docs/worktree-policy.md for acquisition, migration, recovery and closeout.

Super Repo Pedant invariants

  • Treat code and machine-readable configuration as current behavior. Keep unimplemented spec intent in reminders.
  • Preserve every neat-freak capability unless skills/super-repo-pedant/references/neat-freak-compatibility.md records a tested safety conflict or implementation disadvantage.
  • Never let lifecycle hooks or history observers mutate the live skill. Evolution candidates require deterministic checks, paired majority, no safety regression, and exact-diff human approval bound to actual patch/source/result bytes; see the evolution contract. Declare integrity repair, task-quality gain and recursive improvement separately; a receipt or vote alone is not effect evidence.
  • Keep raw agent history, excerpts, local inventory, hook state, and evolution candidates out of Git.

Verification

Before merging or releasing a user-visible website, Skill, or CLI change to functionality, copy, or interaction, complete the pre-release experience review and record evidence for the final candidate.

Freeze writes during version-bound verification: capture HEAD, index, complete changed-file bytes, runtime and evaluator/input identities before and after. A concurrent edit, commit or rebase invalidates that version-bound verdict even if the command exits zero; preserve it and rerun on a stable isolated revision. Do not rerun an evaluator in its frozen evidence directory. See worktree verification and evaluation rules.

Run before handoff:

python3 scripts/verify.py

This runs repository policy, the source comment ratchet, the retired-surface reverse scan, Hub unit tests, package manifest/lifecycle suites, every registered benchmark-integrity suite, and working/staged Git whitespace checks. For Excalidraw runtime changes, also execute the render/export/visual gates in skills/super-excalidraw-diagram/references/setup.md.

Use uv run --with pyyaml python <skill-creator>/scripts/quick_validate.py skills/<skill> only for development validation; PyYAML is not a runtime dependency of these skills.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.