wikiskill
Skill18 starsChanged 12 days agoApache-2.0View on GitHub
Executes autonomous closed-loop agent skill evolution, trace diagnosis, refinement, and optimization using Google Research's WikiSkill framework (arXiv:2608.27454). Use when the user invokes /wikiskill or /evolve-skill, asks to evolve, optimize, improve, debug, or refine a skill, or after observing tool failures, user corrections, or sub-optimal agent trajectories. Don't use for ingesting domain documents into the Obsidian Vault (use ingest) or checking markdown frontmatter links (use vault-lint).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ranjithrajv/wikiskilltheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ranjithrajv/wikiskill★ 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 repository10 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- distill-sessionSkill
- ingestSkill
- knowledge-compilerSkill
- vault-correctSkill
- vault-graphSkill
- vault-lintSkill
- vault-pullSkill
- vault-querySkill
- vault-shareSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
Run the trace analyzer to extract tool errors, user corrections, and structured diff-only candidate guardrails (written outside the vault …
- Very specific: line 67
Create or update a persistent pattern dossier at: ${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/wiki/patterns/<error_pattern_name>.md
- Very specific: line 88
Read the target skill (e.g.
- Very specific: line 89
Read ${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/wiki/skill-impact.md to review prior accepted and rejected proposals (avoiding previously …
- Very specific: line 108
Add new pattern notes to ${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/index.md.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
🧬 WikiSkill: Autonomous Agent Skill Evolution (/wikiskill)
Status: Stable in v1.1+ (see
STABILITY.md).
This skill implements the Google Research WikiSkill framework (Tang et al., 2026) to discover, compile, and evolve modular procedural skills (SKILL.md) using a three-layer architecture, on-demand ReAct proposing, and asymmetric rollback gating.
🚀 Triggers & Commands
/wikiskill <target_skill_or_tool>or/evolve-skill <target_skill>- Natural language triggers:
- "Evolve our ingest skill based on recent PDF runs"
- "Optimize the google-antigravity-sdk skill to handle local models better"
- "Refine our chrome-extensions skill after recent WebExtension errors"
- "Improve skill based on the latest conversation trace"
🏛 The 4-Agent Evolutionary Loop
┌─────────────────────────────────────────────────────────────────────────────┐
│ WIKISKILL 4-AGENT EVOLUTIONARY LOOP │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ 1. Trace Ingestion (Layer 1: Raw Traces) │
│ Parse transcript.jsonl using analyze_trace.py to extract tool errors. │
│ │ │
│ ▼ │
│ 2. Wiki Compilation (Layer 2: Persistent Knowledge) │
│ Diagnose root causes & compile into ObsidianVault/wiki/patterns/*.md │
│ │ │
│ ▼ │
│ 3. ReAct Skill Proposer (Layer 3: Candidate Directives) │
│ Read wiki/index.md, impact ledger & fetch patterns on demand. │
│ Draft minimal, atomic patch P_k for target SKILL.md. │
│ │ │
│ ▼ │
│ 4. Validation Gating & Asymmetric Rollback │
│ Run test tasks (Inference agent isolated from wiki). │
│ ├── IF PASS: Retain SKILL.md and log "Accepted" in skill-impact.md │
│ └── IF FAIL: Roll back SKILL.md, but log "Rejected" in skill-impact.md │
│ │
└─────────────────────────────────────────────────────────────────────────────┘⚡ Execution Workflow
Step 1: Trace Ingestion & Diff-Only Proposals (analyze_trace.py)
- Locate recent conversation transcripts in
<appDataDir>/brain/<conversation-id>/.system_generated/logs/transcript.jsonlor hook telemetry in${XDG_STATE_HOME:-~/.local/state}/knowledge-compiler/logs/error_traces.jsonl. - Run the trace analyzer to extract tool errors, user corrections, and structured diff-only candidate guardrails (written outside the vault under
$XDG_STATE_HOME/knowledge-compiler/proposalswith0700/0600permissions and secret redaction):python3 <plugin_dir>/skills/wikiskill/scripts/analyze_trace.py <path_to_transcript.jsonl> --propose --json - Inspect
latest_proposals.md/latest_proposals.jsonto identify recurring error signatures, parameter schema violations, or procedural ambiguities.
Step 2: Compile Pattern Dossier (wiki/patterns/)
- Create or update a persistent pattern dossier at:
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/wiki/patterns/<error_pattern_name>.md - Include OKF v0.2 frontmatter:
--- title: "Pattern: Error or Strategy Name" type: concept tags: - skill-evolution/pattern status: stable sources: - "[[wiki/sources/...]]" aliases: [] --- - Document:
- Observed Failure Trace: Tool call arguments, error messages, and incorrect assumptions.
- Root Cause: Why the model failed (missing flag, incorrect schema, context truncation).
- Corrective Strategy: The verified, minimal procedural directive to prevent recurrence.
Step 3: On-Demand Skill Proposing
- Read the target skill (e.g.
<plugin_dir>/skills/<skill>/SKILL.mdor.agents/skills/<skill>/SKILL.md). - Read
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/wiki/skill-impact.mdto review prior accepted and rejected proposals (avoiding previously failed approaches). - Draft a clean, atomic patch $P_k$ to a candidate copy of
SKILL.md(never auto-mutating instruction files unattended).
Step 4: Deterministic Validation Gating & Asymmetric Rollback (vault-wikiskill-eval)
- Execute offline Asymmetric Rollback Evaluation against deterministic test cases:
python3 <plugin_dir>/scripts/wikiskill_eval.py \ --baseline-skill <baseline_SKILL.md> \ --candidate-skill <candidate_SKILL.md> \ --eval-suite <eval_suite.json> \ --vault "${OBSIDIAN_VAULT_PATH:-$HOME/ObsidianVault}" \ --apply-impact --json - Failure Mode Isolation:
wikiskill_eval.pyrejects candidate skills with invalid frontmatter, exceeded byte budgets, or[[wiki/...]]links insideSKILL.md(no background wiki cheating). - Asymmetric Decision:
- If
decision == "ACCEPTED"(exit 0): Present the validated diff to the user for explicit approval before applying to the targetSKILL.md;--apply-impactappends anAcceptedledger record towiki/skill-impact.mdvia SHA-256 CAS. - If
decision == "REJECTED"(exit 1): Discard the candidate patch (keeping baseline $S_{k-1}$ intact).--apply-impactappends aRejectedentry towiki/skill-impact.mdwith the diff and regression reason. The wiki record is never rolled back.
- If
Step 5: Update Master Index & Vault Log
- Add new pattern notes to
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/index.md. - Append entry to
${OBSIDIAN_VAULT_PATH:-~/ObsidianVault}/log.md:## [YYYY-MM-DD] evolve | <Target Skill Name>
📚 Reference Assets
- Asymmetric Rollback Protocol: references/rollback_protocol.md
- Trace Analyzer: scripts/analyze_trace.py
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
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.

