Skip to content
discover-capabilities logo

Discover CodeCompass Capabilities

discover-capabilities

Use this at session start to discover what CodeCompass can do. Read .ai/capabilities.json for module map (5 domains, 21+ modules) instead of manual Grep/Glob. Apply when: (1) planning tasks, (2) user asks 'What can CodeCompass do?', (3) before implementing features

mattnigh/skills_collection0installs24stars

SKILL.md

Full skill instructions

Discover CodeCompass Capabilities

Purpose

This meta-skill teaches how to efficiently discover what CodeCompass can do without manual exploration or rediscovery.

When to Use

  • ✅ Session start (understand available capabilities)
  • ✅ User asks: "What can CodeCompass do?"
  • ✅ Before implementing features (check if exists)
  • ✅ Exploring unfamiliar parts of codebase
  • ✅ Planning complex workflows (know available tools)

Discovery Layers

Layer 1: Quick Reference (CLAUDE.md)

Purpose: Project overview and entry point Location: /​CLAUDE.md Token cost: ~2,000 tokens Content: Tech stack, infrastructure, basic commands

Read for:

  • Project background
  • Technology choices
  • Infrastructure setup
  • Quick commands

Layer 2: Structured Discovery (capabilities.json) ⭐

Purpose: Complete module and capability map Location: .ai/​capabilities.json Token cost: ~2,500 tokens Content: All domains, modules, relationships, entry points

Read for:

  • What domains exist
  • What modules are available
  • What each module can do
  • How modules relate to each other
  • When to use which module

Layer 3: Skills Index (this directory)

Purpose: How-to workflows and perspectives Location: .claude/​skills/ Token cost: ~700 tokens (metadata scan) Content: Workflows, roles, patterns

Read for:

  • How to accomplish complex tasks
  • What workflows exist
  • Which skill to apply

Layer 4: Semantic Search (Weaviate)

Purpose: Implementation-level discovery Location: Weaviate database Token cost: Variable (query results) Content: Actual code, indexed semantically

Use for:

  • Finding specific implementations
  • Similar code patterns
  • Deep code understanding

Layer 5: Source Code

Purpose: Implementation details Location: src/​modules/ Token cost: Variable (file reading)

Read for:

  • Exact implementation
  • Edge cases
  • Internal logic

Discovery Workflow

Quick Discovery (5 seconds)

# 1. Read capabilities.json structure
cat .ai/​capabilities.json | jq '.domains | keys'
# Returns: ["code_analysis", "semantic_search", "requirements_extraction", "vault_integration", "system_operations"]

# 2. Check specific domain
cat .ai/​capabilities.json | jq '.domains.code_analysis'
# Returns: modules, capabilities, entry_points, when_to_use

Structured Discovery (Recommended)

Step 1: Read capabilities.json

{
  "domains": {
    "code_analysis": {
      "modules": ["ast-analyzer", "yii2-analyzer", ...],
      "capabilities": ["parse_php_ast", "extract_yii2_controllers", ...],
      "entry_points": {...}
    }
  }
}

Step 2: Identify relevant domain

  • User wants: "Analyze Yii2 project" → code_analysis domain
  • User wants: "Search for payment logic" → semantic_search domain
  • User wants: "Extract requirements" → requirements_extraction domain

Step 3: Check module capabilities

{
  "code_analysis": {
    "modules": ["yii2-analyzer"],
    "capabilities": ["extract_yii2_controllers", "extract_yii2_models"],
    "entry_points": {
      "cli": "codecompass analyze:yii2 <path>"
    }
  }
}

Step 4: Load relevant skill

  • For Yii2 analysis → Load analyze-yii2-project.md skill
  • For requirements → Load extract-requirements.md skill

Semantic Discovery (Deep Dive)

When capabilities.json shows a module exists but you need implementation details:

Use Weaviate semantic search:

pnpm run cli -- search:semantic "how does Yii2 controller extraction work"

Returns:

  • Relevant source files
  • Similar code patterns
  • Implementation examples

Example Flows

Example 1: "Can CodeCompass analyze database schemas?"

Step 1: Check capabilities.json

cat .ai/​capabilities.json | jq '.domains.code_analysis.modules[]' | grep database
# Returns: "database-analyzer"

✅ Answer: Yes, via database-analyzer module

Step 2: Check entry points

cat .ai/​capabilities.json | jq '.domains.code_analysis.entry_points'

Step 3: Check if skill exists

ls .claude/​skills/ | grep database
# If exists, load that skill for workflow
# If not, use capabilities.json guidance directly

Example 2: "How do I search code semantically?"

Step 1: Check capabilities.json

cat .ai/​capabilities.json | jq '.domains.semantic_search'

Returns: modules, capabilities, dependencies

Step 2: Load semantic-search skill

cat .claude/​skills/​semantic-search.md

Follow the workflow in the skill

Example 3: "What modules handle authentication?"

Step 1: Semantic search in Weaviate

pnpm run cli -- search:semantic "authentication and authorization modules"

Step 2: Verify in capabilities.json

cat .ai/​capabilities.json | jq '.module_relationships'

Discovery Decision Tree

┌─────────────────────────────────────┐
│ USER REQUEST                        │
└─────────────────────────────────────┘
              ↓
        ┌─────────┐
        │ What?   │ "What can CodeCompass do?"
        └─────────┘
              ↓
    Read: .ai/​capabilities.json
              ↓
        ┌─────────┐
        │ How?    │ "How do I use X?"
        └─────────┘
              ↓
    Load: .claude/​skills/<relevant>.md
              ↓
        ┌─────────┐
        │ Where?  │ "Where is X implemented?"
        └─────────┘
              ↓
    Search: Weaviate semantic search
              ↓
        ┌─────────┐
        │ Details │ "How does X work internally?"
        └─────────┘
              ↓
    Read: src/​modules/<module>/<file>

Avoid Rediscovery Pattern

❌ Old Pattern (Inefficient)

  1. User asks: "Can CodeCompass do X?"
  2. Claude explores with Grep: 1,000+ tokens
  3. Claude reads multiple files: 5,000+ tokens
  4. Claude builds mental model: slow, error-prone
  5. Total: 6,000+ tokens, slow, may miss things

✅ New Pattern (Efficient)

  1. User asks: "Can CodeCompass do X?"
  2. Claude reads capabilities.json: 2,500 tokens (cached)
  3. Claude checks domain → module → capability
  4. Claude loads skill if complex workflow needed
  5. Total: 2,500-4,000 tokens, instant, accurate

Module Relationship Understanding

capabilities.json includes module_relationships:

{
  "indexing": {
    "depends_on": ["vectorizer", "weaviate"],
    "used_by": ["search", "vault"],
    "provides": "embedding_generation_pipeline"
  }
}

Use this to:

  • Understand module dependencies
  • Trace data flow
  • Plan refactoring
  • Debug integration issues

Common Workflows Reference

capabilities.json includes common_workflows:

{
  "analyze_legacy_yii2": [
    "1. Verify infrastructure: codecompass health",
    "2. Analyze project: codecompass analyze:yii2 <path>",
    ...
  ]
}

Use as:

  • Quick reference for common tasks
  • Starting point for complex workflows
  • Checklist for multi-step processes

Maintenance Notes

This skill references:

  • .ai/​capabilities.json - Keep this file updated when modules change
  • .claude/​skills/ - Skills directory for workflows
  • CLAUDE.md - Project entry point

Update triggers:

  • New module added → Update capabilities.json
  • Module removed → Update capabilities.json
  • New workflow discovered → Consider creating new skill

Related Skills

  • analyze-yii2-project.md - Framework-specific workflow after discovering Yii2 modules
  • semantic-search.md - How to search capabilities after discovery
  • extract-requirements.md - What to do after discovering requirements modules

Related Modules

From .ai/​capabilities.json:

  • All 5 domains: code_analysis, semantic_search, requirements_extraction, vault_integration, system_operations
  • All 21+ modules documented in capabilities.json

Remember: capabilities.json is the single source of truth for "WHAT exists". Skills teach "HOW to use it".

More skills from mattnigh

spring-framework-patterns logo
mattnigh/skills_collection

spring-framework-patterns

Comprehensive Spring Framework and Spring Boot best practices including dependency injection patterns, bean lifecycle and scopes, REST API development, Spring Data JPA, service layer design, Spring Security, testing strategies, caching, AOP, async processing, error handling, and common anti-patte...

24 0
View

TypeScript厳格モードによる型安全性設計を専門とするスキル。 📖 参照書籍: - 『Effective TypeScript』(Dan Vanderkam): 型設計 📚 リソース参照: - `resources/Level1_basics.md`: レベル1の基礎ガイド - `resources/Level2_intermediate.md`: レベル2の実務ガイド - `resources/Level3_advanced.md`: レベル3の応用ガイド - `resources/Level4_expert.md`: レベル4の専門ガイド - `resources/di...

24 0
View
deploying-cloud-k8s logo
mattnigh/skills_collection

deploying-cloud-k8s

Deploys applications to cloud Kubernetes (AKS/GKE/DOKS) with CI/CD pipelines. Use when deploying to production, setting up GitHub Actions, troubleshooting deployments. Covers build-time vs runtime vars, architecture matching, and battle-tested debugging.

24 0
View
moai-alfred-agent-guide logo
mattnigh/skills_collection

moai-alfred-agent-guide

19-agent team structure, decision trees for agent selection, Haiku vs Sonnet model selection, and agent collaboration principles. Use when deciding which sub-agent to invoke, understanding team responsibilities, or learning multi-agent orchestration.

24 0
View
mermaid-diagram-generator logo
mattnigh/skills_collection

mermaid-diagram-generator

Converts architecture descriptions, module specs, or workflow docs into Mermaid diagrams. Use when visualizing brick module relationships, workflows (DDD, investigation), or system architecture. Supports: flowcharts, sequence diagrams, class diagrams, state machines, entity relationship diagrams,...

24 0
View
pre-flight-check logo
mattnigh/skills_collection

pre-flight-check

INVOKE FIRST before any code work. Validates git workflow (branch, issue, worklog) and checks approach. Use at START of every task and END before completing. Prevents skipped steps.

24 0
View
browser-dev-tools logo
mattnigh/skills_collection

browser-dev-tools

This skill should be used when working with browser-rendered artifacts (i.e. Bun, React/React Native) to proactively validate that development work on localhost is being built appropriately and to support debugging browser-rendered content. Use this skill after making frontend changes to verify t...

24 0
View
lead-dev logo
mattnigh/skills_collection

lead-dev

Lead Développeur - Coordination technique opérationnelle, code review, mentoring et livraison. Pair de web-dev-process au niveau OPÉRATIONS.

24 0
View
worker-monitor logo
mattnigh/skills_collection

worker-monitor

Monitor Docker workers, RQ queue health, and auto-scale workers (max 4). Use when: checking job progress, monitoring queue depth, scaling workers up/down, diagnosing slow processing, or waiting for jobs to complete. Referenced by data-quality skill during reprocessing.

24 0
View
quality-advisor logo
mattnigh/skills_collection

quality-advisor

Proactive quality guidance system that monitors artifact creation and provides real-time feedback on documentation quality

24 0
View
bump-version logo
mattnigh/skills_collection

bump-version

This skill should be used when the user wants to bump the version number in the workspace. It updates versions across all pyproject.toml files (root, tde, and tda packages) and the CHANGELOG.md to keep them synchronized.

24 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View