Plan vault restructuring from config changes. An agent skill from agenticnotetaking/arscontexta.

MITAuto-check: warningsDevelopment

Install Refactor

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add agenticnotetaking/arscontexta --skill refactor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agenticnotetaking/arscontexta refactor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agenticnotetaking/arscontexta.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill-sources/refactor .claude/skills/refactor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
refactor
GitHub stars
3.5k
Token cost
~4.3k tokens
SKILL.md length
1,617 words
Files
2
Skills in repo
25
Repo updated
First seen
Licence
MIT

At a glance

Plan vault restructuring from config changes. An agent skill from agenticnotetaking/arscontexta.

  • Works in 5 steps: Detect Changes → Plan Restructuring → Show Plan → …
  • Restructure vault
  • SKILL.md covers Runtime Configuration (Step 0…, EXECUTE NOW, Philosophy and Phase 1: Detect Changes, plus 5 more sections
  • Calls git

What it does

Refactor is an agent skill from agenticnotetaking/arscontexta. 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".

Its SKILL.md is about 4.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `skill.json`).

It sits in Development, covering Refactoring. The repository describes itself as: Claude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as… The licence is MIT.

When your agent uses it

  • Restructure vault
  • Tasks that involve Refactoring

Example prompts

  • “/refactor”
  • “restructure vault”
  • “/refactor”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob, Bash

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Detect Changes
  2. Plan Restructuring
  3. Show Plan
  4. Execute on Approval
  5. Validate

What it can do on your machine

Read from SKILL.md and the folder at commit 2acfd5c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Refactor loads about 4.3k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 1,617 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~4.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningTells the agent its actions are pre-authorized / not to stop for confirmationSKILL.md:211
    **If `--dry-run`:** Stop here. Do not ask for approval.
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Grep, Glob, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from agenticnotetaking/arscontexta at commit 2acfd5c, republished under its MIT licence (© agenticnotetaking). 1,617 words, ~4,313 tokens.

Download SKILL.mdSave it as .claude/skills/refactor/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
refactor
description
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".
allowed-tools
Read, Write, Edit, Grep, Glob, Bash
version
1.0
generated_from
arscontexta-v1.6
user-invocable
true
context
fork
argument-hint
[dimension|--dry-run] — focus on specific dimension or preview without approval prompt

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 below defines the workflow.


Philosophy

Configuration changes cascade.

Changing a dimension is not just editing a value in config.yaml. Each dimension affects multiple artifacts — skills, templates, context file sections, hooks, MOC structure. Changing organization from "flat" to "hierarchical" means restructuring the notes directory, updating MOC templates, adjusting navigation references in the context file, and regenerating skills that reference folder structure.

/refactor makes these cascades visible and manages them. Without it, dimension changes create drift: config says one thing, artifacts say another. With it, every change is planned, approved, and validated.

The relationship to /architect: /architect RECOMMENDS changes. /refactor IMPLEMENTS them. /architect analyzes health and friction to propose dimension shifts. When those proposals are approved, /refactor ensures every affected artifact is updated consistently.


Phase 1: Detect Changes

Compare each dimension in ops/config.yaml against the same dimension in ops/derivation.md:

Step 1: Read both files

Read ops/config.yaml and ops/derivation.md fully. Extract the position for each of the 8 dimensions from both.

Step 2: Build comparison table

DimensionDerivation ValueConfig ValueChanged?Drift Type
granularity[val][val][yes/no][aligned/misaligned]
organization[val][val][yes/no][aligned/misaligned]
linking[val][val][yes/no][aligned/misaligned]
processing[val][val][yes/no][aligned/misaligned]
navigation[val][val][yes/no][aligned/misaligned]
maintenance[val][val][yes/no][aligned/misaligned]
schema[val][val][yes/no][aligned/misaligned]
automation[val][val][yes/no][aligned/misaligned]

Step 3: Check feature flags

Also compare feature flags between derivation and config:

FeatureDerivationConfigChanged?
semantic_search[on/off][on/off][yes/no]
processing_pipeline[on/off][on/off][yes/no]
self_space[on/off][on/off][yes/no]
session_capture[on/off][on/off][yes/no]
parallel_workers[on/off][on/off][yes/no]

Step 4: Early exit if no changes

If no changes detected:

--=={ refactor }==--

  No configuration drift detected between config.yaml and derivation.md.
  All dimensions and features match the original derivation.

  If you want to explore changes, run /architect for recommendations
  or edit ops/config.yaml directly, then run /refactor again.

Phase 2: Plan Restructuring

For each changed dimension, determine ALL affected artifacts. This is the cascade analysis.

Dimension-to-Artifact Mapping
ChangeAffected ArtifactsWhat Changes
Granularity shiftNote templates, extraction depth in /reduce, processing skills, context file "Note Design" sectionTemplate body length guidance, extraction granularity settings, composability test thresholds
Organization shiftFolder structure, MOC hierarchy, context file "Folder Architecture" section, hub MOCDirectory layout, MOC tier count, navigation references
Linking shiftSemantic search config, /reflect connection density expectations, context file "Connection Finding" sectionSearch tool availability, link threshold values, discovery layer instructions
Processing shift/reduce depth settings, /reflect pass count, pipeline skills, context file "Processing Pipeline" section, config.yaml processing.depthExtraction thoroughness, connection evaluation depth, chaining mode
Navigation shiftMOC tier structure, hub MOC, context file "MOC" section, note Topics footersNumber of MOC tiers, hub content, navigation instructions
Maintenance shift/health threshold values, condition-based trigger settings, context file maintenance instructionsCheck frequency conditions, stale note thresholds, reweave trigger conditions
Schema shiftTemplates (_schema blocks), validation rules, /validate skill, query scripts, context file "YAML" sectionRequired fields, enum values, validation patterns
Automation shiftHooks (session orient, write validation, inbox processing), skill activation, config.yaml automation sectionWhich hooks are active, automation level references
Artifact Analysis Format

For each affected artifact, specify:

Artifact: [file path]
  Section: [specific section within the file, if applicable]
  Current: [what it says now — quote relevant content]
  Proposed: [what it should say after refactoring]
  Risk: [low | medium | high]
  Reversible: [yes | no — with explanation]
  Content impact: [does this affect existing notes? how many?]
Content Impact Assessment

Some changes affect only infrastructure (skills, templates, context file). Others affect existing content (notes, MOCs):

Change TypeContent ImpactAction Required
Template field additionNew notes get field, old notes don'tAdd field to old notes (schema migration)
Template field removalOld notes have unused fieldRemove field from old notes (optional)
Folder restructureNotes must moveMove files, update all wiki links
MOC tier changeMOC hierarchy restructuredMerge/split MOCs, update Topics footers
Enum value changeOld notes have invalid valuesUpdate values in affected notes

For content-impacting changes:

  • Count affected notes: grep -rl '[old value]' {vocabulary.notes}/*.md | wc -l
  • List specific files that need updating
  • Estimate time for content migration
Interaction Constraint Check

Read ${CLAUDE_PLUGIN_ROOT}/reference/interaction-constraints.md and check:

  1. Hard blocks: Would the new configuration create a combination that WILL fail?

    • Example: atomic granularity + 2-tier navigation at high volume
    • If a hard block is detected: WARN the user and recommend against the change
  2. Soft warns: What friction points does the new configuration create?

    • Example: dense schema + convention-level automation (manual schema enforcement is tedious)
    • If soft warns exist: note them in the plan with compensating mechanisms
  3. Cascade effects: Does changing dimension X create pressure on dimension Y?

    • If cascade detected: include Y in the restructuring plan even if Y did not change in config

Phase 3: Show Plan

Present the complete restructuring plan:

--=={ refactor }==--

Detected [N] dimension changes:

  [dimension]: [old] -> [new]
    Affects:
    - [artifact 1]: [specific change]
    - [artifact 2]: [specific change]
    Content impact: [N] existing {vocabulary.note_plural} need [what]
    Risk: [low/medium/high]

  [dimension]: [old] -> [new]
    Affects:
    - [artifact 1]: [specific change]
    - [artifact 2]: [specific change]
    Content impact: none
    Risk: [low/medium/high]

Interaction constraints:
  - [Hard block | Soft warn | Clean]: [description]

Unchanged (preserved as-is):
  - [list artifacts not affected by changes]

Estimated implementation time: ~[N] minutes
Validation: Will run kernel validation after restructuring.

If --dry-run: Stop here. Do not ask for approval.

Otherwise: Ask: "Proceed with restructuring? (yes / no / adjust)"

Handle responses:

ResponseAction
"yes"Execute Phase 4
"no"Exit without changes
"adjust"Ask what to change, revise plan, re-present

Phase 4: Execute on Approval

Execute changes in strict order to prevent intermediate inconsistency:

4a. Archive Current State

Before making changes, record the current state for rollback reference:

bash
# Log what is about to change
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo "## $DATE: /refactor — [dimensions changed]" >> ops/changelog.md
echo "" >> ops/changelog.md
echo "Changes planned:" >> ops/changelog.md
echo "[list of changes]" >> ops/changelog.md
4b. Regenerate Affected Skills

For each skill affected by the dimension changes:

  1. Read the current skill from the generated skills directory
  2. Consult ${CLAUDE_PLUGIN_ROOT}/reference/ for the latest skill generation approach
  3. Apply vocabulary transformation from derivation-manifest
  4. Apply processing depth settings from the new config
  5. Write the regenerated skill

Skills most commonly affected by dimension changes:

Dimension ChangeSkills to Regenerate
Granularity/reduce, /verify, /validate
Processing/reduce, /reflect, /reweave, /verify, /ralph, /pipeline
Linking/reflect, /reweave
Navigation/reflect (MOC update logic)
Schema/validate, /verify
Automation/ralph, /pipeline (chaining mode)
Maintenance/health
Show full SKILL.md (635 more words)Show less
4c. Update Context File

Edit only the sections affected by changed dimensions. Do NOT rewrite the entire context file.

For each affected section:

  1. Locate the section by heading
  2. Read current content
  3. Generate updated content reflecting new dimension positions
  4. Replace the section using Edit tool
  5. Verify surrounding sections are unchanged
4d. Update Templates

For schema changes:

  1. Read affected templates from ops/templates/ (or templates/)
  2. Update _schema blocks with new required fields, enum values, constraints
  3. Write updated templates
4e. Update Hooks

If automation level changed:

  1. Read current hooks from the hooks directory
  2. Update trigger conditions, threshold values, or active/inactive state
  3. Write updated hooks
4f. Update Derivation Records

After all changes are applied:

  1. Update ops/derivation.md with:

    • New dimension positions
    • Rationale for each change
    • Date of change
    • Reference to /architect recommendation (if applicable)
  2. Update ops/derivation-manifest.md to sync machine-readable config

  3. Update ops/config.yaml to confirm it matches derivation (should already match since config triggered the refactor)

4g. Content Migration (if needed)

If Phase 2 identified content-impacting changes:

  1. Schema migration: Add/remove/rename fields across notes

    bash
    # Example: add a new required field to all notes
    for f in {vocabulary.notes}/*.md; do
      grep -q '^new_field:' "$f" || sed -i '' '/^description:/a\
    new_field: [default value]' "$f"
    done
  2. Folder migration: Move files to new locations

    bash
    # Use git mv to preserve history
    git mv "old/path/file.md" "new/path/file.md"
  3. Link updates: Update all wiki links affected by renames

    bash
    # Use rename script if available
    ops/scripts/rename-note.sh "old name" "new name"
  4. MOC restructuring: Merge/split MOCs as needed

    • For splits: create sub-MOCs, move Core Ideas, update parent
    • For merges: combine Core Ideas, remove redundant MOC, update notes' Topics footers

Phase 5: Validate

Run kernel validation to confirm nothing broke:

Validation Checks
CheckHowPass Criterion
Wiki link resolutionScan for all [[X]] and verify X.md existsZero dangling links
Schema complianceCheck all notes against template _schema blocksAll required fields present, enum values valid
MOC hierarchyVerify hub links to domain MOCs, domains link to topicsAll tiers connected
Session orientSimulate session start — can the context file be loaded?No file-not-found errors
Three-space boundariesCheck notes vs ops vs self boundariesNo content in wrong space
Vocabulary consistencyCheck that skills and context file use updated vocabularyNo stale universal terms
Skill integrityVerify regenerated skills have valid frontmatter and structureAll skills parseable
Validation Report
--=={ refactor complete }==--

  Restructuring applied:
    [dimension]: [old] -> [new] — [N] artifacts updated
    [dimension]: [old] -> [new] — [N] artifacts updated

  Content migration:
    [N] {vocabulary.note_plural} updated with new schema fields
    [N] wiki links updated
    [N] {vocabulary.topic_map_plural} restructured

  Kernel validation: [N]/[N] checks PASS
  [Any warnings or issues]

  Derivation updated: ops/derivation.md
  Changelog updated: ops/changelog.md

If any validation checks fail:

  WARNING: [N] validation checks failed:
    - [check name]: [specific failure]

  Recommended action: [specific fix]
  Rollback guidance: [how to revert if needed]

Edge Cases

No ops/config.yaml or No ops/derivation.md

Cannot refactor without both files. Report error and suggest creating them:

Cannot run /refactor: [missing file] not found.
  - ops/config.yaml is the live configuration
  - ops/derivation.md is the original design baseline
  Both are required to detect dimension shifts.

  Run /setup to create a new system, or manually create the missing file.
Single Dimension Focus

If $ARGUMENTS names a specific dimension:

  1. Only check that dimension for changes
  2. Still check interaction constraints (other dimensions may be affected by cascade)
  3. Only restructure artifacts affected by that dimension
No Changes Detected

Report clean state and exit (see Phase 1 early exit).

Hard Block Detected

If an interaction constraint hard block is detected:

  HARD BLOCK: The proposed configuration [dimension X = val, dimension Y = val]
  creates a combination that will fail because [reason from interaction-constraints.md].

  Recommended: Either change [dimension X] back to [safe value] or also change
  [dimension Y] to [compensating value].

  Cannot proceed with current configuration. Adjust and re-run /refactor.

Do NOT proceed with restructuring when a hard block is active.

Large Content Migration (100+ notes)

For large migrations:

  1. Show the count and estimated time
  2. Offer batch processing: "This affects 150 notes. Process all at once or in batches of 50?"
  3. For batch processing, validate after each batch before continuing
Feature Flag Changes

Feature flag changes (semantic_search, self_space, etc.) may require:

  • Creating new directories (self/ for self_space on)
  • Installing tools (qmd for semantic_search on)
  • Removing hooks (for automation off)

Handle each feature flag change specifically:

FlagOn -> OffOff -> On
semantic_searchRemove search references from skills, update context fileAdd search config, update skills with search integration
self_spaceArchive self/ contents, remove self/ referencesCreate self/ structure, generate identity files
session_captureINVARIANT — cannot disableAlready on (invariant)
parallel_workersUpdate /ralph to serial-only modeVerify tmux available, update /ralph for parallel mode
No ops/derivation-manifest.md

Use universal vocabulary. Refactoring still works but vocabulary transformation is skipped.

© agenticnotetaking, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skill-sources/refactor of agenticnotetaking/arscontexta.

  • SKILL.md
  • skill.json

Open the folder on GitHubat commit 2acfd5c

Compare with similar skills

Refactor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Refactor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refactor this skillagenticnotetaking/arscontexta3.5k—~4.3kAutomated safety check: WarnMIT
Guidelinesakash-network/node1.1k22 repos~577Automated safety check: PassMIT
Component Refactoringlangflow-ai/langflow156k—~3.5kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman41k—~2.6kAutomated safety check: PassGPL-3.0
ast-grep Structural Searchcode-yeongyu/oh-my-openagent70k—~3.3kAutomated safety check: PassMIT
Systematic Code Refactoringluongnv89/claude-howto42k—~3kAutomated safety check: PassMIT

Similar skills

  • Guidelines

    akash-network/node

    Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.

    1.1k GitHub starsUsed in 22 repos~577 tokens
    DevelopmentAuto-check passed
  • Component Refactoring

    langflow-ai/langflow

    Refactor high-complexity React components in Langflow frontend.

    156k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    41k GitHub stars~2.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • ast-grep Structural Search

    code-yeongyu/oh-my-openagent

    Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.

    70k GitHub stars~3.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Codex

    skills-directory/skill-codex

    A skill your agent uses when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing

    1.5k GitHub starsUsed in 3 repos~1.8k tokens
    DevelopmentAuto-check passed

More from agenticnotetaking/arscontexta

All 25 skills in this repo
  • Graph

    agenticnotetaking/arscontexta

    Interactive knowledge graph analysis. An agent skill from agenticnotetaking/arscontexta.

    3.5k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check: notes
  • Learn

    agenticnotetaking/arscontexta

    Research a topic and grow your knowledge graph. An agent skill from agenticnotetaking/arscontexta.

    3.5k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check: notes
  • Recommend

    agenticnotetaking/arscontexta

    Get research-backed architecture advice for your knowledge system.

    3.5k GitHub starsUsed in 1 repo~5.1k tokens
    Auto-check passed
  • Stats

    agenticnotetaking/arscontexta

    Show vault statistics and knowledge graph metrics. An agent skill from agenticnotetaking/arscontexta.

    3.5k GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check: notes
  • Help

    agenticnotetaking/arscontexta

    Contextual guidance and command discovery. An agent skill from agenticnotetaking/arscontexta.

    3.5k GitHub stars~3.3k tokensUpdated 7 mo ago
    Auto-check: notes
  • Next

    agenticnotetaking/arscontexta

    Surface the most valuable next action by combining task stack, queue state, inbox pressure, health, and goals.

    3.5k GitHub stars~4.9k tokensUpdated 7 mo ago
    Auto-check: notes

Categories

Questions about Refactor

What does Refactor do?

Plan vault restructuring from config changes. An agent skill from agenticnotetaking/arscontexta. Refactor is an agent skill from agenticnotetaking/arscontexta. Plan vault restructuring from config changes.

When should I use Refactor?

Refactor fits situations like: restructure vault; tasks that involve Refactoring.

How do I install Refactor in Claude Code?

Run `npx skills add agenticnotetaking/arscontexta --skill refactor -a claude-code`. Or copy the skill folder (skill-sources/refactor in agenticnotetaking/arscontexta) into .claude/skills/refactor in your project. Claude Code loads it when a task matches its description.

How do I install Refactor in Codex?

Run `npx skills add agenticnotetaking/arscontexta --skill refactor -a codex`. Or copy the skill folder (skill-sources/refactor in agenticnotetaking/arscontexta) into .agents/skills/refactor in your project. Codex loads it when a task matches its description.

Can I use Refactor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agenticnotetaking/arscontexta --skill refactor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refactor, .gemini/skills/refactor, .github/skills/refactor and .opencode/skills/refactor in your project.

What does Refactor need to run?

Going by SKILL.md and its folder, Refactor needs the command-line tools its instructions call (git). Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob, Bash.

Does Refactor access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Refactor safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way.

What licence does Refactor use?

Refactor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Refactor use?

About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Refactor?

Skills that share tags, products or a category with Refactor: Guidelines (akash-network/node, 1.1k stars), Component Refactoring (langflow-ai/langflow, 156k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 41k stars) and ast-grep Structural Search (code-yeongyu/oh-my-openagent, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Refactor?

agenticnotetaking (a GitHub organization) maintains it in agenticnotetaking/arscontexta, which has 3,492 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on February 24, 2026.

Source: agenticnotetaking/arscontexta on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.