Transform how you work with AI agents.
A cognitive partnership model that enforces rigorous engineering standards, strategic planning, and continuous validation.
In this framework, the AI agent is not just a "code generator" or a "copilot". It is a Senior Architect and Critical Thinking Partner.
- 🛡️ Critical Feedback First: The agent is instructed to challenge unsafe, redundant, or poorly conceived ideas before writing a single line of code.
- 📋 Research -> Plan -> Execute: Every non-trivial change follows a strict lifecycle. The agent first researches context, proposes a detailed plan, waits for your explicit approval, and only then begins implementation.
- ✅ Validation-Always: The framework uses
makeas a source of truth. The agent is hooked into themakefileto ensure every change is validated (linted and tested) before being finalized.
The .gemini/commands/ directory defines specialized workflows that automate every phase of the development lifecycle:
/research <topic>: A deep, 3-phase investigation (Planning -> Data Gathering -> Reporting) that produces exhaustive Markdown reports in theresearch/directory. Crucial for gathering technical requirements and state-of-the-art context./plan: The Architectural Bridge. This interactive workflow translates ideas into actionable execution plans:- Phase 1 (Clarification): The agent interviews you to resolve ambiguities before planning.
- Phase 2 (Agentic Analysis): A specialized
plannersubagent scans the codebase and generates a detailed technical strategy. - Phase 3 (Artifact Generation): A persistent Markdown plan is saved in
plans/(e.g.,plans/feature-x.md). - Phase 4 (Synchronization): The plan is optionally linked to
TASKS.mdand can be synchronized with GitHub issues.
/onboard: Summarizes the project's architecture, standards, and current state to quickly orient a new developer (or the agent itself).
/issues: Your gateway to GitHub integration. It allows you to list, create, or update issues. Use/issues work <number>to transition an issue directly into a detailed research and planning mode./task: Manages the project roadmap inTASKS.md. Use it tocreatenew tasks,workon existing ones (marks as In Progress),reporton priorities, orupdatethe roadmap./scaffold: Initializes new project structures from scratch using modern, standard tooling (Python/uv, TS/npm, Rust/cargo, etc.) and sets up a compatiblemakefile.
/draft: Multi-phase workflow to turn research and plans into detailed, high-quality technical documents or articles section-by-section./revise: Uses theeditorsubagent to perform structural and linguistic audits based on the project's style guide./maintenance: Performs a deep scan of the codebase to identify technical debt, refactoring opportunities, and areas to improve test coverage./docs: Analyzes the codebase and journals to generate or update comprehensive project documentation in thedocs/folder./cron: Manages repetitive background tasks (e.g., health checks, automated reports) using systemd user timers.
/commit: Analyzes all uncommitted changes, groups them into logical features or fixes, and guides you through committing them individually using Conventional Commits./release: Automates the final shipping steps: running tests, determining the next version (semver), updating theCHANGELOG.md, and tagging the release.
This framework shines when you combine these commands into cohesive workflows:
- Discover: Run
/researchto understand the domain or library. - Plan: Use
/planto turn requirements into a technical roadmap inplans/. - Track: Link the plan to
TASKS.mdusing/plan's built-in sync. - Implement: Use
/task workto mark progress and begin coding. - Refine: Run
/docsto ensure your changes are well-documented. - Ship: Use
/commitfor clean history and/releasefor a new version tag.
- Triage: Use
/issues summaryto see what needs attention. - Reproduce: Use
/issues work <id>to research the root cause. - Fix: Develop the fix and validate with
make. - Sync: Update the issue with the resolution details.
- Research: Use
/researchto gather data into an executive report. - Draft: Run
/draftto build an outline and expand it into a full article. - Revise: Use
/revisefor step-by-step style guide-driven audits and refinements.
The framework uses a robust hook system (.gemini/hooks/) that synchronizes the agent with your project state:
session.py: Initializes the environment and provides a project summary.journal.py: Ensures a journal entry exists for the current date (journal/YYYY-MM-DD.md).make.py: Automatically runsmakeafter critical agent actions to prevent regressions.cron.py: Synchronizescron.tomltasks with systemd user timers.
This project is licensed under the MIT License - see the LICENSE file for details.