refactor

Solid

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".

Code & Development 3,381 stars 218 forks Updated 3 months ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
100
Recency 20%
50
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Runtime Configuration (Step 0 — before any processing) Read these files to configure domain-specific behavior: 1. **`ops/derivation-manifest.md`** — vocabulary mapping, dimension positions, 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 2. **`ops/config.yaml`** — current live configuration (the "after" state) 3. **`ops/derivation.md`** — original derivation record (the "before" state) If these files don't exist, report error: "Cannot refactor without both ops/config.yaml and ops/derivation.md. These files establish the baseline and current configuration." --- ## EXECUTE NOW **INVARIANT: /refactor never executes without approval.** The plan is always shown first. **Target: $ARGUMENTS** Parse immediately: - If target is empty: detect ALL config changes and plan restructuring - If target names a specific dimension (e.g., "granularity", "organization"): focus on that dimension only - If target is `--dry-run`: show plan without asking for approval **Execute these phases:** 1. Detect changes between config.yaml and derivation.md 2. Plan restructuring for each changed dimension 3. Show the plan with affected artifacts and risk assessment 4. Execute on approval (unless --dry-run) 5. Validate post-restructuring **START NOW.** Reference...

Details

Author
agenticnotetaking
Repository
agenticnotetaking/arscontexta
Created
3 months ago
Last Updated
3 months ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

refactor

Plans and executes a refactoring with safety checks by delegating to the planner and code-reviewer agents, then iterating implementation + review up to three rounds. Use when (1) the user runs `/refactor {target}` directly to refactor a specific function, file, or pattern, (2) refactoring is invoked inside a ticket workflow with `ticket-dir={dir-name}` so the review artifact lands at `{ticket-dir}/quality-refactor-{n}.md`, or (3) the user wants the refactor protected by a `backup/pre-refactor-{timestamp}` branch and a bounded review loop. Use only when the user explicitly asks to refactor code. Triggers on "/refactor", "refactor code", "restructure", "extract method", "rename", "clean up".

1 Updated today
aimsise
Code & Development Listed

refactor-plan-pro

Build a repository-grounded refactor operating plan with evidence, dependency-aware tracks, hard release gates, and rollback discipline.

0 Updated 2 months ago
yurirxmos
Code & Development Listed

hv-refactor

Run a full architectural refactor cycle — explores the codebase for friction, categorizes dependencies, designs competing approaches for structural changes, then fixes everything with parallel subagents. Use when you want to find and fix architectural issues.

0 Updated 1 weeks ago
l4ci
Code & Development Listed

refactor

Safe, verified refactoring with regression testing at each step. Identify targets, plan transformation, execute incrementally. Triggers: "refactor", "restructure", "extract", "rename", "move", "simplify", "reduce complexity", "clean up", "decompose".

375 Updated today
boshu2
Code & Development Listed

refactor

Safely restructure code in an isolated git worktree with test-preserved, incremental transformations

11 Updated today
bjornjee