architecture-introspector
USE WHEN: analyzing existing architectures, evaluating architectural decisions, identifying technical debt, planning refactoring, assessing whether patterns…
Skill by mahidalhan
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/mahidalhan-architecture-introspector
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
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/architecture-introspector
What's inside
- Skill name
architecture-introspector- Description
- USE WHEN: analyzing existing architectures, evaluating architectural decisions, identifying technical debt, planning refactoring, assessing whether patterns are justified, onboarding to complex codebases, reviewing PRs with architectural changes. DO NOT USE WHEN: simple code questions, bug fixes, feature implementation, or tasks not requiring architectural analysis. For complex architectural analysis, trigger deep thinking with "think harder" or "ultrathink" to enable thorough first-principles reasoning.
- License
- MIT
- Instructions
- 311 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- first_principles_framework.md · references/
SKILL.md (first lines)
# Architecture Introspector Systematically analyze software architectures using first principles thinking, applying SpaceX's 5-step engineering methodology combined with software modularity principles to identify unnecessary complexity, validate architectural decisions, and recommend improvements. ## Purpose This skill provides a rigorous, principle-based framework for evaluating software architectures. It challenges inherited assumptions, identifies unjustified complexity, and applies the "delete first, optimize later" philosophy to architecture. The goal is to achieve simple, justified architectures where every component earns its existence through actual need rather than hypothetical future requirements. ## When to Use This Skill Use this skill when: - **Analyzing existing architectures** - Understanding whether current architectural patterns are justified - **Evaluating architectural decisions** - Questioning whether a proposed abstraction/layer/pattern is necessary - **Identifying technical debt** - Finding components that add complexity without proportional value - **Planning refactoring efforts** - Determining what to delete, simplify, or consolidate - **Onboarding to codebases** - Understanding architectural rationale and identifying areas for improvement - **Code review of architectural changes** - Ensuring new abstractions meet the 2+ consumer threshold - **Modernization efforts** - Deciding what to keep, kill, or consolidate during rewrites ## Core Philosophy ### SpaceX's 5-Step Engineering Methodology 1. **Question Every Requirement** - Trace decisions to their origins, challenge assumptions 2. **Delete the Part or Process** - Remove first, optimize never (if it shouldn't exist) 3. **Simplify and Optimize** - Only after deletion is complete 4. **Accelerate Cycle Time** - Speed up validated, simplified processes 5. **Automate** - Last step only, after deletion and simplification ### Software Modularity Principle **"Modularity without reuse is bureaucracy"** Extract and modularize based on actual needs (2+ consumers for services/helpers, 3+ for utilities), not hypothetical futures. Premature abstraction creates overhead without benefit. ## How to Use This Skill ### Step 1: Load the Framework Read the comprehensive framework from `references/first_principles_framework.md`: ``` Read references/first_principles_framework.md ``` This document contains: - Detailed explanation of all 5 SpaceX principles applied to architecture - The modularity principle and 2-3 rule - Anti-patterns to identify - Decision frameworks - Output format templates ### Step 2: Define the Introspection Scope Clarify what is being analyzed: - **System-wide architecture** - Entire application's structure - **Subsystem/module** - Specific domain or layer - **Specific pattern** - Particular architectural decision (e.g., "Should we extract this service?") - **Feature implementation** - How a feature is architecturally structured Ask the user: - What architectural area should be analyzed? - What specific concerns or questions exist? - Are there performance issues, maintenance pain points, or complexity complaints? - Is this exploratory or focused on a specific decision? ### Step 3: Apply the 6-Phase Introspection Process Follow the process defined in `references/first_principles_framework.md`: #### Phase 1: Map Current State - Inventory all components, layers, and abstractions - Count consumers for each abstraction (critical for deletion phase) - Trace data/control flow - Document original decisions and their rationale (if discoverable) #### Phase 2: Question Requirements - For each architectural element, ask "Who required this and why?" - Validate assumptions against current reality - Identify cargo-culted patterns (e.g., "We use microservices because Netflix does") - Separate hard constraints (business/technical necessities) from soft constraints (preferences) #### Phase 3: Delete **Most important phase - if not occasionally adding things back, not deleting enough** Identify deletion candidates: - Abstractions with <2 consumers → Inline them - Layers adding no value → Remove them - Duplicated logic → Consolidate - Unused features → Delete - Premature generalizations → Simplify to specific need Apply the modularity principle rigorously: - Services/helpers with 1 consumer → Move logic into that consumer - Utilities used <3 times → Inline - Frameworks for single use case → Replace with simple solution #### Phase 4: Simplify **Only for components that survived deletion** - Reduce cognitive complexity - Unify similar patterns into a single approach - Improve naming and contracts - Lower the learning curve #### Phase 5: Accelerate - Identify architectural bottlenecks (deployment dependencies, approval gates) - Reduce coupling to enable parallel development - Shorten feedback loops - Enable incremental deployment #### Phase 6: Automate **Only after deletion and simplification** - Automate validated, simplified patterns - Create guardrails for architectural principles (e.g., linters enforcing 2+ consumer rule) - Generate boilerplate for necessary patterns
From mahidalhan/claude-hacks, MIT.
More from mahidalhan/claude-hacks
- 0.502score
exa-code-context
mahidalhan
USE WHEN: needing real code examples from GitHub, finding API usage patterns, looking up framework setup, verifying library implementations, eliminating…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
skill-creator
mahidalhan
USE WHEN: user asks to create a skill, scaffold a new capability, codify expertise into reusable instructions, or says "create skill", "new skill", "make a…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
threaded-explainer
mahidalhan
USE WHEN: teaching complex topics requiring chunked delivery, handling mid-explanation questions, preserving context across interrupts, deep-dive explanations…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
swift-concurrency-expert
mahidalhan
Swift Concurrency review and remediation for Swift 6.2+.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
mermaid-diagrams
mahidalhan
USE WHEN: user needs diagrams, flowcharts, ERDs, sequence diagrams, state machines, architecture visualizations, or says "visualize", "diagram", "chart"…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
publish-skill
mahidalhan
USE WHEN: user wants to publish, port, or share a skill to a marketplace repo.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
task-orchestrator
mahidalhan
USE WHEN: planning complex multi-step tasks, organizing work with dependencies, identifying parallelization opportunities, breaking down large features into…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
algorithmic-art
mahidalhan
USE WHEN: user requests generative art, algorithmic art, procedural visuals, flow fields, particle systems, creative coding, or says "create art"…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
ascii-art-explainer
mahidalhan
USE WHEN: visualizing algorithms, data structures, architecture, control flow with ASCII art, or when terminal-friendly diagrams are needed.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
xml-context-engineering
mahidalhan
USE WHEN: writing system prompts, structuring complex instructions, engineering context for Claude agents, optimizing attention efficiency in long prompts.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
standup
mahidalhan
USE WHEN: returning to a project after time away (1 day to 30 days), needing project status briefing, understanding where work left off, determining next steps.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
explainer
mahidalhan
USE WHEN: user asks "explain", "teach me", "how does X work", "help me understand", or wants to learn concepts from first principles with interactive…
SkillDFreshness: D★ 33Claude Code +9
Signals
- Stars
- 33
- Forks
- 5
- Open issues
- 1
- Last commit (this folder)
- Jan 8, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/mahidalhan/claude-hacks
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mahidalhan
- 0.502score
threaded-explainer
mahidalhan
USE WHEN: teaching complex topics requiring chunked delivery, handling mid-explanation questions, preserving context across interrupts, deep-dive explanations…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
swift-concurrency-expert
mahidalhan
Swift Concurrency review and remediation for Swift 6.2+.
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
exa-code-context
mahidalhan
USE WHEN: needing real code examples from GitHub, finding API usage patterns, looking up framework setup, verifying library implementations, eliminating…
SkillDFreshness: D★ 33Claude Code +9 - 0.502score
skill-creator
mahidalhan
USE WHEN: user asks to create a skill, scaffold a new capability, codify expertise into reusable instructions, or says "create skill", "new skill", "make a…
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
publish-skill
mahidalhan
USE WHEN: user wants to publish, port, or share a skill to a marketplace repo.
SkillDFreshness: D★ 33Claude Code +9 - 0.497score
explainer
mahidalhan
USE WHEN: user asks "explain", "teach me", "how does X work", "help me understand", or wants to learn concepts from first principles with interactive…
SkillDFreshness: D★ 33Claude Code +9
Cite this page
architecture-introspector skill. Agent Mart. https://agentmart.dev/skills/mahidalhan-architecture-introspector (last updated 2026-10-24)