.github/skills/repo-analysis/SKILL.md
Deep repository analysis methodology for understanding codebase structure, dependencies, patterns, and change impact. Use when analyzing repositories for customization planning, refactoring, or understanding project architecture.
npx skillsauth add klintravis/copilotcustomizer repo-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
✨ SKILL ACTIVATED: repo-analysis
Purpose: Deep repository analysis methodology
Functionality: Structure discovery, tech stack detection, pattern recognition, dependency analysis
Output: Structured analysis report with actionable insights
Scope: Portable across VS Code, CLI, Claude, Cursor, and compatible agents
Provides systematic methodology for comprehensive repository analysis including structure mapping, dependency identification, pattern recognition, and impact assessment. Essential for informed decision-making before making changes.
Objective: Map repository organization and key components
Steps:
Root Analysis
Directory Mapping
File Patterns
Output: Repository structure map with key directories and file patterns
Objective: Identify languages, frameworks, and tools
Detection Criteria:
Languages:
- File extensions (.ts, .py, .rs, .go, .cs)
- Shebang lines in scripts
- Language-specific patterns
Frameworks:
- Package dependencies (package.json, requirements.txt, Cargo.toml)
- Import statements (import React, from flask, use actix_web)
- Configuration files (next.config.js, vue.config.js)
Tools:
- Build systems (webpack, vite, cargo, dotnet)
- Test frameworks (jest, pytest, xunit)
- Linters/formatters (eslint, black, rustfmt)
Output: Complete tech stack inventory with versions
Objective: Discover and match enterprise coding standards
Steps:
.github/standards/ recursively for *.md files (skip README.md)name, technologies, scope, priorityscope: always standardsscope: tech-match, compare technologies[] against detected stack (case-insensitive)high > medium > low)standardsContext for downstream agentsEdge Cases:
.github/standards/ → skip this phase, proceed normallyscope: always standards applyOutput: Matched standards summary with key principles per standard
Reference: Standards.instructions.md
Objective: Identify architectural patterns and conventions
Pattern Categories:
Architectural Patterns
Code Organization
Naming Conventions
Testing Patterns
Output: Pattern catalog with examples from codebase
Objective: Map internal and external dependencies
Internal Dependencies:
External Dependencies:
Dependency Mapping:
Component A
├─→ Internal: UtilityB, ServiceC
└─→ External: [email protected], [email protected]
Component B
├─→ Internal: SharedTypes, ConfigD
└─→ External: [email protected], [email protected]
Output: Dependency graph with risk assessment
Objective: Evaluate change risk and affected areas
Impact Analysis:
Direct Impact
Indirect Impact
Risk Levels
LOW: Isolated changes, good test coverage
MEDIUM: Cross-module changes, partial test coverage
HIGH: Core infrastructure, API contracts, low test coverage
Risk Factors:
Output: Impact report with risk classification
Objective: Identify current Copilot customizations
Discovery:
Check for:
.github/agents/*.agent.md
.github/instructions/*.instructions.md
.github/prompts/*.prompt.md
.github/skills/*/SKILL.md
AGENTS.md
Asset Inventory:
Output: Customization state report with recommendations
Use this checklist for comprehensive analysis:
[ ] Structure
[ ] Tech Stack
[ ] Patterns
[ ] Dependencies
[ ] Impact
[ ] Standards
[ ] Customization
## Repository Analysis Report
### Project Overview
- **Type**: [API/CLI/Web App/Library]
- **Primary Languages**: [List]
- **Key Frameworks**: [List with versions]
- **Build System**: [Tool and configuration]
### Structure
**Source Organization**:
- [Description of src/ structure]
**Test Organization**:
- [Description of test structure]
### Tech Stack
| Category | Technology | Version | Notes |
|----------|-----------|---------|-------|
| Language | TypeScript | 5.3 | Strict mode enabled |
| Framework | Express | 4.18 | RESTful API |
| Testing | Jest | 29.7 | Unit + integration |
### Patterns Identified
1. **Repository Pattern**: Data access abstraction
2. **Middleware Chain**: Request processing pipeline
3. **Dependency Injection**: Constructor-based DI
### Dependencies
**Critical Dependencies** (high usage):
- express: REST framework
- prisma: Database ORM
- zod: Runtime validation
**Risk Areas**:
- [List vulnerable or deprecated packages]
### Impact Assessment
**Proposed Change**: [Description]
**Direct Impact**:
- [Files to modify]
**Indirect Impact**:
- [Dependent files]
**Risk Level**: MEDIUM
- [Risk factors]
### Customization Status
**Existing Assets**:
- Agents: 3 (APIExpert, TestGen, Security)
- Instructions: 2 (Coding standards, API patterns)
- Prompts: 2 (Generate endpoint, Document API)
- Skills: 0
**Gaps Identified**:
- No debugging skills
- Missing deployment automation
- Security review workflows needed
### Matched Enterprise Standards
| Standard | Scope | Priority | Key Principles |
|----------|-------|----------|----------------|
| {name} | {always/tech-match} | {high/medium/low} | {summary} |
*Standards matched via Standards instruction. Principles will be integrated into generated assets.*
### Recommendations
1. [Specific recommendation]
2. [Specific recommendation]
3. [Specific recommendation]
Downstream (feeds to):
Typical workflow:
repo-analysis (understand codebase) ← THIS SKILL
↓
planning (create strategy)
↓
[USER APPROVAL GATE] ✋
↓
Implementation
↓
documentation (capture outcomes)
Integration benefits: Analysis output provides essential context for downstream skills, reducing redundant discovery and improving decisions.
A complete repository analysis should provide:
Skill Type: Analysis and Planning
Complexity: Medium
Typical Duration: 5-15 minutes (depending on repository size)
Prerequisites: Repository access, ability to search codebase
Cross-Platform: Works in VS Code, GitHub Copilot CLI, Claude, Cursor, and other Skills-compatible agents.
development
Strategic implementation planning methodology for software changes. Creates detailed, step-by-step execution plans with risk mitigation and validation strategies. Use when planning features, refactoring, or complex code changes.
testing
Design and generate conductor/subagent orchestrated systems for complex repositories. Covers Orchestra, Atlas, and Custom patterns with TDD lifecycle enforcement, quality gates, plan file architecture, and parallel execution strategies. Use when a project needs coordinated multi-agent workflows beyond simple handoff chains.
development
Structured technical documentation generation for software changes, implementations, and analyses. Creates clear, comprehensive documentation including change summaries, API docs, and technical reports. Use when documenting code changes, features, or system architecture.
tools
CI/CD pipeline design, deployment strategies, and release automation. Use when implementing GitHub Actions, container deployments, release workflows, and infrastructure automation.