A personal plugin for Claude Code and Codex, with engineering guidelines and a session hook.
Use coding-guidelines for everyday engineering. karpathy-guidelines is available on explicit request. The SessionStart hook adds a short set of coding defaults to new sessions and requires Python 3.
Coding agents need clear expectations, context from the codebase, and checks that show a change works. Agent Stack brings these practices together as small skills you can invoke when a task calls for them.
The SessionStart hook supplies concise coding defaults. For deeper guidance, choose a skill explicitly. In Codex, invoke it with $skill-name; in Claude Code, use /agent-stack:skill-name.
Use coding-guidelines to choose a simple design, keep changes scoped, and verify behavior. Its Easier To Change (ETC) principle favors designs where likely changes stay local without adding flexibility for imagined futures. Use karpathy-guidelines when you want to apply the original Karpathy Guidelines.
$coding-guidelines implement the order filter and verify it
$karpathy-guidelines review this refactor
Use code-quality for a deep review of structural complexity, abstractions, and maintainability.
$code-quality review these changes for structural problems and meaningful simplifications
Use decode to explore how a subsystem works and, when relevant, investigate the record behind its design. Use blast-radius to check what a proposed change could affect beyond the diff.
$decode how does authentication work and why was it designed this way?
$blast-radius what could this API change break?
Use safeguard to investigate a recurring error and add a proportionate protection, such as a test or a configuration check.
$safeguard prevent skills from being omitted from the plugin manifest
Use unslop to remove generic AI-sounding language while preserving the author's meaning, language, and voice.
$unslop make this PR description clear and natural
All skills are explicitly invoked.
- coding-guidelines: Practical guidance for design, focused changes, tests, verification, and ETC (Easier To Change).
- code-quality: Deep review of structural complexity and maintainability.
- karpathy-guidelines: The original behavioral guidelines for reducing coding mistakes.
- decode: Explain how code works and investigate the reasons behind its design.
- blast-radius: Investigate downstream risks and verify the assumptions behind a change.
- safeguard: Prevent a recurring error with a verifiable protection.
- unslop: Revise writing while preserving meaning and voice.
/plugin marketplace add tharlysonribeiro/agent-stack
/plugin install agent-stack@agent-stack
codex plugin marketplace add tharlysonribeiro/agent-stack
codex plugin add agent-stack@agent-stackAlternatively, install Agent Stack from Codex's Plugins directory after adding the marketplace. Review and trust the SessionStart hook when prompted.
For local development, use the repository path instead of tharlysonribeiro/agent-stack.
The APM package includes the skills. The session hook is provided by the plugin.
apm install tharlysonribeiro/agent-stack#master --target agent-skillsThis installs the latest version from the master branch.
MCP setup lives in Agent MCP.
AGENTS.md contains shared guidance for work inside this repository. CLAUDE.md imports it for Claude Code. Installing the plugin does not copy either file into consuming projects.
See DEVELOPING.md for project organization and local validation commands.
The skills and guidelines draw inspiration from Lauren Tan's pstack. Thank you to Lauren for sharing this work:
decodedraws on how, why, and teach.blast-radiusdraws on blast-radius.safeguarddraws on correct.unslopdraws on unslop.coding-guidelinesdraws on attack-the-premise.code-qualityis inspired by thermo-nuclear-code-quality-review from the Cursor Team Kit.
The bundled Karpathy Guidelines use multica-ai/andrej-karpathy-skills as a reference. The skill retains the source attribution and MIT license declaration.