From smith
Audits Claude Code codebase for system-wide impacts of proposed changes, identifies touch points, conflicts, and redundancies before smith-new workflows.
npx claudepluginhub attckdigital/smithThis skill uses the workspace's default tool permissions.
A diagnostic workflow that audits the codebase for system-wide impacts BEFORE making changes. Identifies all touch points, surfaces conflicts and redundancies, and produces a structured exploration report. Use as the first phase of smith-new or manually before significant changes.
Audits Claude Code project configuration for drift and collaboration issues across six layers (CLAUDE.md, rules, skills, hooks, subagents, verifiers), tiered by project complexity.
Audits Claude Code configurations for best practices in skills, instructions, MCP servers, hooks, plugins, security, over-engineering, and context efficiency via file scans and focused checks. Invoke with /claudit [focus-area].
Audits Claude Code skills against project state and usage, detects redundancies, consolidates/merges/archives safely with backups, confirmations, and rollbacks.
Share bugs, ideas, or general feedback.
A diagnostic workflow that audits the codebase for system-wide impacts BEFORE making changes. Identifies all touch points, surfaces conflicts and redundancies, and produces a structured exploration report. Use as the first phase of smith-new or manually before significant changes.
Arguments: $ARGUMENTS
Throughout this action, log significant events to the vault session log. Read the session log path from .smith/vault/.current-session. If the file is missing or the vault is not initialized, skip all logging silently.
Append entries using this format:
### [HH:MM:SS] /smith-explore <event>
**User Request:**
> <verbatim user message or feature description that triggered this exploration>
**Synthesized Input:** <brief summary of what's being explored>
**Outcome:** <what was discovered>
**Artifacts:** <files read, patterns found>
**Systems affected:** <system IDs>
Log at these points:
Use /smith-explore when:
This skill is automatically invoked as Phase 0 of /smith-new when --explore is passed or when the feature touches core Smith infrastructure.
Parse $ARGUMENTS to determine exploration scope:
| Flag | Scope | What to scan |
|---|---|---|
--scope skills | Smith skills only | ~/.claude/skills/smith-*/**/*.md |
--scope hooks | Hooks and plugins | ~/.claude/plugins/**/*, settings.json hooks |
--scope configs | Config files only | constitution.md, CLAUDE.md, MEMORY.md |
--scope all | Everything | All of the above |
| (no flag) | Auto-detect | Infer from feature description |
Auto-detection rules:
Launch diagnostic sub-agents based on scope. Each sub-agent is read-only.
Model: haiku Task: Scan all Smith skills for patterns related to the exploration target.
- Find all skills that write to the target files/systems
- Identify shared patterns (vault logging, workflow phases, etc.)
- Note any skills that might conflict with the proposed change
- Report: skills affected, patterns found, potential conflicts
Model: haiku Task: Check configuration files for redundancies and conflicts per File Purpose Policy.
- Read constitution.md, CLAUDE.md, MEMORY.md
- Check for existing content that overlaps with proposed change
- Identify redundancies that violate the File Purpose Policy (constitution.md §VI)
- Check for spec drift between files
- Report: redundancies, misplaced content, conflicts with policy
Model: haiku Task: Identify hooks that might be triggered by or conflict with the change.
- Scan ~/.claude/settings.json for relevant hooks
- Check ~/.claude/plugins/ for automation that touches target systems
- Identify any pre/post tool use hooks that might interfere
- Report: hooks affected, automation conflicts, triggering conditions
Model: sonnet Task: Deep analysis of how proposed change interacts with existing systems.
- Map the proposed change to affected systems via .specify/systems/*/spec.md
- Check for existing features that overlap or conflict
- Identify architectural implications
- Search for prior debug reports or decisions related to this area
- Report: systems affected, architectural concerns, prior art
Not all agents are always needed:
| Exploration type | Agents to launch |
|---|---|
| New skill | 2.1 (skills) + 2.3 (hooks) |
| Config file change | 2.2 (config) + 2.4 (cross-ref) |
| Policy change | 2.1 (skills) + 2.2 (config) + 2.4 (cross-ref) |
| New feature | 2.4 (cross-ref) only |
| Full audit | All 4 |
If --deep flag is passed, always launch all 4 agents.
After sub-agents return, synthesize findings into a conflict analysis:
Categorize findings by severity:
Check against File Purpose Policy (constitution.md §VI):
Apply smith-debug cognitive guards:
Write the report to .smith/vault/explore/explore-YYYY-MM-DD-<slug>.md:
---
explored: YYYY-MM-DD
status: clear | conflicts-found | blocking-issues
scope: skills | hooks | configs | all
feature: <proposed feature or change>
---
# Exploration: <short description>
## Proposed Change
<Description of what's being explored/proposed>
## Scope
<What was scanned and why>
## Findings
### Skills Patterns
<Agent 2.1 findings — affected skills, shared patterns, conflicts>
### Configuration Files
<Agent 2.2 findings — redundancies, policy violations, misplaced content>
### Hooks & Automation
<Agent 2.3 findings — affected hooks, automation conflicts>
### Cross-System Analysis
<Agent 2.4 findings — systems affected, architectural concerns>
## Conflicts
### BLOCKING
- [ ] <conflict description> — **Resolution required before proceeding**
### WARNING
- [ ] <issue description> — **Recommended to address**
### INFO
- <context or related information>
## Recommendations
<Suggested approach based on findings>
## Proceed?
Based on this exploration:
- [ ] **Clear to proceed** — no blocking issues
- [ ] **Proceed with caution** — warnings to address
- [ ] **Do not proceed** — blocking issues require resolution first
Present the exploration summary to the user:
## Exploration Complete
**Proposed:** <one-sentence summary>
**Status:** <clear | warnings | blocking>
**Report saved:** .smith/vault/explore/explore-YYYY-MM-DD-<slug>.md
### Findings Summary
- Skills affected: N
- Config conflicts: N
- Hooks impacted: N
- Systems touched: N
### Issues Found
- BLOCKING: N (must resolve)
- WARNING: N (should address)
- INFO: N (context only)
Would you like to:
[1] Proceed — continue to smith-new with this context
[2] Resolve conflicts — address blocking/warning issues first
[3] Explore deeper — run additional analysis on specific areas
[4] Abort — stop and review findings manually
clear: return findings and continue workflowconflicts-found (warnings only): present summary, ask to proceed or resolveblocking-issues: STOP, present issues, require resolution before continuing