Skip to main content
ClaudeWave
Skill3.4k estrellas del repoactualizado 3mo ago

architect

The architect skill analyzes a knowledge system's health metrics, operational friction patterns, and design derivation to generate research-backed improvement proposals. Use it when your note-taking system feels inefficient, you want to diagnose specific problems with evidence, or you need to justify structural changes through documented research claims rather than intuition. It reads configuration files to understand your system's vocabulary and design intent, then surfaces three to five ranked recommendations requiring your explicit approval before implementation.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/agenticnotetaking/arscontexta /tmp/architect && cp -r /tmp/architect/skills/architect ~/.claude/skills/architect
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

## Runtime Configuration (Step 0 — before any processing)

Read these files to configure domain-specific behavior:

1. **`ops/derivation-manifest.md`** — vocabulary mapping, platform hints
   - Use `vocabulary.notes` for the notes folder name
   - Use `vocabulary.note` / `vocabulary.note_plural` for note type references
   - Use `vocabulary.topic_map` / `vocabulary.topic_map_plural` for MOC references
   - Use `vocabulary.inbox` for the inbox folder name
   - Use `vocabulary.cmd_reflect` for connection-finding command name
   - Use `vocabulary.cmd_reweave` for backward-pass command name
   - Use `vocabulary.cmd_verify` for verification command name
   - Use `vocabulary.architect` for the command name in output

2. **`ops/config.yaml`** — processing depth, pipeline chaining, automation settings

3. **`ops/derivation.md`** — original derivation record (the design intent baseline)

If these files don't exist, use universal defaults and warn the user.

---

## EXECUTE NOW

**Target: $ARGUMENTS**

Parse immediately:
- If target names a specific area (e.g., "schema", "processing", "MOC structure"): focus analysis on that area
- If target is empty: run full-system analysis across all dimensions
- If target is `--dry-run`: run analysis but do not offer implementation

**Execute these phases sequentially:**

1. Locate system files and detect platform
2. Read derivation record for design intent
3. Analyze health data (recent report or live check)
4. Scan for friction patterns across operational surfaces
5. Consult research to ground evidence in specific claims
6. Generate 3-5 ranked recommendations with full evidence chains
7. Present to user and implement on approval

**START NOW.** Reference below defines the seven-phase workflow.

---

## Philosophy

**Evidence beats intuition. Research beats habit.**

Every rule in the context file was a hypothesis. Every skill workflow was a design choice. Hypotheses need testing against operational reality. This skill connects three evidence streams — health data, friction patterns, and research claims — to produce specific, actionable recommendations.

You are not guessing what might help. You are diagnosing what IS happening (health + friction) and prescribing what research says SHOULD happen. Every recommendation traces to specific evidence. "I think this would be better" is not a recommendation. "Health shows 12 orphans, friction log shows repeated orphan complaints, research claim [[orphan notes decay faster than connected ones]] supports adding a condition-triggered reweave pass" — THAT is a recommendation.

**The 25% meta-work budget:** In a 60-minute session, at most 15 minutes should be spent on system evolution. If a recommendation estimates >15 minutes to implement, the recommendation should be "defer to next session." The system serves the work, not the other way around.

**INVARIANT: Architect NEVER auto-implements.** Every recommendation requires explicit user approval before any files are modified. This prevents the cognitive outsourcing failure mode — the human must remain in the judgment loop for system evolution.

---

## PHASE 1: Locate

Automated. No user interaction needed.

Detect the platform and find the system's key files:

```
Check filesystem:
  .claude/ directory exists         -> platform = "claude-code"
  Neither                           -> platform = "minimal"
```

Locate these files (paths vary by domain vocabulary):

| File Type | What To Find | Typical Locations |
|-----------|-------------|-------------------|
| Context file | System methodology and rules | CLAUDE.md, README.md |
| Self space | Agent identity and memory | self/identity.md, self/methodology.md, self/goals.md |
| Ops directory | Operational infrastructure | ops/derivation.md, ops/config.yaml, ops/sessions/, ops/observations/, ops/health/ |
| Notes directory | Primary knowledge directory | {vocabulary.notes}/ (may be domain-named: reflections/, concepts/, etc.) |
| Queue system | Pipeline state | ops/queue/queue.yaml or ops/queue/queue.json |
| Templates | Note schemas | ops/templates/ or templates/ |
| Methodology | Learned patterns | ops/methodology/ |

**If `ops/derivation.md` does not exist:** Warn the user: "No derivation record found. Recommendations will be based on current state analysis only, without historical context of design decisions."

**If `ops/config.yaml` does not exist:** Warn: "No config file found. Using observed behavior to infer current configuration."

Record all file locations for use in subsequent phases.

---

## PHASE 2: Read Derivation

Read `ops/derivation.md` to understand the system's original design intent. This is the baseline against which drift is measured.

**Extract from derivation:**

| Element | What To Look For | Why It Matters |
|---------|-----------------|----------------|
| Dimension positions | The 8 configuration dimensions and their derived values | Baseline for drift detection |
| Conversation signals | What the user said that drove each choice | Understanding original intent |
| Personality | Warmth, formality, opinionatedness, emotional awareness | Voice consistency check |
| Vocabulary mapping | Universal-to-domain term translations | Output must use domain language |
| Coherence validation | What constraints were active at derivation time | Know which constraints to re-check |
| Failure mode risks | Which failure modes were flagged as HIGH risk | Prioritize monitoring these |

Also read `ops/config.yaml` — this is the live operational config that may have drifted from derivation. Compare dimension positions between derivation and config:

```
For each of the 8 dimensions:
  derivation_value = [from ops/derivation.md]
  config_value = [from ops/config.yaml]
  drifted = derivation_value != config_value
```

Record any drift for Phase 6. Drift is not inherently bad — it may represent healthy evolution. But UNRECOGNIZED drift creates incoherence.

If a specific focus area was requested ($ARGUMENTS), note which
knowledge-guideSubagent

Proactive methodology guidance agent. Monitors note creation and provides real-time quality advice. Suggests connections, flags quality issues, recommends MOC updates. Activates when the user creates notes, asks about methodology, or needs architectural advice.

graphSkill

Interactive knowledge graph analysis. Routes natural language questions to graph scripts, interprets results in domain vocabulary, and suggests concrete actions. Triggers on "/graph", "/graph health", "/graph triangles", "find synthesis opportunities", "graph analysis".

learnSkill

Research a topic and grow your knowledge graph. Uses Exa deep researcher, web search, or basic search to investigate topics, files results with full provenance, and chains to processing pipeline. Triggers on "/learn", "/learn [topic]", "research this", "find out about".

nextSkill

Surface the most valuable next action by combining task stack, queue state, inbox pressure, health, and goals. Recommends one specific action with rationale. Triggers on "/next", "what should I do", "what's next".

pipelineSkill

End-to-end source processing -- seed, reduce, process all claims through reflect/reweave/verify, archive. The full pipeline in one command. Triggers on "/pipeline", "/pipeline [file]", "process this end to end", "full pipeline".

ralphSkill

Queue processing with fresh context per phase. Processes N tasks from the queue, spawning isolated subagents to prevent context contamination. Supports serial, parallel, batch filter, and dry run modes. Triggers on "/ralph", "/ralph N", "process queue", "run pipeline tasks".

reduceSkill

Extract structured knowledge from source material. Comprehensive extraction is the default — every insight that serves the domain gets extracted. For domain-relevant sources, skip rate must be below 10%. Zero extraction from a domain-relevant source is a BUG. Triggers on "/reduce", "/reduce [file]", "extract insights", "mine this", "process this".

refactorSkill

Plan vault restructuring from config changes. Compares config.yaml against derivation.md, identifies dimension shifts, shows restructuring plan, executes on approval. Triggers on "/refactor", "restructure vault".