AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Knowledge Extract

skill-meteora-pro-devboy-tools-knowledge-extract · by meteora-pro

Extract the lesson from a session that failed, then succeeded, and propose where to codify it.

No reviews yet
0 installs
29 views
0.0% view→install

Install

$ agentstack add skill-meteora-pro-devboy-tools-knowledge-extract

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-meteora-pro-devboy-tools-knowledge-extract)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Knowledge Extract? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

knowledge-extract

Inspects a single session trace that went from a failure streak to a clean success, pulls out what changed between "not working" and "working", and proposes where the lesson belongs — a SKILL.md edit, an AGENTS.md / CLAUDE.md bullet, or a ticket. The skill is read-only. It prints a proposal to stdout; the user decides whether to act on it.

When to use

  • Right after a painful debug that eventually passed — the shape of

what worked is still fresh, but will fade within a day.

  • On a session that daily-report flagged as "recovered after

multiple failures".

  • When reviewing a teammate's trace to understand how they unblocked

themselves.

Procedure

1. Locate the session

Accept one of:

  • --session-dir — absolute or relative path to a real

per-session directory such as .devboy/sessions////. If the directory contains meta.json and trace.jsonl, use it directly.

  • --pick — interactive mode: enumerate today's //

directories whose meta.json has outcome = success and errors > 0, and let the user pick one. This is the common follow-up after daily-report.

Exit with a clear error if neither flag is set or the directory is not a well-formed session.

2. Begin the meta-trace

The extract itself is traced — retros care about how often the team reaches for this skill.

result=$(devboy trace begin --skill knowledge-extract)
SESSION_DIR=$(echo "$result" | jq -r .session_dir)
SESSION_ID=$(echo "$result" | jq -r .session_id)

Record a decision event naming the target session dir.

3. Parse the target trace

Read trace.jsonl line by line. Lines that fail to deserialise as JSON are skipped with a single note event — do not abort. For each valid record keep: ts, phase, payload.

Compute three spans:

  • Failure streak. A contiguous run of events where either

tool_result.ok = false or verify.ok = false — possibly interleaved with note, decision, or further tool_call events that target the same tool or check.

  • Flip point. The first event after the streak where

tool_result.ok = true or verify.ok = true on the same tool or check as the streak.

  • Setup delta. The decision and note events that appear

between the last failing event and the flip point — those record what the agent or user tried differently.

If the trace has no failure streak (only clean successes), print a short message saying there is nothing to extract and end the meta- trace with outcome: aborted.

4. Draft the lesson

One short paragraph, plain English. Template:

> After failing ` times with , > switching to fixed it > because `.

If the trace does not justify the "because" clause, leave it out rather than making something up.

5. Suggest where to codify the lesson

Classify the fix and propose exactly one home:

  • Tool invocation pattern (e.g. "call get_pipeline with

includeFailedLogs: false when the MR is large") — propose a SKILL.md edit on the skill that owns the call. Name the file (skills///SKILL.md) and quote the exact sentence to add.

  • Project convention (e.g. "this repo requires migrations in

snake_case") — propose a bullet for CLAUDE.md, AGENTS.md, or the project's own guide, quoting the sentence.

  • Systemic infra bug (e.g. "CI cache corrupts itself on

concurrent merges") — propose a ticket via create-issue, including a draft title and two-sentence reproduction, but do not create it.

Only one home per lesson. If the fix really belongs in two places, split the extraction into two successive invocations.

6. Emit the proposal

Print to stdout:

# Lesson extracted from 

## What happened

## Lesson

## Proposed codification
Target: skills/02-code-review/review-mr/SKILL.md
Edit:
> Add the following to the "Procedure" section, after step 3:
> "When the MR touches more than 50 files, pass
>  includeFailedLogs: false to get_pipeline — otherwise the response
>  overflows the context window."

Do not apply the edit. Do not open the file. Do not create the ticket.

7. End the meta-trace

devboy trace end \
  --session-dir "$SESSION_DIR" --session-id "$SESSION_ID" \
  --skill knowledge-extract \
  --outcome "$OUTCOME" \
  --summary "lesson proposal for "

Success criteria

  • Every proposal cites a specific file path or a concrete ticket

target — no "maybe add a note somewhere".

  • The "What happened" paragraph points at real tool_call /

tool_result / verify events with timestamps from the trace.

  • Running the skill twice on the same session produces the same

proposal.

Guardrails

  • Read-only. The skill never writes into another skill's

SKILL.md, never opens a PR, never calls create_issue or add_issue_comment. Proposals are text on stdout.

  • Redacted trace fields are opaque. If the failure streak's error

message was redacted, quote it verbatim ( in response body). Do not guess at the underlying value.

  • If the trace is malformed or the session has no failure-to-success

transition, say so and end with outcome: aborted.

Non-goals

  • Does not build a knowledge base or index of past lessons.
  • Does not rank lessons by importance.
  • Does not replace a human reviewer — the user still decides whether

the proposed edit is worth making.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.