agent-wiki-extract-guidelines

agent-wiki-extract-guidelines is a skill for Claude Code, Codex from AgentToolkit/altk-evolve. It costs 38 tokens per session (1,847 once invoked), scanned A, original, Apache-2.0.

A tool for reading saved JSON records of coding-agent sessions and turning their lessons into reusable wiki pages. A trajectory is a recorded sequence of messages and actions from one session.

In plain words
What is it for?
Use it to process one recorded session or a directory of sessions, identify root causes and successful commands, and write standalone guidelines under wiki-twobatch/guidelines/.
Why use it?
It keeps useful solutions and mistakes from being lost in old session logs. It also checks existing guideline pages to avoid repeating the same lesson.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is echo '<json>' | uv run python explorations/agent-wiki/skills/scripts/build_agent_wiki.py render-guidelines.

Good fit Use it to process one recorded session or a directory of sessions, identify root causes and successful commands, and write standalone guidelines under wiki-twobatch/guidelines/.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/AgentToolkit/altk-evolve
agentmods
npx agentmods add skills/agenttoolkit/altk-evolve/agent-wiki-extract-guidelines

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-wiki-extract-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/skills/agenttoolkit/altk-evolve/agent-wiki-extract-guidelines/github.svg)](https://agentmods.dev/skills/agenttoolkit/altk-evolve/agent-wiki-extract-guidelines)
Your own site
<a href="https://agentmods.dev/skills/agenttoolkit/altk-evolve/agent-wiki-extract-guidelines"><img src="https://agentmods.dev/badge/skills/agenttoolkit/altk-evolve/agent-wiki-extract-guidelines/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-wiki-extract-guidelines

Your own site · 80×15
<a href="https://agentmods.dev/skills/agenttoolkit/altk-evolve/agent-wiki-extract-guidelines"><img src="https://agentmods.dev/badge/skills/agenttoolkit/altk-evolve/agent-wiki-extract-guidelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,847 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01847
Opus 5.5 $0.00015 $0.00739
Sonnet 5.5 $0.00008 $0.00369
Haiku 4.5 $0.00004 $0.00185

Measured 3mo ago against content hash d96ea574a44d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-wiki-extract-guidelines scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

explorations/agent-wiki/skills/agent-wiki-extract-guidelines/SKILL.md · 179 lines

How it starts

The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Wiki — Extract Guidelines

Overview

Distill lessons from one session at a time. For each normalized trajectory JSON, identify reusable guidelines: reframe failures as proactive recommendations, capture concrete artifacts (scripts, command sequences) that solved real problems, and write each as a standalone guideline page in wiki-twobatch/guidelines/.

This is the per-trajectory distill pass of the agent-wiki family.

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 guidelines

Glob wiki-twobatch/guidelines/*.md and skim slugs. Re-extracting a near-duplicate is wasteful and pollutes the wiki. (Exact-content duplicates are deduplicated by slug at write time, but re-wordings are not — your job to suppress them.)

Step 3: Process each trajectory

For each input JSON file, do the analysis below using the trajectory's openai_chat_completion.messages array as the source of truth.

3a. Identify errors and root causes

Scan for:

  1. Tool / command failures — non-zero exit codes, error messages, stack traces.
  2. Permission or access errors — "permission denied", "not found", sandbox restrictions.
  3. Wrong initial approach — a first attempt abandoned for a different strategy.
  4. Retry loops — same action attempted multiple times with variations.
  5. Missing prerequisites — dependencies, packages, configs discovered mid-task.
  6. Silent failures — actions that appeared to succeed but produced wrong results.

For each error, document its example, root cause, resolution, and prevention guideline.

3b. Decide whether to capture an artifact

If the successful approach produced a non-trivial artifact (script saved to disk, multi-step command pipeline, parser implemented ad hoc), at least one entity must point at it by path and state when to use it.

Read the full file on GitHub · 179 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 179 lines · 38 tokens per session scan A d96ea574a44d

Subscribe to this mod's changes

agent-wiki-extract-guidelines is a skill published in the GitHub repository AgentToolkit/altk-evolve (143 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 1,847 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agent-wiki-extract-guidelines compared with skills from other repositories

agent-wiki-extract-guidelines next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-wiki-extract-guidelinesAgentToolkit/altk-evolveSkill143todayApache-2.0A38Claude Code, Codex
memory-to-skillzilliztech/memsearchSkill3.0ktodayMITA82Claude Code, Codex
memory-recallzilliztech/memsearchSkill3.0ktodayMITA38Claude Code
impeccablewrg32786/aigent-osSkill26yesterdayMITA35Claude Code
nightly-ledger-capturewrg32786/aigent-osSkill26yesterdayMITA39Claude Code
dreamwrg32786/aigent-osSkill26yesterdayMITA26Claude Code
honesty-checkwrg32786/aigent-osSkill26yesterdayMITA35Claude Code, Codex