ag-skills: Agent for Claude Code

.agent/agents/code-archaeologist.md

code-archaeologist is an agent for Claude Code from duongnguyen321/ag-skills. It costs 50 tokens per session (810 once invoked), scanned A, original, no licence file.

An agent for understanding old or poorly documented software, refactoring it, and planning its modernization.

In plain words
What is it for?
Use it to read an unfamiliar repository, reverse-engineer its behavior, explain the codebase, plan refactoring, and prepare modernization work.
Why use it?
It helps developers make sense of legacy code and tangled systems before changing or replacing them.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

This is duongnguyen321/ag-skills's own configuration. It tells Claude Code how to work on ag-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ag-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to duongnguyen321/ag-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/duongnguyen321/ag-skills/main/.agent/agents/code-archaeologist.md
Clone the repo
git clone --depth 1 https://github.com/duongnguyen321/ag-skills

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 code-archaeologist

README.md
[![agentmods](https://agentmods.dev/badge/agents/duongnguyen321/ag-skills/code-archaeologist.svg)](https://agentmods.dev/agents/duongnguyen321/ag-skills/code-archaeologist)
Your own site
<a href="https://agentmods.dev/agents/duongnguyen321/ag-skills/code-archaeologist"><img src="https://agentmods.dev/badge/agents/duongnguyen321/ag-skills/code-archaeologist.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 810 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.
Origin unknown 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.00050 $0.00810
Opus 5 $0.00025 $0.00405
Sonnet 5 $0.00010 $0.00162
Haiku 4.5 $0.00005 $0.00081

Measured 6d ago against content hash 57ec8def106b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

code-archaeologist 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 6d 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.

.agent/agents/code-archaeologist.md · 107 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 6d ago First seen · 107 lines · 50 tokens per session scan A 57ec8def106b

Subscribe to this mod's changes

code-archaeologist is an agent published in the GitHub repository duongnguyen321/ag-skills (2 stars, last pushed 20d ago), with no licence file. It adds 50 tokens to every session and 810 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

root-cause-debugger

Investigation specialist that finds and PROVES the root cause of a bug before any code is changed. Reads logs, error/stack traces, git diff/log of recent changes, and traces data flow with targeted logging. Delegate when a bug's cause is unknown, a fix keeps failing, or you need hard evidence before touching code.…

wasintoh/toh-framework · 90 tokens

incident-commander

Production incident response specialist — Kodelyth. A decade-seasoned SRE who has led incident response at $300B-scale companies. Runs the triage, containment, communication, and postmortem for active production incidents. Stays calm when everything is on fire. Knows exactly what to do, in what order, and who to tell.…

sifxprime/kodelyth-ecc · 87 tokens

boundary-tracer

Conditional agent invoked only when scanner produces candidates classified as T7 (write-only fields or intent-capture discard) or T10 (error downgrade). Input is one or more T7 or T10 candidate@1 entries from the scanner and the recon manifest. For Rust workspaces, the agent loads shared/references/rust-hazards.md…

orin-dx/agent-plugins · 197 tokens

ui-debugger

Evidence-driven frontend debugger for a running localhost app. Delegate when a UI bug needs to be diagnosed and fixed from what the browser actually rendered — misalignment, overflow, spacing, wrong colours, blank regions, hydration mismatches or console errors on a dev server. Requires the dev server to be running…

soumyachk101/VibeLens · 74 tokens

ecc-performance-optimizer

Agent "ecc-performance-optimizer" from KornLabs/truss, covering prompt defense baseline, performance optimizer, core responsibilities, analysis commands and bundle analysis.

KornLabs/truss · 0 tokens

performance-engineer

Use when you need to diagnose and improve app, query, build, and runtime performance safely.

FluxonLab/Skillry · 23 tokens