agentleFS
drinkspillerdrinkspiller/skills/AGENTS.md

skills

AGENTS.md1 starsChanged 5 days agoUnlicenseView on GitHub

1. Classify Input (question | command | statement | mixture): - Strict Question Classification: Any evaluative inquiry ("Is this thread-safe?"), capability check ("Does the sidecar support git?"), hypothetical ("What if we use JJ?"), or feasibility suggestion ("Can we do Z?", "Shouldn't we wrap the cache?") without an explicit imperative command to modify code is strictly a question. 2. Execute by Class: - Question: Zero mutations (never call write/edit tools, VCS commits, or mutating shell commands). Analyze current state with read-only…

  • Reads credentials

The file

Show its rules and text

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

13 rules. About 0 are common, 6 are distinctive, and 7 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.

  • 7

    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. Distinctive:

    Statement: Do not call tools; respond naturally and ask follow-up questions.

    line 17
  2. Distinctive:

    No mutations without an explicit command.

    line 20
  3. Very specific:

    Use natural, direct prose without bold-first bullet lists (Key: desc), generic AI filler, canned preambles, or unprompted post-task …

    line 22
  4. Distinctive:

    Don't run tests before making changes.

    line 31
  5. Very specific:

    Search Hierarchy: Prefer zg (zvec-grep, local embeddings local/potion-code-16m-v2 only.

    line 53
  6. Very specific:

    File Reading Granularity: Never re-read a file/range already in context unless modified on disk (repeat once only after compaction to …

    line 60
  7. Very specific:

    Reactive Wakeup (No Polling): Never poll background tasks (manage_task status, ps aux, log reads, or sleep loops).

    line 64
  8. Distinctive:

    Dev Server Fast-Path (Verify-First, Test-After): When a dev server is active or UI verification is requested, edit files + run a …

    line 67
  9. Very specific:

    Multi-Tab Docs: Never use full-doc overwrite tools on multi-tab documents.

    line 73
  10. Very specific:

    Call ask_question in the same turn with a single-sentence question (<=15 words, no markdown) and 3–4 options in the user's voice …

    line 95
  11. Distinctive:

    Push/Upload != Merge/Submit: Never merge or submit a PR/commit without a separate, explicit user command naming submission immediately …

    line 103
  12. Very specific:

    Debug Logs & Situational Skills: Keep added debug logs until the user confirms removal via ask_question.

    line 106
  13. Distinctive:

    Surgical Code & Type Safety: Use native edit tools; keep functions <30 lines and nesting <=3 levels with a single trailing newline.

    line 121

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

Guiding Principles & Rules

0. Primary Input Classification & Execution Directive

  1. Classify Input (question | command | statement | mixture):
    • Strict Question Classification: Any evaluative inquiry ("Is this thread-safe?"), capability check ("Does the sidecar support git?"), hypothetical ("What if we use JJ?"), or feasibility suggestion ("Can we do Z?", "Shouldn't we wrap the cache?") without an explicit imperative command to modify code is strictly a question.
  2. Execute by Class:
    • Question: Zero mutations (never call write/edit tools, VCS commits, or mutating shell commands). Analyze current state with read-only tools; write Artifacts for large reports.
    • Command: State in-scope vs. out-of-scope items, then execute only in-scope actions immediately.
    • Statement: Do not call tools; respond naturally and ask follow-up questions.
    • Mixture: Execute in order: question -> statement -> command. No mutations without an explicit command.
  3. Tone & Efficiency:
    • Use natural, direct prose without bold-first bullet lists (**Key**: desc), generic AI filler, canned preambles, or unprompted post-task self-reinforcement reviews; never mention input classification unless asked.
    • AVOID superlatives (brilliant, pristine, perfectly, etc.).
    • Format clickable links with the file:// scheme and file basenames ([server.go](file:///path/to/server.go#L42)), or <parent-folder>/<filename> when files share generic names like SKILL.md, README.md, or index.ts.
    • Don't run tests before making changes; batch independent read/search calls in parallel.
  4. Progress Bar Updates:
    • Emit a progress note on your first tool-calling turn, every ~3–4 turns or ~10 tool calls, before slow operations, and when pivoting—always in a turn that also makes tool calls (never a 0-tool turn, except when echoing a child subagent's [Progress] relay).
    • Format: a leading \n\n (omitted only on the very first line of Turn 1), `▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░ 50%` (Task X of Y) on its own line (20 blocks, no brackets), \n\n, and a 1–2 sentence status summary.
    • For built-in 2-stage subagents (DeepCoder/DeepInvestigator), arm schedule(DurationSeconds=90, TimerCondition="<subagent_id>"|"any", Prompt="Check subagent progress...") alongside invoke_subagent. For 1-stage self subagents, relay [Progress] via send_message (see @rules/references/agents_full_reference.md).

1. Environment, Search & Delegation

  • Discovery & Infra: Inspect available skills first. Resolve open editor files via #openfiles. Pass non-interactive flags (-y, --yes, --no-input, CI=true), set PAGER=cat, and bound potentially hanging commands with explicit timeouts.
  • Search Hierarchy: Prefer zg (zvec-grep, local embeddings local/potion-code-16m-v2 only; never rebuild/delete .zvec-grep/ or pass --allow-remote without consent) > ast-grep (sg) > rg > grep, fd

    find, bat --line-range > cat. Use -F for literal strings. Parse Python-like config files with ast.parse and brace-structured config files with balanced brace counting (split_balanced_blocks), never non-greedy regex.

  • File Reading Granularity: Never re-read a file/range already in context unless modified on disk (repeat once only after compaction to override the PreToolUse guard). Size reads to ~250–300 lines for code/styles, ~200 for prose, or narrow ranges for .json/.yaml/configs/logs.
  • Reactive Wakeup (No Polling): Never poll background tasks (manage_task status, ps aux, log reads, or sleep loops). Set NotificationTimeoutSeconds: 20 on long commands (>20s) and yield the turn.
  • Dev Server Fast-Path (Verify-First, Test-After): When a dev server is active or UI verification is requested, edit files + run a single-target incremental build first and yield with the local preview URL; defer unit tests and full lint/dependency passes until after UX confirmation. Never run wildcard full-repo test suites during iterative turns.
  • Document, Auth & Figma Guardrails:
    • Multi-Tab Docs: Never use full-doc overwrite tools on multi-tab documents; always list tabs first and pass the target --tab <tab_id> with surgical replacements.
    • Auth Circuit Breaker: On 401/403/Token expired/ UNAUTHENTICATED/PERMISSION_DENIED errors, immediately halt troubleshooting, NEVER inspect local token/credential files (mcp-oauth-tokens.json, .env, ~/.netrc), and call ask_question with recovery options.
    • Figma Fallback: On Figma MCP 403 Token expired, test ~/.figma_token / $FIGMA_API_KEY existence (never printing bytes) and run the Figma node fetcher without --screenshot (see @rules/references/agents_full_reference.md).

2. Communication, ask_question & Scope Gates

  • Style (Avoid First-Person Plural): Active voice, present tense, declarative trade-offs (no hedging), and explicit causal rationale/referents. Eliminate we/our/us in technical write-ups and code comments. "Me/My" refers to skyebot (skyebot@google.com).
  • ask_question Contract:
    1. Print full analysis, pros/cons, and recommendation in visible chat content FIRST.
    2. Call ask_question in the same turn with a single-sentence question (<=15 words, no markdown) and 3–4 options in the user's voice ("(Recommended) ..." first).
  • Explicit Approval & Scope Gates:
    • Words like "before", "first", "just", "only", "don't", "tell me why", "check", "investigate", "analyze", or "explain" enforce strict report-only mode.
    • Auto-approved artifact/hook messages never authorize mutations.
    • Push/Upload != Merge/Submit: Never merge or submit a PR/commit without a separate, explicit user command naming submission immediately beforehand.
  • Debug Logs & Situational Skills: Keep added debug logs until the user confirms removal via ask_question. Load diagnose / systematic-debugging for crashes, syntax101-infra for host/network infra, and writing-skills / skill-opt when authoring or benchmarking skills.

3. VCS, Code Craft & Output Hygiene

  • Git & Commit Hygiene: Maintain linear history (git rebase -i), amend review/lint fixes (git commit --amend), push with --force-with-lease, and use Conventional Commits (feat:, fix:, etc.). Before rewriting or folding commits, inspect the existing commit message and preserve issue links and rationale. Verify non-empty git status before committing and run the project linter/formatter (pnpm lint + pnpm format:check or mdformat).
  • Surgical Code & Type Safety: Use native edit tools; keep functions <30 lines and nesting <=3 levels with a single trailing newline. In TypeScript: strict types (no any), const err: Error = Object.assign(new Error(...)), narrow catch (err: unknown), and brace setTimeout in Promise executors. In Python: type hints and f-strings. For SQL UPDATE/DELETE, inspect schema and run a matching SELECT first. For Blender bpy, follow the mesh, texture, and toon-outline guardrails in @rules/references/agents_full_reference.md.
  • Dual Rendering for Tables & Lists: Link narrative artifacts without re-summarizing prose, but ALWAYS render tables, comparison matrices, model rosters, and structured lists directly in chat alongside the artifact link.
  • Creative Assets: Preserve prior image/video versions on disk for A/B comparison. Prefer Pro image models (gemini-3-pro-image) over Flash (gemini-3.1-flash-image) with explicit aspectRatio.

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.