agent-engineering

agent-engineering is a skill for Claude Code, Codex from shahidshabbir-se/my-pi-setup. It costs 170 tokens per session (3,375 once invoked), scanned A, original, MIT.

A decision guide for choosing how to improve a coding agent's workflow, such as adding a rule, a skill, a check, an evaluation, or more automation. It starts by asking whether a problem is supported by evidence and has happened repeatedly.

In plain words
What is it for?
Use it when an agent repeatedly breaks something, a change is not trusted, or you are unsure whether to add a rule, verification step, evaluation, or other mechanism.
Why use it?
It helps avoid building agent infrastructure for a one-off mistake or an unproven concern. It provides a way to choose the smallest lasting solution to a recurring problem.

Skill for Claude CodeCodex

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

Good fit Use it when an agent repeatedly breaks something, a change is not trusted, or you are unsure whether to add a rule, verification step, evaluation, or other mechanism.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shahidshabbir-se/my-pi-setup/agent-engineering
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 shahidshabbir-se/my-pi-setup --skill agent-engineering
Clone the repo
git clone --depth 1 https://github.com/shahidshabbir-se/my-pi-setup

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-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/shahidshabbir-se/my-pi-setup/agent-engineering/github.svg)](https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/agent-engineering)
Your own site
<a href="https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/agent-engineering"><img src="https://agentmods.dev/badge/skills/shahidshabbir-se/my-pi-setup/agent-engineering/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-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/shahidshabbir-se/my-pi-setup/agent-engineering"><img src="https://agentmods.dev/badge/skills/shahidshabbir-se/my-pi-setup/agent-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 170 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,375 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 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.00170 $0.03375
Opus 5.5 $0.00068 $0.01350
Sonnet 5.5 $0.00034 $0.00675
Haiku 4.5 $0.00017 $0.00337

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

Security

Grade A, and why

agent-engineering 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 12d 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/skills/agent-engineering/SKILL.md · 362 lines

How it starts

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

Agent Engineering

A durable decision framework for your own agent system. It exists because you will forget the reasoning behind past choices — this skill is the memory of how to decide, not a record of what you've already built.

The one rule that matters more than any mechanism

Do not build agent infrastructure because it sounds useful. Let a real, repeated problem determine what gets promoted, and promote the smallest thing that reliably solves it.

Every section below exists to serve that rule. If you're ever unsure, come back to this sentence before adding anything.

First questions, always: is there evidence, and has this recurred?

Before consulting anything else, ask:

  • What's the actual evidence this is a problem — not a hunch, a single transcript, a diff.
  • Did this happen more than once, or am I reacting to a single event?

Default: don't promote a one-off mistake. Just fix it and move on. If you catch yourself wanting to build something after one occurrence, that's the overengineering instinct — stop and just fix the thing.

Exceptions require a concrete reason, not a hunch — either:

  • the cost of recurrence would be unacceptable even once (security, data loss, irreversible action), or
  • the mechanism is genuinely cheap and strongly justified even for one occurrence (e.g. a one-line hard constraint that removes a whole class of mistake outright).

Continue below if the answer is "yes, this keeps happening," "I genuinely don't know, and not knowing is itself the problem" (→ Observability), or one of the exceptions above applies.

Relationship to self-improve

self-improve
    ↓
"I found a specific recurring mistake.
 How do I make this lesson durable?"
    → turns a confirmed recurring mistake into durable project
      knowledge — normally a rule in AGENTS.md, or an update to an
      appropriate skill.

agent-engineering (this skill)
    ↓
"What kind of agent-engineering mechanism
 should exist for this problem, if any?"
    → resolves to: nothing, a rule (→ hand to self-improve), a skill,
      a hard constraint, verification, an eval, an eval harness,
      observability, a feature map, or a trust/automation step.

Read the full file on GitHub · 362 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. 12d ago First seen · 362 lines · 170 tokens per session scan A f9eb4faef484

Subscribe to this mod's changes

agent-engineering is a skill published in the GitHub repository shahidshabbir-se/my-pi-setup (2 stars, last pushed 4d ago), licensed MIT. It adds 170 tokens to every session and 3,375 once invoked, about $0.0007 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-09-27.

Related

Other skills, from other repositories

release-notes

Write release notes for a tagged release — a business-impact summary of what changed for the user, plus a thanks section naming every contributor whose commits are in the release. Short by construction.

no-human-ai/no_human · 41 tokens

review-this-branch

Run the nohuman review gate (fresh-session adversarial reviewer + tamper guard) over the current branch or a GitHub pull request, with no server, no database, and no onboarding, and relay the pass/fail checklist.

no-human-ai/no_human · 53 tokens

audit-agents-skills

Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.

FlorianBruniaux/claude-code-plugins · 41 tokens

issue-triage

3-phase issue backlog management with audit, deep analysis, and validated triage actions. Use when triaging GitHub issues, sorting bug reports, cleaning up stale tickets, or detecting duplicate issues. Args: 'all' to analyze all, issue numbers to focus (e.g. '42 57'), 'en'/'fr' for language, no arg = audit only.

FlorianBruniaux/claude-code-plugins · 81 tokens

pr-triage

4-phase PR backlog management with audit, deep code review, validated comments, and optional worktree setup. Use when triaging pull requests, catching up on pending code reviews, or managing a backlog of open PRs. Args: 'all' to review all, PR numbers to focus (e.g. '42 57'), 'en'/'fr' for language, no arg = audit…

FlorianBruniaux/claude-code-plugins · 86 tokens

check-cache-bugs

Audit Claude Code setup for cache bugs (CC#40524): sentinel, --resume/--continue, attribution header + ArkNill B3/B4/B5.

FlorianBruniaux/claude-code-plugins · 38 tokens