Agent skill

Agent Wiki Synthesize Skill

by AgentToolkit in AgentToolkit/altk-evolve

Read a normalized Claude Code trajectory JSON and produce a wiki-resident SKILL.md page that future agents can invoke.

Apache-2.0Auto-check passedKnowledge Management

Install Agent Wiki Synthesize Skill

skills CLI
$ npx skills add AgentToolkit/altk-evolve --skill agent-wiki-synthesize-skill -a claude-code

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

GitHub CLI
$ gh skill install AgentToolkit/altk-evolve agent-wiki-synthesize-skill --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/AgentToolkit/altk-evolve.git skills-src && mkdir -p .claude/skills && cp -r skills-src/explorations/agent-wiki/skills/agent-wiki-synthesize-skill .claude/skills/agent-wiki-synthesize-skill && 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
agent-wiki-synthesize-skill
GitHub stars
122
Token cost
~2.5k tokens
SKILL.md length
1,073 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
Apache-2.0

At a glance

Read a normalized Claude Code trajectory JSON and produce a wiki-resident SKILL.md page that future agents can invoke.

  • Works in 7 steps: Resolve input files → Glance at existing skills → For each trajectory → …
  • A trajectory captured a non-trivial successful workflow worth promoting from a free-text guideline to an executable
  • SKILL.md covers Overview, When To Use, Input and Workflow, plus 3 more sections
  • Calls uv

What it does

Agent Wiki Synthesize Skill is an agent skill from AgentToolkit/altk-evolve. Read a normalized Claude Code trajectory JSON and produce a wiki-resident SKILL.md page that future agents can invoke. Use when a trajectory captured a non-trivial successful workflow worth promoting from a free-text guideline to an executable, callable artifact.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering LLM wikis. The repository describes itself as: Self improving agents through iterations. The licence is Apache-2.0.

When your agent uses it

  • A trajectory captured a non-trivial successful workflow worth promoting from a free-text guideline to an executable
  • Callable artifact

Example prompts

  • “/agent-wiki-synthesize-skill”

Requirements

  • Python 3

Workflow steps

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

  1. Resolve input files
  2. Glance at existing skills
  3. For each trajectory
  4. Decide a skill name and trigger
  5. Synthesize a JSON object
  6. Pipe the JSON to the helper
  7. Refresh indexes

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

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

  • Network

    No URLs in SKILL.md. Its commands use uv, 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

Agent Wiki Synthesize Skill loads about 2.5k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 1,073 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 AgentToolkit/altk-evolve at commit 8deea81, republished under its Apache-2.0 licence (© AgentToolkit). 1,073 words, ~2,490 tokens.

Download SKILL.mdSave it as .claude/skills/agent-wiki-synthesize-skill/SKILL.md (or your agent's skills folder).
name
agent-wiki-synthesize-skill
description
Read a normalized Claude Code trajectory JSON and produce a wiki-resident SKILL.md page that future agents can invoke. Use when a trajectory captured a non-trivial successful workflow worth promoting from a free-text guideline to an executable, callable artifact.

Agent Wiki — Synthesize Skill

Overview

Promote a successful workflow from a saved trajectory into an executable agent skill living inside a wiki at <wiki>/skills/<slug>/SKILL.md. The output is the procedural counterpart to agent-wiki-extract-guidelines's declarative pages: a guideline tells a future agent what to do; a synthesized skill is a structured workflow page the future agent can read and execute directly, optionally invoking sibling scripts via Bash.

This is the per-trajectory promote-to-procedural pass of the agent-wiki family. Run it after one or more trajectories captured the same recipe and you want future agents to invoke that recipe instead of re-deriving it.

Ingesting a whole batch end-to-end? Prefer the agent-wiki-ingest skill, which sequences summarize → extract → synthesize → consolidate → catalog. It runs this skill at the right point (after extraction, before consolidation) and guarantees the consolidation pass that clusters the surviving atomics is never skipped. Use this standalone skill only to promote a single trajectory's workflow.

When To Use

Use this skill when a trajectory captured:

  • A non-trivial successful workflow — multiple tool calls, with at least one custom script or non-obvious sequence — that produced the answer after trial-and-error. The eventual happy path is worth saving.
  • A reusable command sequence or script the agent wrote. Particularly if the agent had to reconstruct it across multiple attempts.
  • A pattern a future agent will hit on a similar-but-not-identical task — parsing a binary format, walking a structured directory, reaching a specific tool fallback.

Skip this skill — let agent-wiki-extract-guidelines cover the case with a guideline alone — when:

  • The workflow is a single trivial command (grep -c TODO ...).
  • The path embeds secrets, tokens, or one-off user inputs.
  • A skill with the same trigger already exists in <wiki>/skills/.
  • The session ended without reaching a clear successful answer.

Input

A path that is either:

  • a normalized trajectory JSON file
  • a directory of such files

Default if no path is given: trajectories/normalized.

Workflow

Step 1: Resolve input files

Use Glob to enumerate JSON files.

Step 2: Glance at existing skills

Glob <wiki>/skills/*/SKILL.md to see what's already there. Don't re-author a skill with the same name unless the trajectory's recipe materially refines or generalizes it.

Step 3: For each trajectory

Read the file. The fields you need:

  • session_id, agent, model
  • openai_chat_completion.messages — the source of truth for what happened

Walk the messages and identify:

3a. The successful workflow

The final, working tool sequence — the one that produced the answer. Distinguish it from the trial-and-error leading up to it. Capture the exact tool calls, scripts, or command sequences verbatim.

3b. The trial-and-error context

What didn't work — the dead ends. You'll use this to author a trigger description so a future agent knows when to reach for this skill instead of the failing approaches.

3c. Environment assumptions

What was missing or had to be installed (no exiftool, pip install Pillow needed, etc.).

If no clearly successful workflow is in the trajectory, output zero skills for it and continue.

Step 4: Decide a skill name and trigger

The skill name must be:

  • kebab-case, action-oriented (extract-jpeg-exif-camera-optics, parse-png-dimensions, walk-zip-central-directory)
  • specific enough that a future agent reading just the name can guess what it does
  • not a duplicate of any existing skill in <wiki>/skills/

The skill description (one line in frontmatter) describes the task, not the trajectory. Bad: "Solves the lens-model question from session 07d60d9f." Good: "Read camera-optics fields (lens model, focal length, aperture, ISO) from JPEG EXIF using stdlib struct when system EXIF tools are unavailable."

The trigger (frontmatter + ## When To Use) describes the broad task context, not the narrow original request.

Step 5: Synthesize a JSON object
json
{
  "name": "<kebab-case-name>",
  "description": "<one-line task description>",
  "trigger": "<situational context when this applies>",
  "session_id": "<from JSON>",
  "normalized_path": "<path to the JSON, relative to repo root>",
  "related_summary": "summaries/<sid>.md",
  "agent": "<from JSON, default 'claude-code'>",
  "tags": ["<2-4 short tags>"],
  "overview": "<1-2 sentences: what the skill does and when>",
  "when_to_use": [
    "<trigger condition 1>",
    "<trigger condition 2>"
  ],
  "workflow_steps": [
    "<step 1: an instruction to the future agent>",
    "<step 2: ...>"
  ],
  "scripts": [
    {
      "name": "<action>.py",
      "language": "python",
      "content": "<full script contents>"
    }
  ]
}

Notes on each field:

  • overview — the SKILL.md's ## Overview section body. Keep it to 1-2 sentences. Don't retell the original session.
  • when_to_use — a bulleted list of trigger conditions. The future agent matches its current task against these.
  • workflow_steps — the procedural body. Each step is an instruction the agent will follow. Reference scripts as Run \bash <wiki>/skills/<name>/scripts/<file>.sh`(the helper resolves<wiki>` at write time).
  • scripts — optional. If the workflow needs a non-trivial script, include it here. The helper writes it to <wiki>/skills/<name>/scripts/<file> and references it in the workflow body. Keep scripts minimal — strip incidental log lines or one-off args; replace literal file names with positional arguments.
Show full SKILL.md (382 more words)Show less
Step 6: Pipe the JSON to the helper
bash
echo '<json>' | uv run python explorations/agent-wiki/skills/scripts/build_agent_wiki.py render-skill

Add --rewrite to overwrite an existing skill page.

The helper:

  • Validates the JSON: name must be kebab-case, description and workflow_steps non-empty; sibling scripts must have name matching ^[\w.-]+$.
  • Writes <wiki>/skills/<slug>/SKILL.md with frontmatter (name, description, trigger, agent, sources, related_summary, tags, verified_at) and body (Overview, When To Use, Workflow, Sources).
  • Writes <wiki>/skills/<slug>/scripts/<file> for each script, marks shell scripts executable.
  • Updates <wiki>/skills/_id_index.json (skill slug → relpath).
  • Appends synthesize_skill to <wiki>/_audit.log with session_id + slug.
  • Skips silently if the skill already exists and --rewrite was not passed.
Step 7: Refresh indexes

After processing all trajectories, run once:

bash
uv run python explorations/agent-wiki/skills/scripts/build_agent_wiki.py catalog

This regenerates <wiki>/skills/index.md, the section indexes, and _index.jsonl (which gains a kind: "skill" row per skill, sorted between cluster: and guideline: rows). No LLM cost.

Output structure

<wiki>/skills/
├── _id_index.json                     skill slug → relpath
├── index.md                           alphabetical listing (auto-generated)
└── <slug>/
    ├── SKILL.md                       the synthesized skill
    └── scripts/                       optional supporting scripts
        └── <action>.{sh,py}

The SKILL.md frontmatter shape:

yaml
---
id: skill:<slug>
type: skill
name: <kebab-case-name>
description: <one-line task description>
trigger: <situational context>
agent: claude-code
sources:
  - <normalized_path>
related_summary: summaries/<sid>.md
verified_at: <date>
tags: [<tags>]
---

Skills vs guidelines vs clusters

  • Guideline (in <wiki>/guidelines/): the agent reads it and decides what to do. Free-text advice. Use when the lesson is conceptual.
  • Cluster (in <wiki>/guidelines/<slug>__cluster.md): an aggregator page grouping related atomics. Recall-preferred over its members.
  • Skill (in <wiki>/skills/<slug>/SKILL.md): a structured workflow page the agent reads and executes. Use when the lesson is a concrete, reusable recipe with a well-defined input/output.

At retrieval time, _index.jsonl lists all three kinds. Sort order is cluster → skill → guideline → task so callable artifacts surface first. The agent reads the SKILL.md, follows its Workflow section, and invokes any sibling scripts via Bash.

Best practices

  1. One skill per workflow. Two unrelated successful workflows in one trajectory → two synthesize calls with different names.
  2. Cite the trajectory. The helper records sources + related_summary automatically; you just need to set session_id and normalized_path correctly.
  3. Don't promote one-shots. A skill is worth synthesizing only if the trigger is plausibly recurring. Single-use trajectories should stay as guidelines (or nothing at all).
  4. Don't paraphrase failure. The skill describes what worked. If you're tempted to write "this skill avoids the problem where exiftool isn't installed," restate as "uses Pillow / stdlib struct; works in environments without system EXIF tools."
  5. Keep scripts minimal. Strip log lines, debug prints, validation that wasn't actually exercised in the trajectory.
  6. Generality is everything. A skill named extract-gps-from-jpeg will not match a lens-model query. If the trajectory only exercised one EXIF field, name the skill broadly (extract-jpeg-exif-camera-optics) so future agents recognize its applicability to siblings.

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

Files

Just SKILL.md in explorations/agent-wiki/skills/agent-wiki-synthesize-skill of AgentToolkit/altk-evolve.

Open the folder on GitHubat commit 8deea81

Compare with similar skills

Agent Wiki Synthesize Skill 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.

Agent Wiki Synthesize Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Wiki Synthesize Skill this skillAgentToolkit/altk-evolve122—~2.5kAutomated safety check: PassApache-2.0
Braindbdimknaf/braindb110—~6.1kAutomated safety check: NotesApache-2.0
Export TemplateHurricaHjz/second-yourself114—~4.8kAutomated safety check: WarnMIT
Vault Skill FactoryAr9av/obsidian-wiki3.5k—~1.9kAutomated safety check: PassMIT
Karpathy LLM WikiAstro-Han/karpathy-llm-wiki2.4k—~3.6kAutomated safety check: PassMIT
LLM Wiki Knowledge GraphEgonex-AI/Understand-Anything86k1 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • Braindb

    dimknaf/braindb

    Memory recall and save. An agent skill from dimknaf/braindb.

    110 GitHub stars~6.1k tokensUpdated 26 days ago
    Knowledge ManagementAuto-check: notes
  • Export Template

    HurricaHjz/second-yourself

    Sync THIS LLM-Wiki framework with its public GitHub repo, ONE direction per run: --push (vault → repo) publishes your framework; --pull (repo → vault) updates your framework from a newer repo version.

    114 GitHub stars~4.8k tokensUpdated 7 days ago
    Knowledge ManagementAuto-check: warnings
  • Vault Skill Factory

    Ar9av/obsidian-wiki

    Create a reviewable Agent Skill package from mature curated wiki pages.

    3.5k GitHub stars~1.9k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Karpathy LLM Wiki

    Astro-Han/karpathy-llm-wiki

    A skill your agent uses when building or maintaining a personal LLM-powered knowledge base.

    2.4k GitHub stars~3.6k tokensUpdated 2 mo ago
    Knowledge ManagementAuto-check passed
  • LLM Wiki Knowledge Graph

    Egonex-AI/Understand-Anything

    Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.

    86k GitHub starsUsed in 1 repo~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Hermes History Ingest

    Ar9av/obsidian-wiki

    Ingest Hermes agent history into Obsidian as distilled knowledge.

    3.5k GitHub starsUsed in 1 repo~2.2k tokens
    Knowledge ManagementAuto-check: notes

More from AgentToolkit/altk-evolve

All 21 skills in this repo
  • Agent Wiki Compare Outcomes

    AgentToolkit/altk-evolve

    Contrasts successful and failed agent runs of the same task and derives guidelines backed by evidence from transcripts, tool calls and outcome judgments.

    122 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Trajectory Skill Synthesizer

    AgentToolkit/altk-evolve

    Turns a saved agent trajectory into a reusable skill with a SKILL.md and supporting scripts, so later sessions can call the workflow instead of rediscovering it.

    122 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Evolve Memory Mirror

    AgentToolkit/altk-evolve

    Copies a memory the agent just saved into the shared evolve store with a retrieval trigger, so it can be shared across a team and audited like other entities.

    122 GitHub stars~922 tokensUpdated yesterday
    Auto-check passed
  • Agent Wiki Consult

    AgentToolkit/altk-evolve

    Has the agent read a project wiki's AGENTS.md and pull the guidelines that fit the task it is about to start, instead of loading the wiki at session start.

    122 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Wiki Guideline Extractor

    AgentToolkit/altk-evolve

    Reads a normalized Claude Code trajectory JSON and turns its errors and solutions into reusable guideline pages in wiki-twobatch/guidelines.

    122 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Agent Wiki Ingest

    AgentToolkit/altk-evolve

    Ingest one or more agent trajectories (raw bob/claude traces or normalized JSON) into an agent-wiki end-to-end — convert, summarize, extract guidelines, synthesize skills, optionally compare…

    122 GitHub stars~4k tokensUpdated yesterday
    Auto-check passed

Questions about Agent Wiki Synthesize Skill

What does Agent Wiki Synthesize Skill do?

Read a normalized Claude Code trajectory JSON and produce a wiki-resident SKILL.md page that future agents can invoke. Agent Wiki Synthesize Skill is an agent skill from AgentToolkit/altk-evolve.md page that future agents can invoke.

When should I use Agent Wiki Synthesize Skill?

Agent Wiki Synthesize Skill fits situations like: A trajectory captured a non-trivial successful workflow worth promoting from a free-text guideline to an executable; callable artifact.

How do I install Agent Wiki Synthesize Skill in Claude Code?

Run `npx skills add AgentToolkit/altk-evolve --skill agent-wiki-synthesize-skill -a claude-code`. Or copy the skill folder (explorations/agent-wiki/skills/agent-wiki-synthesize-skill in AgentToolkit/altk-evolve) into .claude/skills/agent-wiki-synthesize-skill in your project. Claude Code loads it when a task matches its description.

How do I install Agent Wiki Synthesize Skill in Codex?

Run `npx skills add AgentToolkit/altk-evolve --skill agent-wiki-synthesize-skill -a codex`. Or copy the skill folder (explorations/agent-wiki/skills/agent-wiki-synthesize-skill in AgentToolkit/altk-evolve) into .agents/skills/agent-wiki-synthesize-skill in your project. Codex loads it when a task matches its description.

Can I use Agent Wiki Synthesize Skill 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 AgentToolkit/altk-evolve --skill agent-wiki-synthesize-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-wiki-synthesize-skill, .gemini/skills/agent-wiki-synthesize-skill, .github/skills/agent-wiki-synthesize-skill and .opencode/skills/agent-wiki-synthesize-skill in your project.

What does Agent Wiki Synthesize Skill need to run?

Going by SKILL.md and its folder, Agent Wiki Synthesize Skill needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Agent Wiki Synthesize Skill access the network?

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

Is Agent Wiki Synthesize Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Wiki Synthesize Skill use?

Agent Wiki Synthesize Skill is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Wiki Synthesize Skill use?

About 2.5k tokens (SKILL.md is roughly 10k 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 Agent Wiki Synthesize Skill?

Skills that share tags, products or a category with Agent Wiki Synthesize Skill: Braindb (dimknaf/braindb, 110 stars), Export Template (HurricaHjz/second-yourself, 114 stars), Vault Skill Factory (Ar9av/obsidian-wiki, 3.5k stars) and Karpathy LLM Wiki (Astro-Han/karpathy-llm-wiki, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Wiki Synthesize Skill?

AgentToolkit (a GitHub organization) maintains it in AgentToolkit/altk-evolve, which has 122 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 8, 2026.

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