karakuri
AGENTS.md0 starsChanged 59 days agoMITView on GitHub
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 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 repository20 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- kurokoSkill
- tayoriSkill
- xerjSkill
- aesthetic-readme-craftSkill
- cli-builderSkill
- codebase-digestSkill
- git-release-craftSkill
- git-repo-craftSkill
- karakuriSkill
- python-clean-codeSkill
- rust-clean-codeSkill
- rust-style-pythonSkill
- systematic-code-verificationSkill
- compose-clean-codeSkill
- bash-clean-codeSkill
- tui-designSkill
- frontend-designSkill
- web-design-guidelinesSkill
- unslopSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Distinctive: line 4
Never edit any code files or execute destructive modifications without first explaining:
- Very specific: line 38
Mandatory Interactive Approval: When requesting human approval via Tayori, strictly run tayori ask -i "<question>".
- Very specific: line 39
Milestone & Error Alerts: Use tayori done upon completing multi-step workflows, and tayori alert for critical failures.
- Distinctive: line 53
Before writing, modifying, or refactoring code in any specific language or framework, the agent MUST explicitly consult and strictly adhere …
- Very specific: line 62
Zero Tolerance: No unverified # type: ignore or # noqa.
- Very specific: line 75
Use karakuri audit . to audit clean-code limits and clippy warnings.
- Very specific: line 76
Use karakuri digest . to synchronize CODEBASE.md.
- Very specific: line 77
Use karakuri sync to ensure cross-agent skill parity.
≈ “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.
Files
Project Rules & Guidelines
1. Explicit Approval Protocol (Mandatory)
Never edit any code files or execute destructive modifications without first explaining:
- WHY: The specific rationale and root cause for the proposed change.
- WHAT EFFECT or FIX: The exact behavior, bug fix, or improvement it will produce.
- APPROVAL: Await explicit user confirmation before applying initial file modifications.
Operational Boundaries:
- Initial Proposals & Feature Requests (Approval Mandatory):
When asked to implement a new feature, perform a refactor, or fix an issue, never silently edit code. Always explain the root cause/rationale, expected impact, and obtain explicit user approval before starting modifications. If requesting mobile approval via Tayori, strictly pass the interactive flag:
tayori ask -i "<question>". Never run fire-and-forget approval requests without-i. - Autonomous Task Execution & Error Self-Healing (Zero Permission-Seeking): Once the user approves a task or fix, the agent has full authorization to carry it through to completion. If the agent's changes introduce compiler errors, clippy warnings, test failures, or secondary bugs during implementation, the agent MUST NOT stop and ask for permission to fix them. NEVER ask "I made a mistake / there's another error, should I fix it?"—own the error and resolve it autonomously in a closed loop until the task is complete and verified green.
- Mandatory Active Verification & Proof Protocol (Zero Assumption):
Never assume code works without active verification. Unit tests (
test.ts,test.py,test.rs,pytest,cargo test) alone are NOT enough—they test isolated logic in vitro and do not prove live runtime behavior. Before declaring any coding task, bug fix, or refactor complete, the agent MUST actively execute the 3-phase verification cycle (skills/build-tooling/systematic-code-verification/): static validation/compilation, test suite execution, and live runtime smoke testing of the real binary/script/CLI. The agent MUST display the verbatim terminal commands and actual output/exit codes proving what was verified. Never say "it should work", never make unproven assertions, and never ask the user to test what the agent can execute itself. - Autonomous Release & CI/CD Self-Healing (Zero Permission-Seeking):
Once a release is initiated or approved, the agent is 100% responsible for delivering a verified green pipeline. If GitHub Actions, compilation, or release workflows fail due to an error introduced during release/build, the agent MUST autonomously diagnose (
gh run view --log-failed), fix the error, re-test, re-tag/re-push, and monitor until green.
2. Mandatory Skill & Rule Activation Protocol
Agents MUST strictly consult and activate the appropriate skills before planning or writing code. Bypassing skill instructions or relying on unverified assumptions is strictly prohibited.
2.1 Universal Standards (Mandatory for ALL Tasks & Stacks)
These skills and rules apply unconditionally to every interaction, task, and repository:
- Systematic Code Verification (
skills/build-tooling/systematic-code-verification/):- Zero Assumptions: Code is presumed broken until proven working via active command execution. Unit tests (
test.ts/py/rs,pytest,cargo test) alone are never enough. - 3-Phase Verification: Mandatory static check (compile/lint/typecheck) -> automated tests (unit/integration) -> mandatory live runtime smoke test (CLI/executable with real inputs).
- Evidence-Based Proof: Present literal terminal command output and exit codes showing what was verified before declaring task completion.
- Zero Assumptions: Code is presumed broken until proven working via active command execution. Unit tests (
- AI Codebase Index (
skills/build-tooling/codebase-digest/):- Living Semantic Index: Mandatory AI-first
CODEBASE.mdmaintained in the root of the project with zero fluff, dense symbol skeletons, and module dependencies. - Iterative Auto-Update: At the end of every turn/iteration involving file additions, deletions, renames, or signature modifications,
CODEBASE.mdmust be updated before finishing the task.
- Living Semantic Index: Mandatory AI-first
- Writing & Prose (
skills/writing/unslop/):- AI Tell Removal: Strip all AI vocabulary (delve, crucial, fostering, pivotal, vibrant, tapestry, testament, underscore, etc.), sycophantic phrases, em-dash overuse, boldface overuse, and filler phrases from every response, comment, commit message, and doc.
- Karakuri Emoji Exception: Emojis are allowed in README headings and feature bullet lists (required by
aesthetic-readme-craft). Remove emojis from code comments, commit messages, and inline prose only. - Direct Communication: No "I hope this helps!", "Of course!", "Great question!", or hedging chains. Respond directly.
- Mobile Notifications & Approvals (
skills/ai-agents/tayori/):- Mandatory Interactive Approval: When requesting human approval via Tayori, strictly run
tayori ask -i "<question>". Fire-and-forgettayori askwithout-iis strictly prohibited because it exits immediately without waiting for human confirmation. - Milestone & Error Alerts: Use
tayori doneupon completing multi-step workflows, andtayori alertfor critical failures.
- Mandatory Interactive Approval: When requesting human approval via Tayori, strictly run
- Releases & Versioning (
skills/build-tooling/git-release-craft/):- Mandatory Binary Release Trigger: For any project producing compiled binaries or compile-time embedded assets (e.g. Rust, Go, C/C++), modifying code, dependencies, or embedded assets automatically mandates the complete release lifecycle (version bump, tag, release notes, publish, CI verification). Never stop at
git pushor leave binary users with stale distributions. - Release Workflow: Mandatory Linux x86_64 GitHub Actions release workflow (
.github/workflows/release.yml) for all compiled binary projects (x86_64-unknown-linux-gnu). - Release Notes: Aesthetic highlight format with icons and direct install commands.
- Autonomous Workflow Verification: Actively track GitHub Actions CI/Release runs until green before declaring release complete. Autonomously diagnose and fix any pipeline failures in a closed self-healing loop without asking permission.
- Mandatory Binary Release Trigger: For any project producing compiled binaries or compile-time embedded assets (e.g. Rust, Go, C/C++), modifying code, dependencies, or embedded assets automatically mandates the complete release lifecycle (version bump, tag, release notes, publish, CI verification). Never stop at
- Documentation & README Craft (
skills/build-tooling/aesthetic-readme-craft/):- Visual Identity: Thematic emoji + title, bold value proposition, cohesive Shields.io badges (flat-square/for-the-badge).
- Show, Don't Just Tell: Mandatory visual diagram (ASCII box flow or Mermaid chart),
🪄 One-Liner Magicinstaller, and emoji-categorized feature matrix.
- Repository Management (
skills/build-tooling/git-repo-craft/):- Descriptions: Minimal yet meaningful (<90 chars), zero filler words, no redundant repo name prefix.
- Topics & Verification: Mandatory 4–8 curated kebab-case topics across domain, language, purpose, and ecosystem, verified via
gh repo view.
2.2 Stack-Specific Standards (Mandatory When Touching Matching Stack)
Before writing, modifying, or refactoring code in any specific language or framework, the agent MUST explicitly consult and strictly adhere to that domain's skill:
- Rust Projects (
skills/build-tooling/rust-clean-code/):- Hard Limits: <400 lines/file (300 soft), <60 lines/fn (40 soft), max 4 parameters, max 3 nesting depth.
- Zero Tolerance: No
#[allow(dead_code)], nounwrap()/expect()in prod, no oldmod.rs(use modernfoldername.rs), 0 compiler/clippy warnings. - Role-Based Architecture:
domain/,infra/,api/. - DRY & Idiomatic: Centralize shared logic, use traits and guard clauses.
- Python Projects (
skills/build-tooling/python-clean-code/):- Tooling: Exclusively managed via
uv(no rawpip). - Typing & Formatting: 100% type annotations, automated
ruff check --fix, import sorting (isort), andruff formaton every change. - Zero Tolerance: No unverified
# type: ignoreor# noqa.
- Tooling: Exclusively managed via
- Python Error Handling (
skills/build-tooling/rust-style-python/):- Errors as Values: Functions that can fail return typed
Result[T, E]; neverNoneor bareException. - Boundary-Only Catches:
try/exceptlives solely in boundary functions andmain; core logic never raises. - Exit-Code Mapping:
mainreturns0ok,1runtime error,2usage/validation error,130interrupted.
- Errors as Values: Functions that can fail return typed
- Jetpack Compose Projects (
skills/mobile-dev/compose-clean-code/):- Hard Limits: <400 lines/file (300 soft), <60 lines/composable (40 soft), max 5 parameters, max 3 nesting depth, max 6 modifier chain.
- Zero Tolerance: Zero emojis in UI/layouts (strictly use Google Material theme icons, defaulting to Material icons if unspecified), no business logic/IO/coroutines in composition, modifier first-optional on root only, no ViewModel passing to children, immutable collections only, no
@Suppresson Compose lints, stable lazy list keys. - Architecture & Theming: Two-layer
XRoute(ViewModel wiring) &XScreen(stateless),collectAsStateWithLifecycle(), Material 3 semantic tokens, type-safe navigation (@Serializableroutes).
- Bash & Shell Scripts (
skills/system-ops/bash-clean-code/):- Preamble: Mandatory
set -euo pipefailandIFS=$'\n\t'. - Zero Tolerance: Zero ShellCheck warnings (
shellcheck -x), mandatory trap cleanups for tempfiles, XDG compliance, strict variable quoting.
- Preamble: Mandatory
- AI Codebase & Skill Repository Orchestrator (
skills/build-tooling/karakuri/):- Use
karakuri audit .to audit clean-code limits and clippy warnings. - Use
karakuri digest .to synchronizeCODEBASE.md. - Use
karakuri syncto ensure cross-agent skill parity.
- Use
- Telegram Bot Management (
skills/ai-agents/kuroko/):- Declarative bot fleets, commands, bios, and BotFather sync via
kuroko.
- Declarative bot fleets, commands, bios, and BotFather sync via
- CLI Tool Development (
skills/build-tooling/cli-builder/):- Non-interactive commands, stable
--helpand--jsoncontracts, idempotent operations,--dry-runpreviews, POSIX exit codes.
- Non-interactive commands, stable
- Frontend & Web UI Design (
skills/web-dev/frontend-design/&skills/web-dev/web-design-guidelines/):- Opinionated visual identity, bespoke color/typography tokens, zero generic AI-slop templates, WCAG 2.2 accessibility, responsive layouts.
- Terminal User Interface (TUI) Design (
skills/tui-dev/tui-design/):- Framework idiomatic patterns (Ratatui, Bubble Tea, Textual, Ink), monochrome-first palettes (max 3-4 accents), grid alignment, alternate screen recovery, double-width Unicode/CJK width calculation.
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.

