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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

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

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00038 $0.01847
Opus 5 $0.00019 $0.00924
Sonnet 5 $0.00008 $0.00369
Haiku 4.5 $0.00004 $0.00185

Measured 4d ago against content hash d96ea574a44d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (105 stars, last pushed 2d ago), licensed Apache-2.0. It adds 38 tokens to every session and 1,847 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

learn

Use when the user shares a conclusion, note, or takeaway from something they're studying — a book, course, or article — and wants it captured into their personal learning archive. Trigger phrases include "what I learned today", "notes from the book", "conclusions from chapter X", plus the explicit /learn command. Also…

ManceRayder42/jarvis-os · 121 tokens

memory-to-skill

Turn workflows from your MemSearch memory into reusable skills. Use when the user asks to make/create/extract/distill a skill from what they just did or from past work, review skill candidates, install a distilled skill, or 'turn this into a skill'. Manages MemSearch procedural-memory candidates under…

zilliztech/memsearch · 82 tokens

memory-recall

Search and recall relevant memories from past sessions via memsearch. Use when the user's question could benefit from historical context, past decisions, debugging notes, previous conversations, or project knowledge -- especially questions like 'what did I decide about X', 'why did we do Y', or 'have I seen this…

zilliztech/memsearch · 149 tokens

engineering-onboarding

Create an onboarding guide for an engineer joining a team that consumes the design system. Trigger when someone says: onboard new engineer, developer getting started guide, new engineer guide, engineering onboarding, first day for developers, frontend onboarding, or anything about helping an engineer new to the team…

murphytrueman/design-system-ops · 68 tokens

async-learning-teacher

Transform saved links, papers, articles, posts, videos, and reference collections into approachable AI teaching artifacts for later study. Use when a user wants to queue learning material, create a readable explanation from a source, teach a paper or post step by step, or run an interactive tutor that validates…

tamdogood/builder-essential-skills · 68 tokens

exam-drill

Use when the user wants exam-focused drilling from the course's analyzed material. Generates twin variants of known problems (/twin), runs strategy-level blind drills on known problems (/blind), creates integration problems chaining multiple patterns (/chain), surfaces pattern cards (/pattern), and shows…

OPTIMETA/PAIDEIA · 115 tokens