pwn-ai-agent-learning

pwn-ai-agent-learning is a skill for Claude Code from 0dayInc/pwn. It costs 20 tokens per session (667 once invoked), scanned A, original, MIT.

A learning module for an AI agent that records task results, extracts reusable lessons, and stores them for later sessions.

In plain words
What is it for?
Use it to record outcomes, inspect session lessons, promote workflows into skills, and add learned context to future tasks.
Why use it?
It helps the agent learn from past successes and mistakes without filling its memory with unnecessary data.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to record outcomes, inspect session lessons, promote workflows into skills, and add learned context to future tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0dayinc/pwn/learning
View source ↗ 0dayInc/pwn
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.

Any agent
npx skills add 0dayInc/pwn --skill learning
Clone the repo
git clone --depth 1 https://github.com/0dayInc/pwn

Made for: Claude Code.

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 pwn-ai-agent-learning

README.md
[![agentmods](https://agentmods.dev/badge/skills/0dayinc/pwn/learning/github.svg)](https://agentmods.dev/skills/0dayinc/pwn/learning)
Your own site
<a href="https://agentmods.dev/skills/0dayinc/pwn/learning"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/learning/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 pwn-ai-agent-learning

Your own site · 80×15
<a href="https://agentmods.dev/skills/0dayinc/pwn/learning"><img src="https://agentmods.dev/badge/skills/0dayinc/pwn/learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 667 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.00020 $0.00667
Opus 5.5 $0.00008 $0.00267
Sonnet 5.5 $0.00004 $0.00133
Haiku 4.5 $0.00002 $0.00067

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

Security

Grade A, and why

pwn-ai-agent-learning 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 3d 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.

etc/default_skills/pwn/ai/agent/learning/SKILL.md · 86 lines

How it starts

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

PWN::AI::Agent::Learning

PWN::AI::Agent::Learning is the self-improvement engine that closes the pwn-ai feedback loop. It captures task outcomes, mines session transcripts for durable lessons, promotes successful workflows into reusable skills, and keeps ~/.pwn lean (memory + learning.jsonl + mistakes + sessions) so the agent gets sharper over time instead of accumulating noise. Data flows: Loop.run --(tool telemetry)--> Metrics.record Loop.run --(final answer)----> Learning.auto_introspect (opt-in) auto_introspect --(throttled)--> Learning.gc_stores! # ~/.pwn lean model --(tool calls)------> learning_note_outcome / _distill_skill PromptBuilder <----------------- Learning.to_context + Metrics.to_context Everything is file-backed under ~/.pwn so it survives across REPL restarts and is shared by every future session.

When to use

Call PWN::AI::Agent::Learning from pwn_eval when the task needs this module. Do not reimplement it in shell.

Methodologies

Generated from pwn/ai/agent/learning.rb. Prefer the public class methods below. Class methods take (opts = {}) and read opts.

How to call

PWN::AI::Agent::Learning.help
PWN::AI::Agent::Learning.evidence_transcript(opts)

Public methods

  • evidence_transcript
  • session_evidence
  • evidence_complete
  • migrate_evidence
  • annotate_evidence
  • rollback_evidence
  • note_outcome
  • consistency_check
  • disputed_save
  • outcomes
  • stats
  • to_context
  • exemplars_for
  • export_finetune
  • distill_skill
  • update_skill
  • reflect
  • rsi_tick
  • auto_introspect
  • flip_last_outcome
  • consolidate
  • reset
  • reconcile_verdict_tags
  • prune_outcomes
  • lean
  • gc_stores
  • purge_noise
  • lesson_record
  • lesson_observe
  • lesson_prompt
  • list_conflicted
  • requeue_conflicted
  • compact
  • authors
  • help
  • compact!
  • evidence_complete?
  • gc_stores!
  • lean!
  • prune_outcomes!
  • reconcile_verdict_tags!

Source

pwn/ai/agent/learning.rb

Read the full file on GitHub · 86 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. 3d ago Changed · +7 lines 476bc35c58ee
  2. 25d ago Changed · +1 lines 4ec35ee593e2
  3. 1mo ago Changed · +2 lines 923d19aaebfd
  4. 1mo ago Changed · +4 lines c0bfb76b2c35
  5. 1mo ago Changed · +3 lines d0dec34f9684
  6. 1mo ago First seen · 69 lines · 20 tokens per session scan A 93c1403e5d76

Subscribe to this mod's changes

pwn-ai-agent-learning is a skill published in the GitHub repository 0dayInc/pwn (86 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 667 once invoked, about $0.0001 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

Other skills, from other repositories

analyzing-memory-forensics-with-lime-and-volatility

Performs Linux memory acquisition using LiME (Linux Memory Extractor) kernel module and analysis with Volatility 3 framework. Extracts process lists, network connections, bash history, loaded kernel modules, and injected code from Linux memory images. Use when performing incident response on compromised Linux systems.

mukul975/Anthropic-Cybersecurity-Skills · 71 tokens

osmedeus-expert

Expert guide for the Osmedeus security automation workflow engine. Use when: (1) writing or editing YAML workflows (modules and flows), (2) running osmedeus CLI commands (scan, workflow management, installation, server), (3) configuring steps, runners, triggers, or template variables, (4) debugging workflow execution…

j3ssie/osmedeus · 113 tokens

analyzing-linux-elf-malware

Analyze malicious Linux ELF binaries — botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure — through static analysis, dynamic tracing, and reverse engineering of x8664 and ARM samples. Use when investigating Linux malware, triaging a suspicious ELF binary…

mukul975/Anthropic-Cybersecurity-Skills · 82 tokens

performing-jwt-none-algorithm-attack

Execute and test the JWT none algorithm attack to bypass signature verification by manipulating the alg header field in JSON Web Tokens.

xalgorix/xalgorix · 34 tokens

performing-ai-assisted-vulnerability-discovery

Using LLMs to accelerate vulnerability research and pentest workflows — generating syntax-valid fuzzing seeds and evolving grammars, fine-tuned mutation dictionaries, parallel agent-based proof-of-vulnerability generation, and evidence-driven passive analysis of real HTTP traffic via the Burp MCP server. Covers…

xalgorix/xalgorix · 91 tokens

performing-fuzzing-with-aflplusplus

Perform coverage-guided fuzzing of compiled binaries using AFL++ (American Fuzzy Lop Plus Plus) to discover memory corruption, crashes, and security vulnerabilities. The tester instruments target binaries with afl-cc/afl-clang-fast, manages input corpora with afl-cmin and afl-tmin, runs parallel fuzzing campaigns with…

xalgorix/xalgorix · 116 tokens