Skip to content

adelchi91/agentforge

Repository files navigation

project-bootstrap

What this is

project-bootstrap is a Claude Code command set and Codex bootstrap skill that generates a complete agentic development environment for any software project in one interview session. It encodes a proven methodology built around project constitutions, agents, skills, hooks, and stories, so you can start structured, multi-phase development with human-in-the-loop approval gates from day one. It works on greenfield projects and existing codebases alike.

Install

# From your project root:
curl -sL https://raw.githubusercontent.com/adelchi91/agentforge/main/install.sh | bash

# Codex skill only:
curl -sL https://raw.githubusercontent.com/adelchi91/agentforge/main/install.sh | bash -s -- codex

# Both Claude and Codex:
curl -sL https://raw.githubusercontent.com/adelchi91/agentforge/main/install.sh | bash -s -- both

The default keeps backward compatibility and installs the Claude bootstrap into .claude/. The Codex install adds a repo-scoped skill at .agents/skills/project-bootstrap/ with the same bootstrap resources bundled beside it.

Installation chooses the tool surface you start from. The bootstrap flow itself then asks which output target to generate, so either surface can scaffold CLAUDE or CODEX.

Usage

# In any Claude Code session, from your project root:
/bootstrap

# In any Codex session, from your project root:
$project-bootstrap

Both invocations run the same 6-step flow. At the start, choose CLAUDE to generate a Claude Code .claude/ scaffold or CODEX to generate AGENTS.md, .codex/, and .agents/.

The 6-step flow:

  • Target selection — Choose CLAUDE or CODEX before Step 1
  • Step 1 — Optionally share reference documents (PRD, spec, architecture notes) to seed the session
  • Step 2 — Answer questions about your project and stack; existing codebases are scanned automatically
  • Step 3 — Review and approve a phase-based roadmap (cross-checked against your docs if provided)
  • Step 4 — Review and approve the agent personas (model, scope, tools)
  • Step 5 — Review and approve generated story files (one per unit of work)
  • Step 6 — Type GO to generate the selected Claude or Codex scaffold

What it generates for Claude

.claude/
├── CLAUDE.md                  ← project constitution
├── settings.json              ← agent permissions + hooks
├── agents/                    ← one .md per persona
├── skills/                    ← knowledge chunks per domain
├── hooks/
│   ├── pre-tool-use.sh        ← safety guardrails (blocks destructive commands)
│   ├── post-tool-use.sh       ← auto-lint on Write (ruff, eslint)
│   └── stop.sh                ← session summary on end
└── stories/
    └── STORY-XXX.md           ← one per unit of work

project_context.md             ← persisted intake answers
roadmap.md                     ← phase plan

What it generates for Codex

AGENTS.md                      ← project constitution
.codex/
├── hooks.json                  ← hook registration
├── agents/                     ← one .toml custom agent per persona
└── hooks/
    ├── pre_tool_use_policy.py  ← safety guardrails
    ├── post_tool_use_lint.py   ← targeted auto-lint
    └── stop_session_log.py     ← session summary on end

.agents/
├── skills/                     ← knowledge chunks per domain
└── stories/
    └── STORY-XXX.md            ← one per unit of work

project_context.md             ← persisted intake answers
roadmap.md                     ← phase plan

Sub-commands

/bootstrap         → start the 6-step flow from Claude Code; choose CLAUDE or CODEX
$project-bootstrap → start the 6-step flow from Codex; choose CLAUDE or CODEX
/story            → add a story to an existing phase
/add-agent        → add a new agent
/project-review   → update roadmap or personas

Examples

A step-by-step walkthrough of a real session is in docs/walkthrough-pycalc.md — a greenfield Python CLI calculator bootstrapped from an empty directory to 12 stories across 4 phases.

Three reference output examples are also included:

  • examples/lagrangia/ — complex existing codebase: monorepo-to-multirepo migration with 5 phases, 7 agents, and 16 stories
  • examples/minimal/ — simple greenfield: 2-phase Python library with 3 agents and 4 stories
  • examples/codex-minimal/ — simple greenfield Codex target: AGENTS.md, .codex/agents/*.toml, .agents/skills/, and .agents/stories/

The methodology

The methodology encodes five mechanisms — constitution, skills, hooks, agents, and stories — each with a specific role and platform-native location. They are non-overlapping by design: agents never contain knowledge, safety rules never live only in agent instructions, and every story has runnable verification commands. See METHODOLOGY.md for the full reference.

Contributing

Contributions are welcome. Please open an issue before submitting a PR for significant changes. All PRs must include a reference story or example demonstrating the behaviour change.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Ensure all examples remain coherent (verify no unfilled template variables remain in examples/)
  5. Smoke-test installer changes from a temporary project directory with AGENTFORGE_SOURCE_DIR=/path/to/agentforge /path/to/agentforge/install.sh [claude|codex|both]
  6. Submit a pull request

License

MIT — see LICENSE.

About

agentforge — Scaffold production-grade agentic workflows for any software project using Claude Code's native primitives: agents, skills, hooks, and stories. One interview session generates a complete, methodology-driven .claude/ environment tailored to your codebase.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors