Skip to content

ajelinek/SpecFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

123 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Vibing - Agent-Based Development Framework

Vibing software that doesn't suck πŸš€

A structured approach to organizing development rules, agents, workflows, and context for consistent, high-quality software development.

What's This All About?

Take the chaos of vibing and turns it into something that makes sense. We've separated development guidance into distinct, interconnected components that work together. Each component has a specific role and references others through @ path links (because we're not animals).

Note: We in this document really means me and the AI Model, as it felt it should be included since it did all the writing.

Getting Started

Step 1: Copy the Agent Context File

FIRST THING YOU DO - Copy the foundational agent context file to your project root:

cp vibing/context/AGENTS.md ./AGENTS.md

This gives you the base agent behavior and file reference management that everything else depends on.

Step 2: Follow the Workflow

  1. Generate Domain Knowledge - Run the domain knowledge generator FIRST or Copy in from Gemini Deep Research . Run Planning Workflows (100 series) - Create your design documents
  2. Generate Context Files - Run the agent context manager to generate AGENTS.md files
  3. Generate Commands - Run the common commands generator
  4. Analyze Technology Stack - Run the technology stack analyzer
  5. Customize Test Rules - Run test rules customization (after data model is done)

The Right Way to Do Things (Workflow Execution Order)

Look, we didn't just throw this together randomly. The framework is designed to be used in a specific sequence because, surprise surprise, order matters. Follow this sequence to avoid the classic "why is everything broken?" moment:

Step 0: Domain Knowledge Foundation - "Know What You're Building"

FIRST THING YOU DO - Before anything else, establish domain expertise. You can't build what you don't understand. Prompt: Follow the domain-knowledge-generator instructions to create comprehensive domain knowledge. Use tools like Gemini's deep research for best results. Why First: Domain knowledge informs every decision from architecture to UI design. Skip this and you'll be rebuilding everything when you realize you misunderstood the business.

Planning Phase (100 Series) - "Lay the Groundwork"

Run all 100-series workflows to establish your project foundation. Skip this and you'll be debugging architectural decisions at 2 AM:

  • 101-project-overview.md - Start here
  • 102-system-architecture.md - Define your system structure
  • 103-data-model.md - Figure out your data relationships (trust us on this one)
  • 104-backend-architecture.md - Design your backend services
  • 105-frontend-architecture.md - Structure your frontend
  • 106-ui-design.md - Plan your UI components
  • 107-ui-experience-overview.md - Map your user experience flow
  • 108-ui-page-design.md - Design individual pages
  • 109-data-access-patterns.md - Strategize your data access
  • 110-feature-overview.md - Plan your features

Context Management (Before 200 Series) - "Don't Skip This Part"

CRITICAL: Before running any 200-series workflows, execute the context manager. This isn't optional - it's the difference between organized chaos and just chaos.

Prompt: Follow the instructions in the agent-context-manager modifier. Avoid all duplication between the rule files and the created AGENTS.md files.

Important: Run this prompt multiple times to ensure comprehensive context capture. Yes, multiple times. We're not kidding.

Note: Domain knowledge should already be established from Step 0 above.

Design Phase (200 Series) - "Make It Work, Then Make It Pretty"

IMPORTANT: The 200 series is done for EACH feature you want to implement from the 110 feature planning step. Don't try to design everything at once - that's how projects die.

After context management (you did do that, right?), proceed with design workflows for each individual feature:

  • 201-high-level-design.md - Technical design overview
  • 202-test-scenario-design.md - Test planning (because testing isn't optional)
  • 203-implementation-design.md - Implementation details
  • 204-plan-evaluation-validation.md - Design validation (Run this multiple times - seriously)

Implementation Phase (300 Series) - "Actually Build It"

  • 301-feature-implementation.md - Feature development
  • 302-test-only-implementation.md - Test implementation

Cleanup Phase (400 Series) - "Make It Suck Less"

FLEXIBLE APPROACH: All 400 series workflows can and possibly should be run multiple times. Sometimes it's even fun to use different models for different perspectives on the same code.

  • 401-code-cleanup.md - Code quality improvements (run multiple times, try different models)
  • 402-test-cleanup.md - Test optimization (run multiple times, try different models)

The Modifiers (The Secret Sauce)

Run these in order for maximum effectiveness:

0. Domain Knowledge Generator

File: modifiers/domain-knowledge-generator.md
When: FIRST THING YOU DO - Before any planning or development
Prompt: Follow the domain-knowledge-generator instructions to create comprehensive domain knowledge.
Output: Creates context/domain-knowledge.md with industry research, user workflows, and business requirements
Purpose: Establishes domain expertise for informed decision-making (because building without domain knowledge is like driving blindfolded)
Best Practice: Use tools like Gemini's deep research for comprehensive domain understanding and industry insights

1. Agent Context Manager

File: modifiers/agent-context-manager.md
When: After domain knowledge is established (Step 0) and 100-series planning
Prompt: Follow the instructions in the agent-context-manager modifier. Avoid all duplication between the rule files and the created AGENTS.md files.
Output: Generates AGENTS.md files in key directories with real implementation patterns and technology-specific guidance
Note: Run multiple times to ensure comprehensive coverage (seriously, multiple times)

2. Common Commands Generator

File: modifiers/common-commands-generator.md
When: After commands and test patterns are established
Prompt: Follow the common-commands-generator instructions to create project-specific command references.
Output: Creates context/common-commands.md with project-specific commands, test patterns, and operational procedures
Purpose: Establishes project-specific command patterns that help significantly with your allowed command list

3. Technology Stack Analyzer

File: modifiers/technology-stack-analyzer.md
When: After 100-series or with existing projects
Prompt: Follow the technology-stack-analyzer instructions to update relevant agent files.
Output: Updates agent files to filter out irrelevant rules for your tech stack
Purpose: Ensures agents have current technology knowledge for your specific project, helping to reduce context size for unneeded information

4. Test Rules Customization

File: modifiers/test-rules-customization.md
When: After data model is complete (T03 - Data Model.md)
Prompt: Follow the test-rules-customization instructions to update test-related agents and rules.
Output: Updates test-related rules with project-specific entities and feature tags
Purpose: Customizes testing approach for project needs (because one-size-fits-all testing is a myth)

What's In This Box? (Directory Structure)

πŸ“‹ rules/ - The "How To" Manual

Purpose: Specific how-to instructions for building and styling code that doesn't make your future self cry.

  • Content: Step-by-step implementation patterns, coding standards, and technical guidelines
  • Format: Markdown files with clear sections and examples (because we're not monsters)
  • Usage: Referenced by other files when specific implementation guidance is needed
  • Examples:
    • common/foundation/typescript-guidelines.md - TypeScript best practices
    • apollo/apollo-client-guidelines.md - Apollo Client usage patterns
    • react/react-component-guidelines.md - React component patterns

πŸ€– agents/ - Your Virtual Team

Purpose: Framework/language-specific expert personas that know which rules to apply (and won't judge your code).

  • Content: Agent definitions with persona, scope, rule references, and guardrails
  • Format: Markdown files with structured metadata (organized, not chaotic)
  • Usage: Invoked by workflows to provide specialized expertise
  • Examples:
    • frontend-engineer.md - React specialist with component expertise
    • backend-engineer.md - GraphQL specialist with Apollo knowledge
    • test-automation-engineer.md - Testing specialist with E2E expertise

πŸ”„ workflows/ - The Orchestration Maestro

Purpose: Step-based orchestration that coordinates multiple agents to accomplish goals without the usual chaos.

  • Content: Concise checklists with agent references and validation steps
  • Format: Numbered workflows with clear objectives and agent handoffs
  • Usage: Executed to guide complex development processes
  • Examples:
    • 101-project-overview.md - Product planning workflow
    • 301-feature-implementation.md - Feature development workflow
    • 401-code-cleanup.md - Code quality improvement workflow

πŸ“š context/ - The "What We Actually Built" Documentation

Purpose: Describes what has been built and the specific patterns in use (because memory is unreliable).

  • Content: Current architecture, patterns, and implementation details
  • Format: Markdown files describing existing systems
  • Usage: Referenced by agents to understand current state before making changes
  • Examples:
    • AGENTS.md - src/api Backend API patterns and architecture
    • AGENTS.md - src/ui/store GraphQL store implementation details
    • AGENTS.md - src/ui/components - Frontend component architecture

πŸ› οΈ modifiers/ - The Customization Wizards

Purpose: Reusable prompts that help update or customize other prompts for specific projects (because one size doesn't fit all).

  • Content: Template prompts and customization instructions
  • Format: Markdown files with prompt templates
  • Usage: Applied to generate project-specific content from templates
  • Examples:
    • common-commands-generator.md - Generates context/common-commands.md with project-specific commands and updates AGENTS.md to reference it
    • agent-context-manager.md - Context file generation from design docs
    • technology-stack-analyzer.md - Technology-specific customization

🧩 fragments/ - The Building Blocks

Purpose: Focused, modular guidance blocks that can be embedded into agents, rules, and workflows (like LEGO for development).

  • Content: Guardrails, principles, response formatting rules, and clarification prompts
  • Format: Concise Markdown fragments designed for inclusion
  • Usage: Referenced by agents and workflows to standardize tone, behavior, and expectations
  • Examples:
    • engineer-guardrails.md - Operational boundaries and safety constraints
    • engineer-principles.md - Engineering values and decision principles
    • response-formatting.md - Output style and structure requirements
    • user-clarification.md - Strategies and prompts to resolve ambiguity

πŸ—οΈ patterns/ - The Architectural Blueprints

Purpose: Reusable prompts that establish common architecture across projects (because reinventing the wheel is overrated).

  • Content: Architectural patterns and setup instructions
  • Format: Markdown files with implementation patterns
  • Usage: Applied once at project start to implement unique features
  • Examples:
    • test-context-architecture-guide.md - Test data management setup
    • test-data-generation-design.md - Test data generation patterns

πŸ“„ templates/ - The Document Factory

Purpose: Placeholder and outline documents used by workflows to create specific design documents and features (because starting from scratch is for masochists).

  • Content: Document templates with numbered sections and placeholders
  • Format: Markdown files with template structure and guidance
  • Usage: Referenced by workflows to generate project-specific documents
  • Examples:
    • project-overview-template.md - Project overview document template
    • technical-design-template.md - Feature technical design template
    • feature-overview-template.md - Feature planning template

About

All My Vibing Rules in one place

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors