agentleFS
lamxylamxy/agent-prompt-rules-system/AGENTS.md

agent-prompt-rules-system

AGENTS.md4 starsChanged 6 months agoMITView on GitHub

When picking up existing work, read docs/handoff/HANDOFF.md first: it records the current status and todo plan, confirmed decisions, user constraints (never modify the local machine's configuration unless asked), open items, and a change log to append to after each requirement. This is a personal agent configuration, skill, and tool management repository (Claude Code first, with a Codex adapter). It was converted from a layered prompt-rule system in 2026-10; see the "转型说明" section of README.md. The minimal Claude Code configuration source…

  • Reads credentials

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  • could be automatic: a setting could enforce it
  1. Very specific:

    When picking up existing work, read docs/handoff/HANDOFF.md first: it records the current status and todo plan, confirmed decisions, user …

    line 5
  2. Very specific:

    Before and after changing shell scripts, run the syntax checks and every test in scripts/tests/:

    line 31
  3. Very specific:

    Add new tests as scripts/tests/test-<subject>.sh.

    line 37
  4. Very specific:

    Only add a line to dot_claude/CLAUDE.md when it changes Claude's behavior compared with the Claude Code defaults.

    line 47
  5. Very specific:

    Before writing to installed configuration (dot_claude_projects/, skills/, claude_mds/), back each claim with a test or primary source.

    line 61
  6. Very specific:

    Never commit API keys, access tokens, .env contents, or private cloud credentials.

    line 65

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

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

Repository Guidelines

Project Structure & Module Organization

When picking up existing work, read docs/handoff/HANDOFF.md first: it records the current status and todo plan, confirmed decisions, user constraints (never modify the local machine's configuration unless asked), open items, and a change log to append to after each requirement.

This is a personal agent configuration, skill, and tool management repository (Claude Code first, with a Codex adapter). It was converted from a layered prompt-rule system in 2026-10; see the "转型说明" section of README.md. The minimal Claude Code configuration source lives in dot_claude/ (a short CLAUDE.md, commands/, skills/ such as myhandoff, and a personal user-level settings.json); see dot_claude/README.md for why it was slimmed down. dot_claude_legacy/ is a read-only archive of the previous layered rule system and is not used by any installer.

Package-style assets are grouped by target:

  • agents/agents-<FLAG>/: agent definitions.
  • skills/skills-<FLAG>/: skill packages.
  • claude_mds/: CLAUDE.md variants such as CLAUDE-frontend-dev.md.
  • dot_mcp_jsons/: .mcp.json templates.
  • dot_claude_projects/: full project starter bundles.
  • settings/: user, project, and local settings templates.
  • scripts/: POSIX shell installers and smoke tests.
  • docs/ and open_supports/: documentation (handoff, plans, evaluation, research) and external support materials.

Build, Test, and Development Commands

There is no build step. Run scripts from the repository root:

sh ./scripts/install.sh -l project -p /path/to/project/.claude -m ask
sh ./scripts/install-agent-pkg.sh -f frontend-dev -t /path/to/project/.claude/agents
sh ./scripts/install-skill-pkg.sh -f frontend-dev -t /path/to/project/.claude/skills
sh ./scripts/install-claude-project.sh -f frontend-dev -t /path/to/project

Before and after changing shell scripts, run the syntax checks and every test in scripts/tests/:

sh scripts/tests/run-all.sh

Add new tests as scripts/tests/test-<subject>.sh; run-all.sh picks them up automatically.

For installer behavior, use temporary directories for smoke tests. Do not test against real user configuration unless explicitly requested.

Coding Style & Naming Conventions

Shell scripts should use POSIX sh, set -eu, two-space indentation, small helper functions, and printf for output. Avoid Bash-only syntax.

Markdown should be concise, task-oriented, and easy to scan. Preserve existing naming patterns: agents-<FLAG>, skills-<FLAG>, CLAUDE-<FLAG>.md, and dot-mcp-json-<FLAG>.json. Content under dot_claude/ is written in Traditional Chinese.

Only add a line to dot_claude/CLAUDE.md when it changes Claude's behavior compared with the Claude Code defaults. Enforce hard boundaries with settings.json permissions, sandbox, or hooks instead of prompt text, and put scenario-specific guidance in a skill or a path-scoped rule.

Testing Guidelines

Testing relies on shell syntax checks, installer smoke tests, and manual review of generated prompt/config files. Installer changes should cover successful install paths, missing package errors, existing target conflict handling, and -F overwrite behavior.

Commit & Pull Request Guidelines

Git history uses concise conventional-style prefixes such as feat:, docs:, test:, templates:, and refactor:. Commit messages should describe intent, not only changed files.

Pull requests should state the goal, affected directories, verification performed, and any maintenance or context-size impact. For template or rule changes, explain why the change belongs at that layer rather than in a package-specific CLAUDE.md.

Unverified Content

Before writing to installed configuration (dot_claude_projects/, skills/, claude_mds/), back each claim with a test or primary source; otherwise record it in a docs/plans/ open-questions list. A "not verified" label is not enough.

Security & Configuration Tips

Never commit API keys, access tokens, .env contents, or private cloud credentials. Shared settings should avoid sensitive paths and should not automatically overwrite JSON that requires human review.

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.

Reviews can't be read right now.

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.