Agent skill

Agent Wiki Summarize

by AgentToolkit in AgentToolkit/altk-evolve

Read a normalized Claude Code trajectory JSON and write an episodic summary page to wiki-twobatch/summaries/.

Apache-2.0Auto-check passedAgent Workflows

Install Agent Wiki Summarize

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

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

GitHub CLI
$ gh skill install AgentToolkit/altk-evolve agent-wiki-summarize --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-summarize .claude/skills/agent-wiki-summarize && 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-summarize
GitHub stars
122
Token cost
~1.9k tokens
SKILL.md length
796 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 write an episodic summary page to wiki-twobatch/summaries/.

  • Works in 5 steps: Resolve input files → Glance at existing summaries → For each trajectory JSON → …
  • Summarizing one
  • SKILL.md covers Overview, Input, Workflow and Splitting long sessions into…, plus 1 more section
  • Calls uv

What it does

Agent Wiki Summarize is an agent skill from AgentToolkit/altk-evolve. Read a normalized Claude Code trajectory JSON and write an episodic summary page to wiki-twobatch/summaries/. Use when summarizing one or more saved trajectories into the agent wiki.

Its SKILL.md is about 1.9k 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 Agent Workflows. The repository describes itself as: Self improving agents through iterations. The licence is Apache-2.0.

When your agent uses it

  • Summarizing one
  • More saved trajectories into the agent wiki

Example prompts

  • “/agent-wiki-summarize”

Requirements

  • Python 3

Workflow steps

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

  1. Resolve input files
  2. Glance at existing summaries
  3. For each trajectory JSON
  4. Pipe the JSON to the helper
  5. Refresh indexes

What it can do on your machine

Read from SKILL.md and the folder at commit 9e5bb56. 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 Summarize loads about 1.9k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 796 words of instructions outside code blocks.

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

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 9e5bb56, republished under its Apache-2.0 licence (© AgentToolkit). 796 words, ~1,939 tokens.

Download SKILL.mdSave it as .claude/skills/agent-wiki-summarize/SKILL.md (or your agent's skills folder).
name
agent-wiki-summarize
description
Read a normalized Claude Code trajectory JSON and write an episodic summary page to wiki-twobatch/summaries/. Use when summarizing one or more saved trajectories into the agent wiki.

Agent Wiki — Summarize Trajectory

Overview

Witness one session at a time. For each normalized trajectory JSON, author a 1–3 paragraph narrative + key turns + (when present) a classification of each recalled guideline as followed | ignored | contradicted with an evidence quote.

This is the per-trajectory witness pass of the agent-wiki family. It writes one page per session and tail-calls the bookkeeping catalog subcommand so indexes stay fresh.

Input

A path that is either:

  • a normalized trajectory JSON file
  • a directory of such files (recurse one level into <label>/items/)

Default if no path is given: trajectories/normalized.

Workflow

Step 1: Resolve input files

Use Glob to enumerate *.json. Accept either a single file, a flat dir of files, or a normalized/ root with <label>/items/ subdirs.

Step 2: Glance at existing summaries

Glob wiki-twobatch/summaries/*.md so you can skip-if-exists per session without re-doing LLM work. Skip is the default; pass --rewrite (forwarded to the helper below) to overwrite.

Step 3: For each trajectory JSON

Read the file. The fields you need:

  • session_id, agent, model, started_at/ended_at/duration_seconds
  • stats.top_tools (for tools_used)
  • source.transcript_path
  • openai_chat_completion.messages
  • recalled_guidelines (top-level; may be empty/missing)

If wiki-twobatch/summaries/<session_id>.md already exists and the user did not request --rewrite, skip to the next file.

Otherwise synthesize a summary as a JSON object:

json
{
  "session_id":      "<from JSON>",
  "slug":            "<optional; for splitting a long session into multiple arc-summaries (e.g. 'arc1-token-savings'). When present, filename becomes <sid>__<slug>.md and frontmatter gains `arc:` plus a `sibling_summaries:` list of co-summaries from the same session.>",
  "agent":           "<from JSON, default 'claude-code'>",
  "model":           "<from JSON>",
  "goal":            "<one short sentence describing what the user asked for>",
  "outcome":         "success | partial | failure",
  "duration_seconds": <number from JSON>,
  "tools_used":      ["<from stats.top_tools, name only>", "..."],
  "narrative":       "<1-3 paragraphs: what happened, what worked, what didn't>",
  "key_turns":       ["<one short bullet per pivotal step>", "..."],
  "normalized_path": "<path to the JSON, relative to repo root>",
  "transcript_path": "<from source.transcript_path>",
  "recalled_guidelines": [
    {
      "id":       "<12-hex-char id of the guideline that was used in this session>",
      "title":    "<a short label, 3-7 words>",
      "status":   "followed | ignored | harmful | contradicted",
      "evidence": "<verbatim quote ≤200 chars; required for followed/harmful/contradicted>"
    }
  ]
}

Rules of thumb:

  • goal is one sentence; pull from the first user message.
  • outcome is your judgement.
  • narrative is short (≤ ~250 words). No fluff.
  • key_turns is 3–6 bullets at most. Each one sentence.
  • Skip recalled_guidelines entirely if no guidelines were available or used.
  • Quotes must be verbatim (thinking / assistant text / tool_use args / tool_result content); ≤200 chars; ellipsize with … if cut.
How recalled_guidelines is populated

The recalled_guidelines field captures every wiki guideline the agent saw in this session. Scan the trajectory for the agent reading guideline files from a wiki dir — <wiki-root>/guidelines/<slug>__<gid>.md or <wiki-root>/guidelines/<slug>__cluster.md — either via the Read tool or via Bash cat/less/grep. Extract each file's id from its YAML frontmatter (id: <12-hex>) so the row links to the wiki's _id_index.json.

Don't double-count: if the agent reads the same guideline file twice, emit one row.

Status vocabulary (4-way)

You judge the status from trajectory evidence, not the agent's self-report:

  • followed — the agent acted on the guideline and the action produced the intended result. Required evidence: a verbatim quote showing the agent applied the rule (citation, paraphrase that triggered a tool call, or a tool call whose form matches the guideline's prescription).
  • ignored — the agent read the guideline file but never acted on it. No evidence needed; default for guidelines that landed in context without effect.
  • harmful — the agent acted on the guideline and it led astray: wasted tool calls, wrong path, retracted decision, or surfaced a wrong answer that had to be corrected. Required evidence: a verbatim quote showing the bad outcome that followed application.
  • contradicted — the agent saw the guideline and deliberately did the opposite (disagreed with the rule). Required evidence: a verbatim quote where the agent's action contradicts the guideline's prescription.

Default to ignored when uncertain. Don't assign followed or harmful without a verbatim evidence quote — those carry signal value only when backed by trajectory text.

Show full SKILL.md (286 more words)Show less
Step 4: Pipe the JSON to the helper
bash
echo '<json>' | uv run python explorations/agent-wiki/skills/scripts/build_agent_wiki.py render-summary

Add --rewrite to overwrite an existing page. The helper:

  • Locates the wiki root (existing wiki-twobatch/ ancestor, or creates one next to the nearest .git/ ancestor).
  • Writes summaries/<session_id>.md with frontmatter, body, and a ## Sources footer.
  • Resolves each recalled_guidelines[].id against guidelines/_id_index.json for backlinks.
  • Appends one <wiki-root>/_audit.log line per recalled guideline.
  • Skips if the page already exists unless --rewrite.
Step 5: Refresh indexes

After processing all input files, run once:

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

This regenerates index.md, section indexes, _index.jsonl, and enriches summary frontmatter with tool_calls, errors, recall_used, contributed_guidelines, tags, verified_at. No LLM cost.

Splitting long sessions into arc-summaries

If a single session has multiple distinct arcs (different sub-projects, a clear topic shift, separate PRs landing from one transcript), emit one summary JSON per arc and pass a slug on each. The slug becomes the arc identifier and the filename suffix:

  • summaries/<session_id>.md — single-arc default.
  • summaries/<session_id>__arc1-token-savings.md, summaries/<session_id>__arc2-procedural-memory.md — split.

Each arc-summary's frontmatter still carries the full session_id, plus arc: <slug> and a sibling_summaries: list pointing at the other arc-files for the same session. Readers can navigate the whole session via the sibling list. The summaries index.md shows split sessions in their own section at the top.

For per-arc-but-finer workstreams (one specific cross-cutting effort within one arc, e.g. "split runner from results across PRs"), use the sibling skill agent-wiki-tasks's subtask path (tasks/<slug>__subtask.md) rather than a third level of summaries.

Best practices

  1. One summary file per (session_id, arc) pair. Without slug, default to one summary per session. Pass --rewrite to overwrite an existing page deterministically.
  2. Don't hallucinate fields — leave them out if missing in the source JSON.
  3. Don't rewrite by default. The wiki accumulates; reruns should be additive.
  4. Always tail-call catalog after the per-trajectory loop.

© 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-summarize of AgentToolkit/altk-evolve.

Open the folder on GitHubat commit 9e5bb56

Compare with similar skills

Agent Wiki Summarize 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 Summarize compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Wiki Summarize this skillAgentToolkit/altk-evolve122—~1.9kAutomated safety check: PassApache-2.0
MCP Server Builderanthropics/skills180k62 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official37k11 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k34 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers296k2 repos~5.1kAutomated safety check: PassMIT
Claude Code Agent Developmentanthropics/claude-plugins-official37k8 repos~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 62 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    37k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 34 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    296k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    37k GitHub starsUsed in 8 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    794 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed

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 today
    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 today
    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 today
    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 today
    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 today
    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 today
    Auto-check passed

Categories

Questions about Agent Wiki Summarize

What does Agent Wiki Summarize do?

Read a normalized Claude Code trajectory JSON and write an episodic summary page to wiki-twobatch/summaries/. Agent Wiki Summarize is an agent skill from AgentToolkit/altk-evolve. Read a normalized Claude Code trajectory JSON and write an episodic summary page to wiki-twobatch/summaries/.

When should I use Agent Wiki Summarize?

Agent Wiki Summarize fits situations like: summarizing one; more saved trajectories into the agent wiki.

How do I install Agent Wiki Summarize in Claude Code?

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

How do I install Agent Wiki Summarize in Codex?

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

Can I use Agent Wiki Summarize 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-summarize -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-summarize, .gemini/skills/agent-wiki-summarize, .github/skills/agent-wiki-summarize and .opencode/skills/agent-wiki-summarize in your project.

What does Agent Wiki Summarize need to run?

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

Does Agent Wiki Summarize 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 Summarize 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 Summarize use?

Agent Wiki Summarize 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 Summarize use?

About 1.9k tokens (SKILL.md is roughly 7.8k 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 Summarize?

Skills that share tags, products or a category with Agent Wiki Summarize: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 37k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 296k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Wiki Summarize?

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 7, 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.