Skip to content
cccskills
FreePublished on GitHub

omcustom:analysis

Analyze project and auto-configure agents, skills, rules, and guides

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md8.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Project Analysis Skill

Scan a project's tech stack, compare against installed agents/skills, and auto-configure missing items.

Options

--dry-run      Show what would be added without making changes
--verbose      Show detailed detection reasoning
--interview, -i   Run interactive architecture interview before file-based detection

Workflow

Step 0: Architecture Interview (--interview only)

When --interview flag is provided, conduct an interactive AI interview before file-based detection. This captures human context that file scanning cannot determine.

Interview flow (sequential, AI-guided):

  1. 프로젝트 유형: "이 프로젝트는 어떤 종류입니까?" → 옵션: web app, REST API, CLI tool, library, monorepo, data pipeline, mobile app

  2. 아키텍처 패턴: "어떤 아키텍처를 따르고 있습니까?" → 옵션: microservices, monolith, serverless, event-driven, layered, hexagonal

  3. 주요 언어: "주로 사용하는 프로그래밍 언어는?" → 자유 입력, 알려진 에이전트와 매칭

  4. 배포 대상: "어디에 배포합니까?" → 옵션: AWS, GCP, Azure, Vercel, on-premises, Docker/K8s, edge

  5. 팀 우선순위: "팀의 주요 관심사는?" → 옵션: performance, security, developer experience, cost, scalability

Interview results feed into Step 1 as weighted detection hints:

  • File evidence + interview agreement = confidence: high
  • File evidence only = confidence: medium (unchanged from current)
  • Interview only (no file evidence) = confidence: suggested

Integration with report:

Interview Insights (--interview):
  Project type: REST API (user-specified, confirmed by file scan)
  Architecture: microservices (user-specified)
  Deployment: AWS + Docker (confirmed by file scan)
  Team focus: security → sec-codeql-expert [suggested]

Suggested (from interview, no file evidence):
  ~ sec-codeql-expert  [suggested — no CodeQL config found]
  ~ de-kafka-expert     [suggested — no kafka deps found]

Step 1: Project Scan

Detect tech stack by checking indicator files and dependency manifests.

IndicatorFiles to CheckAgentSkill
TypeScripttsconfig.json, *.ts, *.tsxlang-typescript-experttypescript-best-practices
React/Next.jsnext.config.*, package.json (next dep)fe-vercel-agentreact-best-practices
Vue.jsvue.config.*, *.vuefe-vuejs-agent-
Sveltesvelte.config.*, *.sveltefe-svelte-agent-
Flutter/Dartpubspec.yaml, *.dart, lib/main.dartfe-flutter-agent-
Pythonpyproject.toml, requirements.txt, *.pylang-python-expertpython-best-practices
FastAPI"fastapi" in imports/depsbe-fastapi-expertfastapi-best-practices
Gogo.mod, *.golang-golang-expertgo-best-practices
Go Backendgo.mod + cmd/ or internal/ dirsbe-go-backend-expertgo-backend-best-practices
RustCargo.toml, *.rslang-rust-expertrust-best-practices
Kotlin*.kt, build.gradle.ktslang-kotlin-expertkotlin-best-practices
Java*.java, pom.xmllang-java-expert-
Spring Bootspring-boot in depsbe-springboot-expertspringboot-best-practices
Express.js"express" in depsbe-express-expert-
NestJS"@nestjs" in depsbe-nestjs-expert-
DockerDockerfile, compose.ymlinfra-docker-expertdocker-best-practices
AWSCDK/SAM/CloudFormation filesinfra-aws-expertaws-best-practices
PostgreSQL*.sql, pg in depsdb-postgres-expertpostgres-best-practices
Redisredis in depsdb-redis-expertredis-best-practices
Supabasesupabase in deps/configdb-supabase-expertsupabase-postgres-best-practices
Airflowdags/*.py, airflow in depsde-airflow-expertairflow-best-practices
dbtdbt_project.ymlde-dbt-expertdbt-best-practices
Kafkakafka in deps/configde-kafka-expertkafka-best-practices
Sparkspark in deps/configde-spark-expertspark-best-practices
Snowflakesnowflake in deps/configde-snowflake-expertsnowflake-best-practices

Detection logic:

1. Read package.json / go.mod / Cargo.toml / pyproject.toml / pom.xml
2. Glob for indicator files (tsconfig.json, *.vue, Dockerfile, etc.)
3. Grep dependencies for framework/library names
4. For verbose mode: log each indicator found and confidence level

Step 2: Gap Analysis

Compare detected stack against what is already installed.

1. List existing agents:  ls .claude/agents/*.md
2. List existing skills:  find .claude/skills -name "SKILL.md"
3. For each detected indicator:
   a. Check if required agent file exists → mark MISSING or PRESENT
   b. Check if required skill directory exists → mark MISSING or PRESENT
4. Build two lists:
   - missing_agents[]   — agents needed but not present
   - missing_skills[]   — skills needed but not present
5. (Optional) Build unused list for suggestions:
   - Agents present but no indicator matched → flag for review

Step 3: Auto-Configure

Apply changes for all missing items (skip in --dry-run mode).

For each missing agent:
  - If agent exists in templates/.claude/agents/ → copy to .claude/agents/
  - Else → delegate to mgr-creator with detected domain context

For each missing skill:
  - If skill exists in templates/.claude/skills/ → copy to .claude/skills/
  - Else → log as "skill not available in templates, manual setup needed"

Rules:
  - Keep all existing rules (they are universal, never remove)

Guides:
  - Verify templates/guides/ directory has relevant reference docs
  - Log missing guide topics as suggestions only (no auto-copy)

Step 4: Report

Output a structured summary after the run.

[analysis] Project: <detected project name or path>

Tech Stack Detected:
  - TypeScript (tsconfig.json found)
  - React/Next.js (next in package.json deps)
  - Docker (Dockerfile found)

Agents:
  + lang-typescript-expert  [added]
  + fe-vercel-agent          [added]
  ~ infra-docker-expert      [already present, skipped]

Skills:
  + typescript-best-practices  [added]
  + react-best-practices        [added]
  ~ docker-best-practices       [already present, skipped]

Rules:   no changes (universal rules kept as-is)

Guides:  react/ — present
         docker/ — present
         typescript/ — present

Suggestions:
  - infra-aws-expert not detected (no CDK/SAM files found)
  - de-* agents not detected (no pipeline indicators found)

Summary: 2 agents added, 2 skills added, 0 removed

--dry-run output prefixes all additions with [would add] instead of [added] and makes no file changes.

--verbose output adds a Detection section before the report:

Detection Details:
  tsconfig.json            → TypeScript confirmed
  package.json[next]       → Next.js confirmed (confidence: high)
  package.json[react]      → React confirmed (confidence: high)
  Dockerfile               → Docker confirmed
  no go.mod found          → Go skipped
  no Cargo.toml found      → Rust skipped

Step 5: Adaptive Harness Integration

After analysis completes, offer adaptive-harness optimization:

[Analysis Complete] Tech stack detected. Optimize harness for this project?
├── Yes → Run /omcustom:adaptive-harness --optimize (deactivate unused, suggest missing)
├── Dry-run → Run /omcustom:adaptive-harness --optimize --dry-run (show changes only)
└── Skip → Keep current harness configuration

If user selects Yes or Dry-run, invoke the adaptive-harness skill with the analysis results as context. The project profile generated by analysis feeds directly into adaptive-harness optimization.

Integration

SkillIntegration
adaptive-harnessCalled after analysis to optimize harness based on detected stack

Example Invocation

/analysis
/analysis --dry-run
/analysis --verbose
/analysis --dry-run --verbose

Notes

  • Always run --dry-run first on unfamiliar projects to preview changes
  • Agents and skills are additive only — existing items are never removed automatically
  • For stacks not in the detection table, delegate to mgr-creator for dynamic agent creation
  • Rules are never auto-removed; they are project-universal

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

Apache Airflow best practices for DAG authoring, testing, and production deployment

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)

The English summary is being prepared. Showing the original description.

baekenough/second-brain15Updated Oct 8, 2026

See all skills by baekenough

Report a problem with this skill