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
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,773 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 repository71 other files it gives its agents.
- ad-copy-writerSkill
- ae-inspect-describeSkill
- algorithmic-artSkill
- animation-directorSkill
- brainstorming-and-ideatingSkill
- brainstorming-research-ideasSkill
- brainstormingSkill
- brief-to-tasksSkill
- canvas-designSkill
- cli-designSkill
- cli-output-hierarchySkill
- commit-messageSkill
- craft-uiSkill
- creative-directorSkill
- design-briefSkill
- design-flowSkill
- design-mock-auditSkill
- design-reviewSkill
- design-system-patternsSkill
- design-tokensSkill
- deslopifySkill
- diagnoseSkill
- doc-restructureSkill
- eval-criticSkill
- formatting-open-markdownsSkill
- frontend-designSkill
- frontend-slidesSkill
- gdocs-tab-writerSkill
- gemini-apiSkill
- gif-creationSkill
- github_repo_researchSkill
- grill-meSkill
- grill-with-docsSkill
- hallmarkSkill
- handoffSkill
- html-presentationSkill
- humanizerSkill
- improve-codebase-architectureSkill
- information-architectureSkill
- install-skill-from-githubSkill
- markdown-output-hierarchySkill
- marketing-psychologySkill
- merge-latestSkill
- modern-web-performanceSkill
- motion-designSkill
- pdf-readerSkill
- pm-brainstormingSkill
- pm-discovery-brainstormSkill
- product-marketingSkill
- prototypeSkill
- pull-requestSkill
- ralph_loopSkill
- react-best-practicesSkill
- skill-creatorSkill
- skill-optSkill
- steve-voiceSkill
- systematic-debuggingSkill
- tastemaker-styleSkill
- tech-doc-codelabSkill
- threejsSkill
- The first 60 shown.
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
- Very specific: line 29
Write natural prose without bold-first bullet lists (Key: desc), generic AI vocabulary (*delve, leverage, robust, streamline*), or …
- Distinctive: line 32
Never prepend canned conversational announcements, status banners, or confirmation preambles to responses.
- Very specific: line 35
Always create clickable file links using the file:// scheme and file basenames (e.g., server.go).
- Distinctive: line 37
Never output unprompted post-task self-reinforcement reviews, rules compliance summaries, or meta-commentary upon turn completion.
- Very specific: line 46
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.
- Very specific: line 62
Index & Privacy Guardrails: Never silently create (zg index), rebuild (zg index --rebuild), or remove .zvec-grep/ without explicit user …
- Very specific: line 72
Legacy Fallback: If zg/rg/fd/bat are unavailable, always use explicit --exclude-dir and --exclude flags.
- Very specific: line 100
Default Whole-File Ingestion: For any file under 800 lines, prefer omitting StartLine and EndLine entirely to ingest the complete file in a …
- Very specific: line 111
Asynchronous Tasks: Do not poll background tasks in a loop (manage_task status).
- Distinctive: line 123
Never remain silent for multiple minutes while long-running operations execute.
- Distinctive: line 150
No Hedging: Never use timid hedging when proposing architectural trade-offs ("It might be worth considering...", "You may want to …
- Distinctive: line 154
Honesty: If unsure, say "I don't know" rather than guessing.
- Distinctive: line 159
All agent communications, explanations, reports, and documentation follow the Google Developer Documentation Style Guide:
- Distinctive: line 162
Audience & Person: Use second person ("you") to address the reader directly.
- Distinctive: line 165
Voice & Tense: Use active voice and present tense.
- Distinctive: line 168
Brevity & Scannability: Keep sentences and paragraphs short, direct, and scannable.
- Distinctive: line 170
Clarity & Terminology: Avoid jargon, buzzwords, idioms, and culturally specific metaphors.
- Distinctive: line 173
Visuals & Acronyms: Use ASCII diagrams for architecture or state machines.
- Distinctive: line 185
Pragmatic Alternatives: If a simpler approach exists or requested patterns introduce unnecessary complexity, present the declarative …
- Distinctive: line 210
Scope Limiting: When the user prompt includes constraint language ("just investigate", "before making changes"), deliver analysis only and …
- Distinctive: line 222
Tactics: Read error traces completely.
- Very specific: line 226
Crash Log Triage: Always read the tail of a crash log first (tail -100 <logfile>) where fatal exceptions and termination causes reside.
- Very specific: line 231
Skill Auto-Loading: When investigating any crash, test failure, or unexpected error, explicitly load and activate the diagnose and …
- Very specific: line 242
Surgical Modifications: Never perform full-file overwrites on existing files.
- Distinctive: line 245
Method Constraints: Keep method edits under 30 lines and indentation nesting within 3 levels.
- Distinctive: line 255
Documentation & Comments: Use the WhyPattern to explain causal rationale, not obvious mechanics.
- Very specific: line 267
Pre-Push Quality Checks: Before committing or pushing, always execute local lint and format checks (pnpm lint, pnpm format:check).
- Very specific: line 279
Safe Pushing: Use git commit --amend and interactive rebase (git rebase -i) to clean history before sharing.
- Very specific: line 283
Amend & Rebase Description Updates: When amending, squashing, or revising existing commits, "content to preserve" applies strictly to …
- Very specific: line 298
When creating artifacts, link to them using file:// URIs and highlight only open decisions in chat without re-summarizing artifact contents.
≈ “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.
Files
Guiding Principles & Rules
Primary Directive & Workflow
Process user inputs using the following four-step sequence:
- 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.
- 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 viazg 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.
- For question: Prohibit all write and mutation tools
(
- 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.
- Write natural prose without bold-first bullet lists (
- 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
zgover standalonerg,rgovergrep,fdoverfind,bat --line-rangeovercat, andtree -L Noverls -R. Route queries by intent:- Semantic & Hybrid:
zg query "<intent + keywords>"(or MCPzvec_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 MCPzvec_grep_rg) overrgovergrep. 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>").
- Semantic & Hybrid:
- 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-remoteor invoke remote embedding endpoints without explicit authorization. - Output Bounding:
zgomits 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/batare unavailable, always use explicit--exclude-dirand--excludeflags. Rawgrep -r .andfind .without exclusions are forbidden. If modern tools are absent, provide installation instructions (e.g.,npm install -g @zvec/zvec-grepforzg, 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_fileon 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. ConstructTargetContentforreplace_file_contentedits directly from context lines. APreToolUseguard 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
StartLineandEndLineentirely to ingest the complete file in a single tool call.
- Stylesheets (
- Disregard Tool Continuation Footers: Ignore trailing system notices
from
view_filestating "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_searchon the target file to locate exact function signatures or line anchors rather than line-hopping withview_file.
- Zero Redundant Re-Reads (Primary Rule): Never call
- 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: 20onrun_command(when available in schema) or schedule a 20-second heartbeat timer viaschedule(DurationSeconds=20, TimerCondition="<task-id>"). - Whenever awakened while the task is active, inspect task logs
(
manage_task statusor 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.
- Set
- Subagent Delegation & Proactive 20-Second Heartbeat Streaming: Never
execute blocking multimodal file reads (e.g.,
view_fileon 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', ...)orinvoke_subagent(TypeName='DeepCoder', ...)). The orchestrator MUST:- Immediately conclude its turn with a visible chat confirmation naming the dispatched subagent ID and active objectives.
- 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"). - 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
questionfield 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_questionwith 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
diagnoseandsystematic-debuggingskills. - Diagnostician Schema: Present diagnostic investigations using:
- Goal: Concise diagnostic objective.
- Hypotheses: 2-3 High-Confidence and 2-3 Medium-Confidence causes.
- Diagnostic Steps: Targeted, non-intrusive instrumentation.
- 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
anycatch-alls). Usefor...ofloops over raw indexing. Floating promises are forbidden; handle rejections explicitly (await,.catch()). Model conditional data with discriminated unions usingkind. - 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 --amendand interactive rebase (git rebase -i) to clean history before sharing. Always push with--force-with-leaserather 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:
- High-Level Plan: Concise summary before code.
- Production Code: Surgical, production-ready implementation.
- Justification: Block-by-block technical rationale.
- 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:
diagnoseandsystematic-debugging: Read.agents/skills/public/diagnose/SKILL.mdand.agents/skills/public/systematic_debugging/SKILL.mdfor hard bugs, performance regressions, or recurring test failures.syntax101-infra: Read.agents/skills/private/syntax101-infra/SKILL.mdfor infrastructure runbooks, DNS/firewall automation, and remote host operations.writing-skillsandskill-opt: Read.agents/skills/public/writing_skills/SKILL.mdand.agents/skills/public/skill-opt/SKILL.mdwhen authoring, auditing, or benchmarking agent skills.
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.

