Skip to content

[Feature Request] Enhance Brownfield Bootstrap - Constitution & Template Generation #40

@kanfil

Description

@kanfil

Summary

Extend brownfield support beyond architecture reverse-engineering to include constitution and template generation from existing code.

Problem

Current State

Already Implemented:

  • /architect.init - Reverse-engineer architecture from existing codebase (brownfield)
  • Templates: templates/commands/architect.init.md
  • Scripts: scripts/bash/setup-architecture.sh, scripts/powershell/setup-architecture.ps1
  • Detects tech stack, frameworks, patterns from code
  • Generates ADRs from discovered decisions

Still Needed:

  • Constitution from code patterns (extract coding conventions)
  • Customized templates from existing code style
  • Multi-module mapping (Maven, Gradle, monorepos)

Proposal

1. Constitution from Code Patterns

  • Extract coding conventions from existing code
  • Generate constitution.md with project-specific principles
  • Detect patterns: naming conventions, error handling, testing approach

2. Customized Templates

  • Adapt spec/plan templates to project conventions
  • Code placement decision trees for each module

3. Integrate Community Extension

Priority

Medium - Community demand proven

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions