Files
plan2code/AGENTS.md
T

74 lines
3.5 KiB
Markdown
Raw Normal View History

2026-01-27 12:11:00 -08:00
# AGENTS.md
This file provides guidance to AI coding agents like Claude Code (claude.ai/code), Cursor AI, Codex, Gemini CLI, GitHub Copilot, and other AI coding assistants when working with code in this repository.
## Project Overview
Plan2Code is a structured 4-step workflow methodology for AI-assisted software development. It provides prompt templates that can be installed globally or per-project for various AI coding tools (Claude Code, Cursor, Copilot, Continue, Windsurf, Codeium).
**Version:** Check `version.json` for current version
**Author:** Justin Parker
**License:** MIT
2026-03-01 12:24:11 -08:00
## How to Use This File
2026-03-01 12:24:11 -08:00
This file is an index — each section below contains a brief summary and a link to a detail file in `.agents-docs/`. Read only the sections relevant to your current task. Full details (commands, tables, file lists) are in the linked files. The sections "Git Commit Messages" and "Project Overview" are fully inline here.
2026-03-01 12:24:11 -08:00
## Architecture
2026-03-01 12:24:11 -08:00
High-level directory structure, key files, workflow prompt inventory, and file naming conventions.
2026-03-01 12:24:11 -08:00
Details: [Architecture](./.agents-docs/AGENTS-architecture.md)
2026-03-01 12:24:11 -08:00
## Plan2Code Loop
2026-03-01 12:24:11 -08:00
Autonomous CLI tool (`plan2code-loop/`) that implements specs by looping through tasks. Covers loop architecture, modes (one-task vs one-phase), completion markers, and key source files.
2026-03-01 12:24:11 -08:00
Details: [Plan2Code Loop](./.agents-docs/AGENTS-plan2code-loop.md)
2026-03-01 12:24:11 -08:00
## Plan2Code Metrics
2026-03-01 12:24:11 -08:00
Recursive self-improvement toolchain (`plan2code-metrics/`) for collecting run metrics, aggregating by prompt generation, diagnosing weak steps, and proposing prompt edits.
2026-03-01 12:24:11 -08:00
Details: [Plan2Code Metrics](./.agents-docs/AGENTS-plan2code-metrics.md)
2026-01-27 12:11:00 -08:00
## Development Commands
2026-03-01 12:24:11 -08:00
Build commands, installer menu options, how the installer generates platform-specific files, platform format table, and how to edit workflow prompts.
2026-02-22 12:54:33 -08:00
2026-03-01 12:24:11 -08:00
Details: [Development Commands](./.agents-docs/AGENTS-development-commands.md)
2026-02-22 12:54:33 -08:00
2026-03-01 12:24:11 -08:00
## Code Style & Gotchas
2026-02-22 12:54:33 -08:00
2026-03-01 12:24:11 -08:00
Language/toolchain conventions for `install.js` vs TypeScript packages, and pitfalls to avoid (version sync, `.gitignore` pre-flight, character limits, User Feedback table format).
2026-01-27 12:11:00 -08:00
2026-03-01 12:24:11 -08:00
Details: [Code Style & Gotchas](./.agents-docs/AGENTS-code-style.md)
2026-02-17 09:13:23 -08:00
## Git Commit Messages
2026-03-01 12:24:11 -08:00
- **Commit message format:**
```
<description of what this commit is about>
<JIRA-Ticket-ID>
AI Assisted
```
- **JIRA ticket ID:** Derive the ticket ID from the current branch name. The branch format is `<prefix>/<TICKET-ID>-description`, where the ticket ID is an uppercase project key followed by a hyphen and integer (e.g., `PCWEB-10968`, `ABC-123`).
- **AI Assisted footer:** Always the last line of every commit message.
2026-02-17 09:13:23 -08:00
- **Commit paths:** This is enforced across all commit surfaces:
- Loop task mode: `createTaskCommit()` in `plan2code-loop/src/utils/git.ts` appends the footer automatically
2026-03-01 12:24:11 -08:00
- Loop phase mode: Prompt template instructs the LLM to follow the format above
- Implement mode: User-facing commit suggestions in `src/plan2code-3--implement.md` follow the format above
2026-02-18 15:16:11 -08:00
- **Init workflow:** `src/plan2code---init.md` generates AGENTS.md files with a Git Commit Messages section that includes this convention by default
2026-02-03 20:32:18 -08:00
2026-01-27 12:11:00 -08:00
## Mascot
2026-02-03 20:32:18 -08:00
2026-02-22 12:54:33 -08:00
The project has a mascot called "Planny" - an ASCII art robot that appears in installer output and workflow prompts. Mascot variants are defined in `MASCOT` constant in `install.js` and appear in workflow markdown files.
2026-02-03 20:32:18 -08:00
2026-01-27 12:11:00 -08:00
```
╭───╮
│ ● │
│ ◡ │
╰───╯
```