agentleFS
SireJeffSireJeff/k0ntext/skills/context-optimize/SKILL.md

context-optimize

Skill8 starsChanged 9 months agoMITView on GitHub

Context Optimization - Orchestrate RPI workflow TODO generation with interactive scoping

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. Joonghyun-Lee-Frieren/oh-my-antigravity★ 214same name
    2. Joonghyun-Lee-Frieren/oh-my-gemini-cli★ 214same name
    3. ibahgat/oh-my-iflow★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When invoked, orchestrate context engineering optimization with interactive scoping:

    line 7
  2. Distinctive:

    Ask up to 4 multiple choice questions to define scope

    line 12
  3. Distinctive:

    Check workflow file coverage and accuracy

    line 18
  4. Distinctive:

    Verify index file completeness

    line 19
  5. Distinctive:

    Create actionable TODO with research, plan, implement phases

    line 24
  6. Distinctive:

    After completion, execute the generated TODO list:

    line 82

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Context Engineering: Optimization Orchestrator

When invoked, orchestrate context engineering optimization with interactive scoping:

Process

  1. Interactive Scoping (if no --auto flag)
    • Ask up to 4 multiple choice questions to define scope
    • Questions cover: optimization focus, codebase areas, enhancement types, priority order
    • Skip questions if --scope or --auto flag provided
  2. Context System Audit
    • Analyze .claude/ directory structure
    • Check workflow file coverage and accuracy
    • Verify index file completeness
    • Identify orphaned or outdated files
    • Assess agent and command coverage gaps
  3. Generate RPI TODO List
    • Create actionable TODO with research, plan, implement phases
    • Save to .claude/plans/active/context-optimization_plan.md
    • Include specific commands for each task
  4. Redundant File Detection
    • Find files not referenced by any index
    • Identify duplicate or overlapping content
    • Flag outdated files with stale line references
    • Report empty placeholder files
  5. Enhancement Recommendations
    • Suggest new specialized agents based on codebase patterns
    • Recommend workflow commands for common tasks
    • Identify undocumented workflows needing documentation

Scoping Questions (Max 4)

Q1: Optimization Focus

  • A) Functionalize the entire context engineering system
  • B) Update outdated documentation and line references
  • C) Identify and remove redundant context files
  • D) Discover enhancement opportunities (new agents/commands)

Q2: Codebase Coverage

  • A) Core business logic
  • B) API/External integrations
  • C) Database/Data layer
  • D) All areas equally

Q3: Enhancement Preferences

  • A) New specialized agents for specific domains
  • B) New workflow commands for common tasks
  • C) Improved documentation structure
  • D) Better cross-referencing and navigation

Q4: TODO Priority Order

  • A) Quick wins first (< 30 min each)
  • B) High impact first (regardless of effort)
  • C) By workflow area (grouped logically)
  • D) By dependency order (foundational first)

Context Budget

  • Target: 20% of 200k tokens (40k)
  • Output: TODO checklist + recommendations

Output

  • TODO checklist saved to .claude/plans/active/context-optimization_plan.md
  • Audit findings in .claude/research/active/context-audit_research.md

Arguments

  • $ARGUMENTS can include:
    • --auto - Use intelligent defaults, skip questions
    • --scope documentation - Focus on docs only
    • --scope agents - Focus on agent gaps
    • --scope workflows - Focus on workflow coverage
    • --scope cleanup - Focus on redundant file removal

Next Steps

After completion, execute the generated TODO list:

  1. /rpi-research [first-research-task]
  2. /rpi-plan [first-plan-task]
  3. /rpi-implement [first-impl-task]
  4. /validate-all

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.