Skip to content

[Feature]: Consolidate all flowspec configuration files into .flowspec directory #1187

Description

@behnamnikbakht

Problem Statement

Flowspec configuration files are currently scattered across 15+ directories in the project root, making it difficult to:

  • Understand what belongs to flowspec vs. project-specific files
  • Set up flowspec in new projects (requires copying multiple directories)
  • Manage flowspec upgrades (no single location to update)
  • Configure gitignore rules for flowspec-generated artifacts

Proposed Solution

Consolidate all flowspec-related files into a single .flowspec directory:

.flowspec/
├── .version # Version manifest
├── workflow.yml # State machine (from flowspec_workflow.yml)

├── agents/ # From .github/agents/
│ ├── flow.assess.agent.md
│ ├── flow.specify.agent.md
│ ├── flow.plan.agent.md
│ ├── flow.implement.agent.md
│ ├── flow.validate.agent.md
│ └── flow.submit-n-watch-pr.agent.md

├── commands/ # From commands/
│ ├── flow/
│ └── vibe/

├── constitutions/ # From constitutions/

├── github/ # From github/
│ ├── ISSUE_TEMPLATE/
│ └── workflows/

├── github-actions/ # From github-actions/

├── hooks/ # Existing
│ ├── hooks.yaml
│ └── *.sh

├── logs/ # Merged from .flowspec/logs/ and logs/
│ ├── active-work/
│ ├── decisions/
│ └── events/

├── memory/ # From memory/
│ ├── constitution.md
│ └── repo-facts.md

├── partials/ # From partials/
│ └── flow/

├── pre-commit/ # From pre-commit/

├── security-rules/ # From security-rules/
│ ├── javascript/
│ └── python/

├── skills/ # From skills/
│ ├── architect/
│ ├── constitution-checker/
│ ├── context-extractor/
│ ├── pm-planner/
│ ├── qa-validator/
│ ├── security-fixer/
│ ├── security-reporter/
│ ├── security-reviewer/
│ └── security-workflow/

├── templates/ # From docs/prp/
│ └── prp-base-flowspec.md

└── vscode/ # From .vscode/ and vscode/
└── settings.json

Use Cases

  1. New Project Setup

Before: Copy 15+ directories and files, hope nothing is missed, manually verify structure.
After: cp -r /path/to/flowspec-template/.flowspec . or flowspec init

  1. Gitignore Management

Before: Multiple gitignore entries for different flowspec directories.
After: Single rule like .flowspec/logs/ for generated content

  1. Multi-Tool Projects

Before: Flowspec directories mixed with other tooling
After: Clear separation - .flowspec/ is flowspec, everything else is project or other tools

  1. Project Cleanup / Removal

Before: Hunt through project to remove all flowspec artifacts.
After: rm -rf .flowspec removes everything

Alternatives Considered

No response

Priority

Medium - Would improve my workflow

Related Backlog Task

No response

Contribution

  • I am willing to contribute this feature myself
  • I can help test this feature when implemented
  • I can help write documentation for this feature

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestneeds-triageNeeds triage by maintainers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions