amylyra

Agent Prompt Author — Security skill for Claude Code

Security community

Why your AI agent ignores its system prompt — a Claude Skill that diagnoses before it rewrites.

How to install Agent Prompt Author

This entry records only its repository, not the path inside it, so there is no exact command to give. Open amylyra/agent-prompt-author and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Prompt Author does

Why your AI agent ignores its system prompt — a Claude Skill that diagnoses before it rewrites. Instruction following, prompt optimization, context engineering, prompt audit. Ships its own eval harnesses.

Alternatives in Security

  • Engage.Init — Initialize a new security engagement following the Kill Chain workflow 348 ★
  • Audit Agent Sessions — Analyze all agent sessions from the last 3 days across Claude, Codex, and Gemini 238 ★
  • Eval Audit — /eval-audit — Batch Skill Evaluation 216 ★

README

agent-prompt-author

**A Claude Skill that tells you why your AI agent is ignoring its system prompt — before you rewrite it again.**

Your agent won't follow a rule. You add the rule again, in caps. It still won't follow it. You add an example. Now something else broke. Six edits later the system prompt is 300 lines, nobody remembers which rules are load-bearing, and it behaves worse than it did in week one.

That loop is the problem this solves. Not by writing you a better prompt — by finding out whether the prompt was ever the thing that was broken.

Works on system prompts, orchestrator instructions, subagent delegation contracts, and tool descriptions, for agents built on Claude, GPT-5.6, or both. Instruction following, prompt optimization, context engineering, and prompt audit are all the same question underneath: which of these lines is earning its place?

What you get

Say *"review this prompt"* and paste a support agent prompt. It returns this:

ROUTE      F — audit. Structural read, no eval set in play.

COUNT      Rules scope   13 live rules   OVER (budget 8)

FINDING    Three of the 13 are not prose rules at all — they are a schema,
           an enum, and a permission gate wearing sentences. Four more are
           unobservable. Two compete for the same budget. What is left is
           about five real rules, inside budget, no scope split needed.

           Live bug: the enum constrains a `status` field that the declared
           output (reply, sentiment, escalate) does not contain. Nothing in
           prose can reconcile that.

DELTAS     1. "Return valid JSON with reply, sentiment, escalate"  -> schema
              "Exactly one of pending|in_progress|resolved"        -> enum
              "Never refund without a fraud check"                 -> hook
              "Under 200 words"                                    -> max_tokens
              [13 -> 9 rules]

           2. "Never use jargon" fails the invariant test — a technical