diff --git a/AGENTS.md b/AGENTS.md index 60375c8..c06ca9d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -44,23 +44,6 @@ Language/toolchain conventions for `install.js` vs TypeScript packages, and pitf Details: [Code Style & Gotchas](./.agents-docs/AGENTS-code-style.md) -## Git Commit Messages - -- **Commit message format:** - ``` - - - - AI Assisted - ``` -- **JIRA ticket ID:** Derive the ticket ID from the current branch name. The branch format is `/-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. -- **Commit paths:** This is enforced across all commit surfaces: - - Loop task mode: `createTaskCommit()` in `plan2code-loop/src/utils/git.ts` appends the footer automatically - - 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 -- **Init workflow:** `src/plan2code---init.md` generates AGENTS.md files with a Git Commit Messages section that includes this convention by default - ## Mascot 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. diff --git a/src/plan2code---init-update.md b/src/plan2code---init-update.md index 1a04d9d..136500c 100644 --- a/src/plan2code---init-update.md +++ b/src/plan2code---init-update.md @@ -42,24 +42,6 @@ Section files: Wait for user response before continuing. If user accepts, restructure existing content: create `.agents-docs/` directory with section files, convert AGENTS.md to index with summaries and links. Always-inline sections (Project Overview, Git Commit Messages, How to Use This File) stay in AGENTS.md. If user declines, continue with single-file editing. -### Git Commit Messages Audit - -Check AGENTS.md for a `## Git Commit Messages` section describing this format: -``` - - - -AI Assisted -``` -Required rules: -1. **JIRA ticket ID from branch** — derive from branch name format `/-description` (uppercase project key + hyphen + integer, e.g., `PCWEB-10968`) -2. **AI Assisted footer** — always the last line, on its own line directly after the ticket ID - -If the section is missing or either rule is absent, flag it: -> "Your Git Commit Messages section is missing [missing items]. Want me to add them?" - -If user confirms, add/update the section before proceeding. If user declines, continue. - Proceed to Step 2. --- diff --git a/src/plan2code---init.md b/src/plan2code---init.md index 2e00254..31ae4f3 100644 --- a/src/plan2code---init.md +++ b/src/plan2code---init.md @@ -16,8 +16,7 @@ Analyze this codebase and create `AGENTS.md` to guide future AI coding agents (C 1. **Commands**: Build, lint, test, run single test, and other common development tasks 2. **Architecture**: High-level "big picture" structure requiring multi-file context to understand -3. **Git Commit Messages**: All commits must follow this format: `\n\n\nAI Assisted`. Derive the JIRA ticket ID from the current branch name — the format is `/-description` where the ticket ID is an uppercase project key, hyphen, and integer (e.g., `PCWEB-10968`). The ticket ID and `AI Assisted` go on consecutive lines after a blank line. -4. **How to Use This File**: A short paragraph explaining that sections below contain brief summaries and agents should follow the markdown links to `.agents-docs/` for full details — only read what's relevant to the current task. +3. **How to Use This File**: A short paragraph explaining that sections below contain brief summaries and agents should follow the markdown links to `.agents-docs/` for full details — only read what's relevant to the current task. ## Rules @@ -53,7 +52,6 @@ Generate AGENTS.md as an **index file** — each section gets a 2-3 line summary These sections must remain fully inline in AGENTS.md (never split to separate files): - Project Overview -- Git Commit Messages - How to Use This File ### Directory Setup