athola/claude-night-market/metacognitive-self-mod
Claude Code and agent skill by athola/claude-night-market
- community
Checking that the SKILL.md file is still in the repository.
Analyze and improve the improvement process. Use for detecting regressions and meta-optimization.
Install
npx vskill@latest install athola/claude-night-market/metacognitive-self-modSKILL.md
Metacognitive Self-Modification
Overview
Analyze the effectiveness of past skill improvements and refine the improvement process itself. This is the core innovation from the Hyperagents paper: not just improving skills, but improving HOW skills are improved.
Context Triggers (auto-invocation)
This skill should be invoked automatically when:
- Regression detected: The homeostatic monitor finds
a skill's evaluation window ended in pending_rollback_review status. The improvement made things worse, and we need to understand why.
- Low effectiveness rate: When
ImprovementMemory.get_effective_strategies() vs get_failed_strategies() shows effectiveness below 50%, the improvement process itself needs refinement.
- Degradation despite improvements: When
PerformanceTracker.get_improvement_trend() returns negative for a skill that was recently improved.
- Periodic check: After every 10 improvement cycles
(tracked via outcome count in ImprovementMemory).
Hook integration
The homeostatic monitor emits "improvement_triggered": true when a skill crosses the flag threshold. At that point, before dispatching the skill-improver, check if metacognitive analysis is warranted:
When To Use (Manual)
- After a batch of skill improvements to assess what
worked
- When improvement outcomes show regressions
- Periodically (monthly) to refine improvement strategy
- When the skill-improver agent seems ineffective
When NOT To Use
- Routine skill improvements (use skill-improver directly)
- First-time skill creation (use skill-authoring)
Workflow
Step 1: Load improvement data
Read improvement memory and performance tracker data:
Load the JSON files using Python:
Step 2: Classify improvement outcomes
For each improvement outcome in memory, classify:
- Effective:
after_score - before_score >= 0.1 - Neutral:
-0.1 < improvement < 0.1 - Regression:
after_score < before_score
Step 3: Extract meta-patterns
Analyze WHAT types of improvements succeed vs fail:
Success patterns to look for:
- Adding error handling (reduces failure rate)
- Adding examples (improves user ratings)
- Adding quiet/verbose modes (reduces friction)
- Simplifying workflow steps (reduces duration)
Failure patterns to look for:
- Over-engineering (adding too many options)
- Breaking existing workflows (regression)
- Adding complexity without validation
- Token budget overflow from verbose additions
For each pattern found, record as a causal hypothesis:
Step 4: Analyze improvement trends
Use PerformanceTracker to identify:
- Skills with sustained improvement (positive trend)
- Skills with degradation despite improvement attempts
- Domains where improvements are most effective
Step 5: Generate strategy recommendations
Based on the meta-analysis, generate recommendations for the skill-improver:
- Priority formula adjustments: If certain issue
types have higher improvement success rates, weight them higher.
- Approach selection: If "add error handling" has 85%
success vs "restructure workflow" at 30%, bias toward error handling.
- Threshold adjustments: If improvements below
priority 3.0 consistently fail, raise the minimum threshold.
- Avoidance rules: Document anti-patterns to avoid
in future improvements.
Step 6: Store meta-insights
Record all findings back into ImprovementMemory under the special _meta skill ref:
Step 7: Update skill-improver strategy
If significant meta-insights are found, propose concrete modifications to the skill-improver agent:
- Update priority weights in the priority formula
- Add avoidance rules for known anti-patterns
- Adjust thresholds based on empirical data
- Add new improvement patterns that proved effective
Important: Propose changes, do not auto-apply. The user must approve modifications to the improvement process.
Output
Related
abstract:skill-improver- The agent this skill analyzes
and proposes modifications for
abstract:skills-eval- Evaluation framework whose
criteria could be refined by meta-insights
abstract:aggregate-logs- Data source for improvement
metrics
Exit Criteria
- [ ] The metacognitive report lists total outcomes analyzed (effective / regression / neutral
counts) sourced from ~/.claude/skills/improvement_memory.json.
- [ ] At least one causal hypothesis is recorded under
skill_ref: "_meta"in
improvement_memory.json with cited evidence (skill refs and score deltas).
- [ ] Any Tier 3 strategy recommendation (modify skill-improver priority weights, add avoidance
rules, adjust thresholds) is presented as a proposal requiring explicit user approval before any change is applied.
- [ ] If effectiveness rate is below 50% across 5+ outcomes, this condition is surfaced as the
primary trigger reason in the report output.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/abstract/skills/metacognitive-self-mod/SKILL.md
Popularity
- Repository stars
- 340
- Repository forks
- 37
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/athola/claude-night-market/metacognitive-self-mod)