Pattern Analysis
Audit codebase patterns and conventions, evaluate proposed changes for consistency
Skill by dtsong
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dtsong-pattern-analysis-0b6dcd
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/pattern-analysis
What's inside
- Skill name
Pattern Analysis- Description
- Audit codebase patterns and conventions, evaluate proposed changes for consistency
- License
- MIT
- Instructions
- 133 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "Pattern Analysis" does not match folder "pattern-analysis"
Files (1)
- SKILL.md
SKILL.md (first lines)
# Pattern Analysis ## Purpose Audit the codebase for existing patterns and conventions, then evaluate proposed changes for consistency. ## Inputs - Codebase or directory to audit - Proposed changes or new code to evaluate (if applicable) - Specific concerns or areas of focus (if any) - Known tech stack and framework conventions ## Process ### Step 1: Scan Structural Patterns - **File naming conventions:** - kebab-case, PascalCase, camelCase, snake_case - Suffix conventions (.utils.ts, .types.ts, .test.ts, .stories.tsx) - **Directory organization:** - Feature-based (feature/components, feature/hooks, feature/utils) - Layer-based (components/, hooks/, utils/, types/) - Hybrid approaches - **Module export patterns:** - Barrel files (index.ts re-exports) - Direct imports - Default vs named exports ### Step 2: Identify Code Patterns - **Component patterns:** - Server vs client components (React Server Components) - Composition patterns (render props, compound components, HOCs) - Prop drilling vs context vs stores - **Data fetching patterns:** - Custom hooks (useQuery, useSWR, custom fetch hooks) - Server actions - API routes - Direct fetch in server components - **State management patterns:** - Local state (useState, useReducer) - Context (React Context, providers) - External stores (Zustand, Jotai, Redux) - URL state (search params, pathname) - **Error handling patterns:** - try/catch blocks - Result/Either types - Error boundaries - Toast notifications - **Type patterns:** - interfaces vs type aliases - Generic patterns and utility types - Zod schemas vs manual types - Shared type files vs co-located types ### Step 3: Catalog Existing Conventions Document discovered conventions: | Category | Convention | Example File | Frequency | |----------|-----------|--------------|-----------| | File naming | ... | ... | ... | | Component style | ... | ... | ... | | Data fetching | ... | ... | ... | | State management | ... | ... | ... | | Error handling | ... | ... | ... | | Type definitions | ... | ... | ... | | Import ordering | ... | ... | ... | | Comment style | ... | ... | ... | | Testing patterns | ... | ... | ... | ### Step 4: Evaluate Proposed Changes For each proposed change, check: - **Does it follow existing naming conventions?** (files, variables, functions, components) - **Does it follow existing structural patterns?** (directory placement, export style) - **Does it reuse existing utilities/helpers?** (don't reinvent what exists) - **Does it introduce a new pattern?** If so: - Is the new pattern justified? (existing pattern inadequate, new requirement) - Is it better enough to warrant migration? Or just different? - Will it cause confusion having two patterns for the same thing? - **Does it create inconsistency with similar existing code?** (same feature, neighboring files) ### Step 5: Produce Recommendations - **Follow these patterns** (with file references as examples): - Pattern A: See `src/components/ExampleComponent.tsx` - Pattern B: See `src/hooks/useExampleHook.ts` - **Avoid these patterns** (with rationale): - Anti-pattern X: Because [reason] - Deprecated pattern Y: Replaced by [alternative] - **Consider refactoring** (if new patterns are genuinely better): - Migrate pattern A to pattern B across [scope] - Estimated scope: [number of files affected] ## Output Format ### Pattern Inventory | Category | Pattern | Example File | Frequency | Status | |----------|---------|--------------|-----------|--------| | File naming | kebab-case components | `src/components/team-card.tsx` | High | Standard | | Data fetching | useQuery hooks | `src/hooks/use-teams.ts` | High | Standard | | ... | ... | ... | ... | ... | ### Consistency Report | Proposed Change | Existing Pattern | Match? | Recommendation | |----------------|-----------------|--------|----------------| | ... | ... | Yes/No | ... | ### Recommendations 1. **Follow:** [pattern] — see [file reference] 2. **Avoid:** [anti-pattern] — because [rationale] 3. **Refactor:** [migration suggestion] — [scope and effort] ## Quality Checks
From dtsong/claude-code-windows-setup, MIT.
More from dtsong/claude-code-windows-setup
- 0.445score
cicd-generation
dtsong
Use when creating GitHub Actions workflows, adding CI/CD to a project, or reviewing pipeline security.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
crypto-review
dtsong
Use when reviewing cryptographic implementations for algorithm choice correctness, key management soundness, side-channel resistance, and crypto agility…
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
pqc-readiness
dtsong
Use when assessing a system's readiness for post-quantum cryptography migration, inventorying classical crypto usage, mapping NIST-standardized PQC…
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
protocol-analysis
dtsong
Use when analyzing cryptographic protocol security by modeling state machines, enumerating transitions, and identifying desynchronization, replay, downgrade…
SkillDFreshness: D★ 2Claude Code +9 - 0.439score
code-search
dtsong
Fast codebase searches using grep/glob.
SkillDFreshness: D★ 2Claude Code +9 - 0.429score
Schema Evaluation
dtsong
Evaluate and design data warehouse schemas — star, snowflake, data vault, OBT — with grain definition, SCD strategies, and normalization trade-offs
SkillDFreshness: D★ 2Claude Code +9 - 0.426score
Schema Design
dtsong
Migration-ready database schema design with normalization and indexing strategies
SkillDFreshness: D★ 2Claude Code +9 - 0.426score
Design System Architecture
dtsong
Token hierarchy, theming strategy, and cross-platform consistency
SkillDFreshness: D★ 2Claude Code +9 - 0.426score
Motion Design
dtsong
Animation principles, micro-interaction specs, and reduced-motion support
SkillDFreshness: D★ 2Claude Code +9 - 0.426score
Visual Audit
dtsong
Structured visual design critique with specific actionable feedback
SkillDFreshness: D★ 2Claude Code +9 - 0.426score
Changelog Design
dtsong
Changelog entries and migration guides for breaking changes with version strategy
SkillDFreshness: D★ 2Claude Code +9 - 0.426score
Interaction Design
dtsong
Design component interaction specs with all visual states, transitions, and accessibility requirements
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Feb 21, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from dtsong
- 0.445score
cicd-generation
dtsong
Use when creating GitHub Actions workflows, adding CI/CD to a project, or reviewing pipeline security.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
protocol-analysis
dtsong
Use when analyzing cryptographic protocol security by modeling state machines, enumerating transitions, and identifying desynchronization, replay, downgrade…
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
pqc-readiness
dtsong
Use when assessing a system's readiness for post-quantum cryptography migration, inventorying classical crypto usage, mapping NIST-standardized PQC…
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
crypto-review
dtsong
Use when reviewing cryptographic implementations for algorithm choice correctness, key management soundness, side-channel resistance, and crypto agility…
SkillDFreshness: D★ 2Claude Code +9 - 0.439score
code-search
dtsong
Fast codebase searches using grep/glob.
SkillDFreshness: D★ 2Claude Code +9 - 0.434score
dockerfile-generation
dtsong
Build minimal, secure Dockerfiles with verification-first workflow.
SkillDFreshness: D★ 2Claude Code +9
Cite this page
Pattern Analysis skill. Agent Mart. https://agentmart.dev/skills/dtsong-pattern-analysis-0b6dcd (last updated 2026-10-24)