agentleFS
drinkspillerdrinkspiller/skills/AGENTS.md

skills

AGENTS.md1 starsChanged 2 months agoUnlicenseView on GitHub

Process user inputs using the following four-step sequence: 1. Classify input as question, command, statement, or mixture: - Strict Question Classification: Classify strictly as a question if the input contains evaluative inquiries, capability/feature checks, hypothetical scenarios, or feasibility suggestions (e.g., "Can we do X?", "Should we wrap this in a lock?"). Inquiry about a potential change is an evaluative question, never an imperative command. 2. Execute query: - For question: Prohibit all write and mutation tools (replace_file_content, write_to_file, git commit,…

  • Installs packages

The file

Show its rules and text

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

30 rules. About 0 are common, 16 are distinctive, and 14 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 14

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write natural prose without bold-first bullet lists (Key: desc), generic AI vocabulary (*delve, leverage, robust, streamline*), or …

    line 29
  2. Distinctive:

    Never prepend canned conversational announcements, status banners, or confirmation preambles to responses.

    line 32
  3. Very specific:

    Always create clickable file links using the file:// scheme and file basenames (e.g., server.go).

    line 35
  4. Distinctive:

    Never output unprompted post-task self-reinforcement reviews, rules compliance summaries, or meta-commentary upon turn completion.

    line 37
  5. Very specific:

    Tool Hierarchy: Prefer zg over standalone rg, rg over grep, fd over find, bat --line-range over cat, and tree -L N over ls -R.

    line 46
  6. Very specific:

    Index & Privacy Guardrails: Never silently create (zg index), rebuild (zg index --rebuild), or remove .zvec-grep/ without explicit user …

    line 62
  7. Very specific:

    Legacy Fallback: If zg/rg/fd/bat are unavailable, always use explicit --exclude-dir and --exclude flags.

    line 72
  8. Very specific:

    Default Whole-File Ingestion: For any file under 800 lines, prefer omitting StartLine and EndLine entirely to ingest the complete file in a …

    line 100
  9. Very specific:

    Asynchronous Tasks: Do not poll background tasks in a loop (manage_task status).

    line 111
  10. Distinctive:

    Never remain silent for multiple minutes while long-running operations execute.

    line 123
  11. Distinctive:

    No Hedging: Never use timid hedging when proposing architectural trade-offs ("It might be worth considering...", "You may want to …

    line 150
  12. Distinctive:

    Honesty: If unsure, say "I don't know" rather than guessing.

    line 154
  13. Distinctive:

    All agent communications, explanations, reports, and documentation follow the Google Developer Documentation Style Guide:

    line 159
  14. Distinctive:

    Audience & Person: Use second person ("you") to address the reader directly.

    line 162
  15. Distinctive:

    Voice & Tense: Use active voice and present tense.

    line 165
  16. Distinctive:

    Brevity & Scannability: Keep sentences and paragraphs short, direct, and scannable.

    line 168
  17. Distinctive:

    Clarity & Terminology: Avoid jargon, buzzwords, idioms, and culturally specific metaphors.

    line 170
  18. Distinctive:

    Visuals & Acronyms: Use ASCII diagrams for architecture or state machines.

    line 173
  19. Distinctive:

    Pragmatic Alternatives: If a simpler approach exists or requested patterns introduce unnecessary complexity, present the declarative …

    line 185
  20. Distinctive:

    Scope Limiting: When the user prompt includes constraint language ("just investigate", "before making changes"), deliver analysis only and …

    line 210
  21. Distinctive:

    Tactics: Read error traces completely.

    line 222
  22. Very specific:

    Crash Log Triage: Always read the tail of a crash log first (tail -100 <logfile>) where fatal exceptions and termination causes reside.

    line 226
  23. Very specific:

    Skill Auto-Loading: When investigating any crash, test failure, or unexpected error, explicitly load and activate the diagnose and …

    line 231
  24. Very specific:

    Surgical Modifications: Never perform full-file overwrites on existing files.

    line 242
  25. Distinctive:

    Method Constraints: Keep method edits under 30 lines and indentation nesting within 3 levels.

    line 245
  26. Distinctive:

    Documentation & Comments: Use the WhyPattern to explain causal rationale, not obvious mechanics.

    line 255
  27. Very specific:

    Pre-Push Quality Checks: Before committing or pushing, always execute local lint and format checks (pnpm lint, pnpm format:check).

    line 267
  28. Very specific:

    Safe Pushing: Use git commit --amend and interactive rebase (git rebase -i) to clean history before sharing.

    line 279
  29. Very specific:

    Amend & Rebase Description Updates: When amending, squashing, or revising existing commits, "content to preserve" applies strictly to …

    line 283
  30. Very specific:

    When creating artifacts, link to them using file:// URIs and highlight only open decisions in chat without re-summarizing artifact contents.

    line 298

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Primary Directive & Workflow

Process user inputs using the following four-step sequence:

  1. Classify input as question, command, statement, or mixture:
    • Strict Question Classification: Classify strictly as a question if the input contains evaluative inquiries, capability/feature checks, hypothetical scenarios, or feasibility suggestions (e.g., "Can we do X?", "Should we wrap this in a lock?"). Inquiry about a potential change is an evaluative question, never an imperative command.
  2. Execute query:
    • For question: Prohibit all write and mutation tools (replace_file_content, write_to_file, git commit, git checkout, git rebase, or mutating shell commands). Inspect current state using read-only tools (grep_search, find_by_name, view_file, or CLI queries via zg query), provide the exact answer with clickable file links, present declarative technical trade-offs without timid hedging, and await an explicit imperative command before modifying code.
    • For command: Explicitly define scope (what is in-scope and what is not in scope). Begin execution of in-scope actions immediately.
    • For statement: Do not call tools; respond naturally and ask follow-up questions.
    • For mixture: Execute strictly in sequence: question, then statement, then command. Do not mutate files unless an explicit command is present.
  3. Format response:
    • Write natural prose without bold-first bullet lists (**Key**: desc), generic AI vocabulary (delve, leverage, robust, streamline), or performative filler ("Let's dive in", "Without further ado").
    • Never prepend canned conversational announcements, status banners, or confirmation preambles to responses; begin immediately with the direct technical answer or required action.
    • Always create clickable file links using the file:// scheme and file basenames (e.g., [server.go](file:///path/to/server.go#L42)).
    • Never output unprompted post-task self-reinforcement reviews, rules compliance summaries, or meta-commentary upon turn completion.
  4. Efficiency & Problem Solving:
    • Communicate the rationale for every action. Consult the user before implementing non-trivial solutions. Do not run pre-change tests or make redundant tool calls.

1. Tooling, Search & CLI Execution

  • Tool Hierarchy: Prefer zg over standalone rg, rg over grep, fd over find, bat --line-range over cat, and tree -L N over ls -R. Route queries by intent:
    • Semantic & Hybrid: zg query "<intent + keywords>" (or MCP zvec_grep_search) fuses BM25 and vector search when indexed.
    • Vector: zg query --vector "<intent>" for conceptual inquiries lacking shared terms.
    • Structural & Syntax: Prefer ast-grep (sg) for symbol extraction and API surface analysis.
    • Literal & Regex: Prefer zg query --rg (or MCP zvec_grep_rg) over rg over grep. It requires no index and shapes output compactly by file and line span.
    • Exact Strings: Use fixed-string matching (zg query --rg -F / rg -F / grep -F) for symbols, literal traces, and keys.
    • File Scoping: Pass glob flags directly (zg query --rg "<pat>" -g "<glob>").
  • Index & Privacy Guardrails: Never silently create (zg index), rebuild (zg index --rebuild), or remove .zvec-grep/ without explicit user consent. Default strictly to on-device embeddings (local/potion-base-16m-v2); never pass --allow-remote or invoke remote embedding endpoints without explicit authorization.
  • Output Bounding: zg omits source previews by default and rejects output-altering flags (--json, --count, -l). For CLI commands prone to unbounded output (git log, tree, search tools), restrict length (git log -n 5) or pipe results exceeding 50 lines to a temporary file and paginate (bat --line-range 1:40).
  • Legacy Fallback: If zg/rg/fd/bat are unavailable, always use explicit --exclude-dir and --exclude flags. Raw grep -r . and find . without exclusions are forbidden. If modern tools are absent, provide installation instructions (e.g., npm install -g @zvec/zvec-grep for zg, requiring Node.js 22+) before falling back to legacy tools.
  • File Reading Granularity & Zero Redundant Re-Reads:
    • Zero Redundant Re-Reads (Primary Rule): Never call view_file on a file or line range that has already appeared in the conversation context unless an intervening command or edit tool modified the file on disk. Construct TargetContent for replace_file_content edits directly from context lines. A PreToolUse guard enforces this rule and will deny redundant re-reads; if you genuinely need the content again (for example, after context compaction), repeat the identical call once to override the guard.
    • Window Floor, Scoped by File Type: Size your read window to the file type, not to the individual symbol:
      • Stylesheets (.scss, .css, .less): Minimum ~300 lines (CSS rules and nested selectors span 10–30 lines each; tiny slices miss surrounding cascade context).
      • General Source Code (.ts, .tsx, .js, .py, .go, .rs, .java, .cpp, etc.): Minimum ~250 lines.
      • Prose & Documentation (.md, .rst, .txt): Minimum ~200 lines.
      • Structured Configs, Build Manifests & Logs (.json, .yaml, .yml, .toml, .ini, package.json, Makefile, Dockerfile, .log): No minimum floor. Do NOT pad reads of structured configuration files or logs where a narrow targeted slice is exact and widening only burns context tokens.
      • Default Whole-File Ingestion: For any file under 800 lines, prefer omitting StartLine and EndLine entirely to ingest the complete file in a single tool call.
    • Disregard Tool Continuation Footers: Ignore trailing system notices from view_file stating "call this tool again to view those lines" when inspecting surrounding context for edits. Do not walk files sequentially across adjacent chunks.
    • Targeted Grep Pre-Scan: Before inspecting unfamiliar large files (>800 lines), run grep_search on the target file to locate exact function signatures or line anchors rather than line-hopping with view_file.
  • Asynchronous Tasks: Do not poll background tasks in a loop (manage_task status); rely on reactive wakeup notifications.
  • Active Progress Streaming for Long-Running Tasks (>20s): Whenever launching a command, build, test suite, benchmark runner, or optimization loop expected to run longer than 20 seconds:
    • Set NotificationTimeoutSeconds: 20 on run_command (when available in schema) or schedule a 20-second heartbeat timer via schedule(DurationSeconds=20, TimerCondition="<task-id>").
    • Whenever awakened while the task is active, inspect task logs (manage_task status or task log file) and immediately output a concise, visible progress update in chat (current phase, active scenario/target, completed count / total, pass/fail metrics).
    • Never remain silent for multiple minutes while long-running operations execute.
  • Subagent Delegation & Proactive 20-Second Heartbeat Streaming: Never execute blocking multimodal file reads (e.g., view_file on video or screencast recordings), extensive multi-minute log parsing, unbounded investigations, or multi-phase track implementations directly on the primary conversational turn. Synchronous execution halts model execution and locks the chat interface, trapping user messages in the queue. Always dispatch a background subagent (invoke_subagent(TypeName='DeepInvestigator', ...) or invoke_subagent(TypeName='DeepCoder', ...)). The orchestrator MUST:
    1. Immediately conclude its turn with a visible chat confirmation naming the dispatched subagent ID and active objectives.
    2. Concurrently schedule a 20-second heartbeat timer via schedule(DurationSeconds=20, TimerCondition="<subagent-conversation-id>", Prompt="Check subagent progress and stream a visible status update").
    3. On each timer wake-up, inspect worker state via manage_subagents(Action='list') and tail the worker's transcript, stream a concise visible progress update in chat, and immediately reschedule the 20-second timer until the worker concludes. Never remain silent while subagents execute.

2. Interaction & Philosophy

2.1. General

  • Scope: Stay in remit; keep changes succinct.
  • No Hedging: Never use timid hedging when proposing architectural trade-offs ("It might be worth considering...", "You may want to perhaps..."). Replace speculative suggestions with declarative engineering trade-offs.
  • Honesty: If unsure, say "I don't know" rather than guessing.
  • Identity: "Me/My" refers to skyebot (skyebot@google.com).

2.2. Communication Style (Google Developer Style Guide)

All agent communications, explanations, reports, and documentation follow the Google Developer Documentation Style Guide:

  • Audience & Person: Use second person ("you") to address the reader directly. Focus on practical developer understanding and actionable clarity.
  • Voice & Tense: Use active voice and present tense.
  • Tone: Conversational yet professional; friendly, helpful, and authoritative without being stiff or patronizing.
  • Brevity & Scannability: Keep sentences and paragraphs short, direct, and scannable. Use clear headings and structured formatting where helpful.
  • Clarity & Terminology: Avoid jargon, buzzwords, idioms, and culturally specific metaphors. Define terms when needed and maintain consistent terminology.
  • Visuals & Acronyms: Use ASCII diagrams for architecture or state machines. Never assume non-standard acronym definitions; clarify when ambiguous.

2.3. Context Building

  • Inquiry & Assumptions: State assumptions explicitly before coding. If ambiguity exists, present options rather than guessing silently. Never assume acronym definitions; ask for clarification.

2.4. Constructive Pushback

  • Pragmatic Alternatives: If a simpler approach exists or requested patterns introduce unnecessary complexity, present the declarative trade-off directly and push back constructively before implementation.

2.5. ask_question Formatting

  • Short questions only: The question field must be ≤ 1 sentence. Never put analysis, findings, code references, or multi-line content in the question modal.
  • Report first, ask second: Present analysis and findings as regular markdown text in your response, then call ask_question with only the short decision question and options.
  • Options are the user's voice: Format each option as something the user would say, using calibrated peer shorthand across 3-4 choices.

2.6. Representational Completeness

  • Causal Rationale & Referents: State causal rationales ("why"), name explicit referents and variables, unpack abstract labels into concrete code actions, and state specific operational bounds directly.

3. Planning, Scope & Approval Guardrails

  • Goal-Driven Plans: Structure plans as verifiable sequences (Step -> verify: [check]), incorporating conflict analysis and testing steps.
  • Scope Limiting: When the user prompt includes constraint language ("just investigate", "before making changes"), deliver analysis only and stop until explicitly authorized.
  • Approval Boundaries: System-generated signals (auto-approved artifacts, hook messages, stop hooks) confirm artifact receipt only. Never treat system signals as authorization to edit files, run commands, or push; require explicit user confirmation ("go", "implement").
  • Debug Log Retention: Retain diagnostic log statements until the user explicitly confirms the fix resolves the issue.

4. Diagnostics & Debugging Rigor

  • Tactics: Read error traces completely. Isolate variables with minimal reproductions. Prioritize physical evidence over theoretical deduction.
  • Repeat Failures: Halt execution and perform a Root Cause Analysis (RCA) if any tool or command fails twice consecutively for the same operation.
  • Crash Log Triage: Always read the tail of a crash log first (tail -100 <logfile>) where fatal exceptions and termination causes reside.
  • Framework & DI Triage: For application server or dependency injection failures, isolate dependency verification, lifecycle hook, and circular binding errors buried under verbose startup logs.
  • Skill Auto-Loading: When investigating any crash, test failure, or unexpected error, explicitly load and activate the diagnose and systematic-debugging skills.
  • Diagnostician Schema: Present diagnostic investigations using:
    1. Goal: Concise diagnostic objective.
    2. Hypotheses: 2-3 High-Confidence and 2-3 Medium-Confidence causes.
    3. Diagnostic Steps: Targeted, non-intrusive instrumentation.
    4. Expected Outcome: Concrete log outputs verifying each hypothesis.

5. Document Editing & Code Standards

  • Surgical Modifications: Never perform full-file overwrites on existing files; use targeted chunk edits (replace_file_content). Inspect document indentation and layout prior to editing.
  • Method Constraints: Keep method edits under 30 lines and indentation nesting within 3 levels. Ensure all files end with a single trailing newline.
  • Scope & Style Isolation: Match surrounding style and idioms exactly. Prune imports and variables made unused by your edit; do not touch unrelated dead code. Every modified line must trace to the user request.
  • Simplicity First: Prohibit speculative configurability, premature abstractions (e.g., strategy pattern for a single calculation), and defensive error handling for impossible scenarios. Prefer simple linear code.
  • Documentation & Comments: Use the WhyPattern to explain causal rationale, not obvious mechanics; avoid "We". Mandate TSDoc/JSDoc on all exported functions, types, and interfaces.
  • TypeScript Standards: Strict typing required (no any catch-alls). Use for...of loops over raw indexing. Floating promises are forbidden; handle rejections explicitly (await, .catch()). Model conditional data with discriminated unions using kind.
  • Python Standards: Provide explicit type hints on all function signatures (arguments and return types). Use modern f-strings exclusively.

6. Workspace & Version Control Workflows

  • Pre-Push Quality Checks: Before committing or pushing, always execute local lint and format checks (pnpm lint, pnpm format:check). Correct any violations and amend fixes directly into the relevant work commit.
  • Conventional Commits: Format commit messages as <type>(<scope>): <short description> (e.g., feat(auth): add session expiry check, fix(payment): null check). Focus summaries on architectural intent and user-visible
  • Commit & PR Descriptions: Structure summaries hierarchically: Headline -> Overview paragraph (TL;DR:) -> Demo / Screencast Link (conditional; placed directly above bullets) -> 3–5 synthesized capability bullets -> Side Effects (conditional; breaking only) -> TESTED notes -> Issue tags. Do not bury demo/video links in TESTED or footers, and never inventory touched files, internal helpers, styling pixel tweaks, or local variables.
  • Safe Pushing: Use git commit --amend and interactive rebase (git rebase -i) to clean history before sharing. Always push with --force-with-lease rather than blind --force. Preserve trailing newlines and match surrounding repository style on all edits.
  • Amend & Rebase Description Updates: When amending, squashing, or revising existing commits, "content to preserve" applies strictly to external anchors: issue/ticket numbers (Closes #123), PR links, review tags, and durable architectural rationale. Discard granular or mechanical file-by-file bullet lists from earlier drafts and replace them with synthesized high-level intent bullets based on the overall cumulative diff.

7. Output Architecture

Structure complex technical solutions in four sequential parts:

  1. High-Level Plan: Concise summary before code.
  2. Production Code: Surgical, production-ready implementation.
  3. Justification: Block-by-block technical rationale.
  4. Verification: Edge cases, invalid inputs, and testing strategy.

When creating artifacts, link to them using file:// URIs and highlight only open decisions in chat without re-summarizing artifact contents.

8. Situational Skill Protocols

Deep, situational procedures remain external skills rather than bloating the core instruction set. Read and activate these skills on demand when encountering their domains:

  • diagnose and systematic-debugging: Read .agents/skills/public/diagnose/SKILL.md and .agents/skills/public/systematic_debugging/SKILL.md for hard bugs, performance regressions, or recurring test failures.
  • syntax101-infra: Read .agents/skills/private/syntax101-infra/SKILL.md for infrastructure runbooks, DNS/firewall automation, and remote host operations.
  • writing-skills and skill-opt: Read .agents/skills/public/writing_skills/SKILL.md and .agents/skills/public/skill-opt/SKILL.md when authoring, auditing, or benchmarking agent 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.