dare-patterns

Mine brownfield software patterns via AST analysis to generate architectural documentation and JSON facts.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/darelabs-tech/dare-cli --skill dare-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dare-patterns
Source: https://github.com/darelabs-tech/dare-cli/tree/main/.agents/skills/dare-patterns
Command: npx skills add https://github.com/darelabs-tech/dare-cli --skill dare-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the lack of visibility into existing codebases by providing a deterministic way to identify and map architectural patterns without relying on LLM hallucinations.

Core Features & Use Cases

  • Deterministic Mining: Extracts architectural facts directly from the codebase using AST parsing.
  • Artifact Generation: Produces structured documentation and JSON facts for downstream analysis.
  • Use Case: Use this when you need to audit a legacy project to understand its current structure before planning a refactor or migration.

Quick Start

Run the dare patterns command to analyze the current directory and generate the architectural facts file.

Frequently Asked Questions about dare-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is deterministic brownfield pattern mining for legacy codebases?

Deterministic brownfield pattern mining extracts architectural facts directly from local source code repositories using AST parsing, generating structured documentation and JSON facts without relying on LLM hallucinations.

How do I map architectural patterns in a legacy project before refactoring?

Run the dare patterns command to analyze your current directory via AST analysis, which audits the existing codebase structure and generates an architectural facts file for planning your refactor.

Do I need an external LLM dependency to extract structural insights from source code?

No, you do not need an external LLM dependency to extract structural insights. The mining operates entirely on local source code repositories using deterministic AST analysis for technical transparency.

What output format does AST analysis generate when auditing existing codebases?

AST analysis generates structured architectural documentation alongside JSON-based facts, providing downstream analysis tools with automated codebase mapping outputs that satisfy auditability requirements.

What is the best way to generate auditable architectural documentation for a brownfield codebase?

The best way to generate auditable architectural documentation is using deterministic pattern mining, which parses the AST of local repositories to produce transparent, JSON-based structural facts without hallucination risks.

Why use deterministic AST analysis instead of LLMs for codebase mapping?

Deterministic AST analysis is used instead of LLMs to eliminate hallucinations during codebase mapping, ensuring technical transparency and reliable architectural documentation for legacy refactoring.