Skip to content

Comments

feat: add GSD integration skill for existing projects#57

Merged
leonvanzyl merged 1 commit intoAutoForgeAI:masterfrom
simfor99:feature/gsd-integration
Jan 15, 2026
Merged

feat: add GSD integration skill for existing projects#57
leonvanzyl merged 1 commit intoAutoForgeAI:masterfrom
simfor99:feature/gsd-integration

Conversation

@simfor99
Copy link
Contributor

@simfor99 simfor99 commented Jan 13, 2026

Summary

  • Add skill to convert GSD codebase mapping to Autocoder app_spec.txt format
  • Enable onboarding existing projects without manually writing XML specs
  • Include slash command /gsd-to-autocoder-spec

Changes

.claude/
├── commands/
│   └── gsd-to-autocoder-spec.md    # Slash command
└── skills/
    └── gsd-to-autocoder-spec/
        ├── SKILL.md                 # Main workflow
        └── references/
            └── app-spec-format.md   # XML format reference

How It Works

Existing Project
       │
       ▼
/gsd:map-codebase          ← Analyzes codebase (GSD Framework)
       │
       ▼
.planning/codebase/*.md    ← STACK, ARCHITECTURE, STRUCTURE, etc.
       │
       ▼
/gsd-to-autocoder-spec     ← This skill
       │
       ▼
prompts/app_spec.txt       ← Generated XML spec
       │
       ▼
Autocoder Initializer      ← Creates features.db

Test plan

  • Run /gsd:map-codebase on an existing project
  • Run /gsd-to-autocoder-spec to generate spec
  • Verify prompts/app_spec.txt has correct XML structure
  • Start Autocoder and verify Initializer parses spec correctly

Closes #55

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added workflow documentation for converting codebase information to specification format, including step-by-step process, prerequisites, and validation guidelines.
    • Added reference documentation detailing specification format structure with examples and feature writing guidelines.

✏️ Tip: You can customize this high-level summary in your review settings.

Add skill to convert GSD codebase mapping (.planning/codebase/*.md)
to Autocoder app_spec.txt format.

This enables onboarding existing projects to Autocoder without
manually writing the XML spec.

Workflow:
1. Run /gsd:map-codebase on existing project
2. Run /gsd-to-autocoder-spec to generate app_spec.txt
3. Start Autocoder normally

Closes AutoForgeAI#55

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Jan 13, 2026

📝 Walkthrough

Walkthrough

This pull request adds documentation and specification files for converting GSD (Get Shit Done) codebase mappings into Autocoder's app_spec.txt format, enabling automated specification generation from existing codebases without manual XML authoring.

Changes

Cohort / File(s) Summary
GSD-to-Autocoder Integration
.claude/commands/gsd-to-autocoder-spec.md
Defines a new command specification with YAML front matter outlining allowed tools and workflow description for converting GSD outputs to Autocoder format
Skill Workflow & Documentation
.claude/skills/gsd-to-autocoder-spec/SKILL.md
Comprehensive skill documentation detailing a five-step workflow (verify input, read codebase docs, read package.json, generate spec, verify output) with prerequisites, data extraction rules, XML structure mapping, feature generation guidelines, validation criteria, and error handling matrix
XML Format Reference
.claude/skills/gsd-to-autocoder-spec/references/app-spec-format.md
Reference guide documenting Autocoder's XML spec structure, section definitions with examples, feature writing rules, feature count guidelines, and a mapping table correlating GSD documents to Autocoder XML sections

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 Whiskers twitching with delight,
A bridge between frameworks, shining bright,
GSD maps the code, we take the prize,
Converting chaos to specs so wise!
No manual toil, just structured grace,
Autocoder now owns this space!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'feat: add GSD integration skill for existing projects' accurately describes the main change—adding a new skill to integrate GSD codebase mappings with Autocoder.
Linked Issues check ✅ Passed The PR implements the primary objective from issue #55: providing an automated path to generate app_spec.txt from GSD codebase mappings. All core requirements are addressed: slash command, skill documentation, spec format reference, and mapping logic.
Out of Scope Changes check ✅ Passed All changes are directly scoped to implementing the GSD integration skill. Added files include the command definition, skill workflow, and reference documentation—all aligned with the stated objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.claude/skills/gsd-to-autocoder-spec/SKILL.md:
- Around line 90-102: The mapping table in SKILL.md is inconsistent with
app-spec-format.md: reconcile by updating SKILL.md’s table entries so they match
app-spec-format.md’s mappings — specifically change STRUCTURE.md mapping from
`<ui_layout>` to “Informs feature organization” (or map it to `<overview>` if
app-spec-format.md uses that), and add the missing mappings: ARCHITECTURE.md
Pattern → `<overview>` and STACK.md Runtime → `<prerequisites>`; ensure all
other rows (e.g., STACK.md Languages → `<technology_stack>`, STACK.md Frameworks
→ `<frontend>, <backend>`, STACK.md Dependencies → `<prerequisites>`,
ARCHITECTURE.md Layers → `<core_features>`, ARCHITECTURE.md Data Flow →
`<key_interactions>`, ARCHITECTURE.md Entry Points → `<implementation_steps>`,
INTEGRATIONS.md APIs → `<api_endpoints_summary>`, INTEGRATIONS.md Services →
`<prerequisites>`) exactly match app-spec-format.md so both documents are
aligned.
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 07c2010 and 29715f2.

📒 Files selected for processing (3)
  • .claude/commands/gsd-to-autocoder-spec.md
  • .claude/skills/gsd-to-autocoder-spec/SKILL.md
  • .claude/skills/gsd-to-autocoder-spec/references/app-spec-format.md
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2026-01-10T08:23:04.012Z
Learnt from: CR
Repo: leonvanzyl/autocoder PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-10T08:23:04.012Z
Learning: Two-agent pattern: Initializer Agent reads app spec and creates features in first session; Coding Agent implements features one by one in subsequent sessions

Applied to files:

  • .claude/skills/gsd-to-autocoder-spec/references/app-spec-format.md
🪛 markdownlint-cli2 (0.18.1)
.claude/skills/gsd-to-autocoder-spec/SKILL.md

41-41: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


193-193: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🔇 Additional comments (6)
.claude/commands/gsd-to-autocoder-spec.md (1)

1-10: LGTM! Clean command specification.

The YAML front matter correctly defines allowed tools (Read, Write, Bash, Glob, Grep) that align with the workflow requirements in the referenced SKILL.md. The file reference at line 10 appropriately points to the detailed skill documentation.

.claude/skills/gsd-to-autocoder-spec/references/app-spec-format.md (1)

1-293: Comprehensive XML format reference.

The documentation provides a complete and well-structured reference for Autocoder's app_spec.txt XML format. Each section includes clear examples, and the feature writing rules (lines 120-125) are actionable and specific. The feature count guidelines (lines 268-277) offer practical targets for different project complexities.

.claude/skills/gsd-to-autocoder-spec/SKILL.md (4)

1-28: Well-structured skill documentation.

The YAML front matter clearly defines the skill with comprehensive trigger phrases. Prerequisites appropriately distinguish between required (STACK.md, ARCHITECTURE.md, STRUCTURE.md) and optional (CONVENTIONS.md, INTEGRATIONS.md) GSD mapping files.


31-80: Solid workflow steps with proper error handling.

The first three steps implement robust verification and data extraction:

  • Step 1 appropriately halts execution if prerequisites are missing
  • Step 2's shell commands correctly handle optional files with 2>/dev/null || true
  • Step 3 gracefully handles missing package.json

117-169: Sample XML template provides good starting point.

The heredoc template includes all major sections with clear placeholder comments indicating data sources. The structure aligns with the XML format reference, and the feature generation guidelines (lines 104-112) match the counts in app-spec-format.md.


172-209: Comprehensive validation and completion steps.

Step 5's validation checklist ensures the generated spec meets quality requirements. Step 6 provides clear next steps with both CLI and UI options for starting Autocoder, correctly noting that the Initializer will create features.db from the spec (aligning with the two-agent pattern from learnings).

Comment on lines +90 to +102
**Mapping GSD Documents to Autocoder Spec:**

| GSD Source | Autocoder Target |
|------------|------------------|
| STACK.md Languages | `<technology_stack>` |
| STACK.md Frameworks | `<frontend>`, `<backend>` |
| STACK.md Dependencies | `<prerequisites>` |
| ARCHITECTURE.md Layers | `<core_features>` categories |
| ARCHITECTURE.md Data Flow | `<key_interactions>` |
| ARCHITECTURE.md Entry Points | `<implementation_steps>` |
| STRUCTURE.md Layout | `<ui_layout>` (if frontend) |
| INTEGRATIONS.md APIs | `<api_endpoints_summary>` |
| INTEGRATIONS.md Services | `<prerequisites>` |
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Reconcile mapping table with app-spec-format.md.

The mapping table differs from the one in app-spec-format.md (lines 278-293):

Inconsistencies:

  1. STRUCTURE.md Layout: This file maps to <ui_layout> (if frontend), but app-spec-format.md says it "Informs feature organization"
  2. Missing mappings: app-spec-format.md includes:
    • ARCHITECTURE.md Pattern → <overview>
    • STACK.md Runtime → <prerequisites>

Ensure both documents use the same mapping to avoid confusion during conversion.

📋 Suggested alignment

Either update this table to match app-spec-format.md or update app-spec-format.md to match this. Recommended approach is to align this file with app-spec-format.md:

 | GSD Source | Autocoder Target |
 |------------|------------------|
 | STACK.md Languages | `<technology_stack>` |
+| STACK.md Runtime | `<prerequisites>` |
 | STACK.md Frameworks | `<frontend>`, `<backend>` |
 | STACK.md Dependencies | `<prerequisites>` |
+| ARCHITECTURE.md Pattern | `<overview>` |
 | ARCHITECTURE.md Layers | `<core_features>` categories |
 | ARCHITECTURE.md Data Flow | `<key_interactions>` |
 | ARCHITECTURE.md Entry Points | `<implementation_steps>` |
-| STRUCTURE.md Layout | `<ui_layout>` (if frontend) |
+| STRUCTURE.md Layout | Informs feature organization |
 | INTEGRATIONS.md APIs | `<api_endpoints_summary>` |
 | INTEGRATIONS.md Services | `<prerequisites>` |
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**Mapping GSD Documents to Autocoder Spec:**
| GSD Source | Autocoder Target |
|------------|------------------|
| STACK.md Languages | `<technology_stack>` |
| STACK.md Frameworks | `<frontend>`, `<backend>` |
| STACK.md Dependencies | `<prerequisites>` |
| ARCHITECTURE.md Layers | `<core_features>` categories |
| ARCHITECTURE.md Data Flow | `<key_interactions>` |
| ARCHITECTURE.md Entry Points | `<implementation_steps>` |
| STRUCTURE.md Layout | `<ui_layout>` (if frontend) |
| INTEGRATIONS.md APIs | `<api_endpoints_summary>` |
| INTEGRATIONS.md Services | `<prerequisites>` |
**Mapping GSD Documents to Autocoder Spec:**
| GSD Source | Autocoder Target |
|------------|------------------|
| STACK.md Languages | `<technology_stack>` |
| STACK.md Runtime | `<prerequisites>` |
| STACK.md Frameworks | `<frontend>`, `<backend>` |
| STACK.md Dependencies | `<prerequisites>` |
| ARCHITECTURE.md Pattern | `<overview>` |
| ARCHITECTURE.md Layers | `<core_features>` categories |
| ARCHITECTURE.md Data Flow | `<key_interactions>` |
| ARCHITECTURE.md Entry Points | `<implementation_steps>` |
| STRUCTURE.md Layout | Informs feature organization |
| INTEGRATIONS.md APIs | `<api_endpoints_summary>` |
| INTEGRATIONS.md Services | `<prerequisites>` |
🤖 Prompt for AI Agents
In @.claude/skills/gsd-to-autocoder-spec/SKILL.md around lines 90 - 102, The
mapping table in SKILL.md is inconsistent with app-spec-format.md: reconcile by
updating SKILL.md’s table entries so they match app-spec-format.md’s mappings —
specifically change STRUCTURE.md mapping from `<ui_layout>` to “Informs feature
organization” (or map it to `<overview>` if app-spec-format.md uses that), and
add the missing mappings: ARCHITECTURE.md Pattern → `<overview>` and STACK.md
Runtime → `<prerequisites>`; ensure all other rows (e.g., STACK.md Languages →
`<technology_stack>`, STACK.md Frameworks → `<frontend>, <backend>`, STACK.md
Dependencies → `<prerequisites>`, ARCHITECTURE.md Layers → `<core_features>`,
ARCHITECTURE.md Data Flow → `<key_interactions>`, ARCHITECTURE.md Entry Points →
`<implementation_steps>`, INTEGRATIONS.md APIs → `<api_endpoints_summary>`,
INTEGRATIONS.md Services → `<prerequisites>`) exactly match app-spec-format.md
so both documents are aligned.

@leonvanzyl leonvanzyl merged commit 2757ca3 into AutoForgeAI:master Jan 15, 2026
1 check passed
@leonvanzyl
Copy link
Collaborator

Thank you.

rudiheydra added a commit to rudiheydra/AutoBuildr that referenced this pull request Jan 27, 2026
…rgeAI#57)

Implemented derive_tool_policy() function that generates appropriate
tool_policy configurations based on task_type with:

- Tool sets for coding, testing, refactoring, documentation, audit, custom
- Standard forbidden_patterns applied to ALL task types (security baseline)
- Task-specific forbidden_patterns for additional restrictions per type
- Tool hints for proper usage guidance
- Support for allowed_directories, additional_tools, additional_patterns

Task type capabilities:
- coding: file edit (Read/Write/Edit), Bash (restricted), feature tools
- testing: file read only, Bash (test commands), feature status tools
- documentation: file write (docs), read-only code access, web research
- audit: read-only everything - no modifications allowed
- refactoring: file edit, no feature status changes
- custom: minimal default set (fallback)

Test Results:
- tests/test_feature_57_tool_policy_derivation.py: 69/69 tests PASS
- tests/test_tool_policy.py: 50/50 tests PASS (no regressions)
- tests/verify_feature_57.py: All 8 verification steps PASS

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
rudiheydra added a commit to rudiheydra/AutoBuildr that referenced this pull request Jan 27, 2026
Feature AutoForgeAI#58: Budget Derivation from Task Complexity - VERIFIED

- All 110 unit tests pass
- All 9 verification steps pass
- No regressions in related tests (Feature AutoForgeAI#57)
- Progress: 77/103 features passing (74.8%)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
CoreAspectStu pushed a commit to CoreAspectStu/autocoder-custom that referenced this pull request Feb 9, 2026
feat: add GSD integration skill for existing projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: GSD (Get Shit Done) Integration for Existing Projects

2 participants