@testzugang/pi-audit-agents-md 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # @testzugang/pi-audit-agents-md
2
+
3
+ Pi skill to audit AGENTS.md for clarity and safety rule violations.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pi install npm:@testzugang/pi-audit-agents-md
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```text
14
+ /skill:audit-agents-md
15
+ ```
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@testzugang/pi-audit-agents-md",
3
+ "version": "0.1.0",
4
+ "description": "Pi skill to audit AGENTS.md for clarity and safety rule violations",
5
+ "keywords": [
6
+ "pi-package"
7
+ ],
8
+ "license": "MIT",
9
+ "files": [
10
+ "skills",
11
+ "README.md"
12
+ ],
13
+ "pi": {
14
+ "skills": [
15
+ "./skills"
16
+ ]
17
+ },
18
+ "peerDependencies": {
19
+ "@earendil-works/pi-coding-agent": "*"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public",
23
+ "provenance": true
24
+ }
25
+ }
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: audit-agents-md
3
+ description: Use when reviewing, validating, or cleaning up an AGENTS.md file, especially for contradictions, unclear instructions, stale harness-specific tool names, or unsafe automation guidance.
4
+ ---
5
+
6
+ # Audit AGENTS.md
7
+
8
+ ## Core Rule
9
+
10
+ Audit **only `AGENTS.md`**. Do not read, summarize, validate, or suggest changes to `CLAUDE.md` unless the user explicitly changes the task.
11
+
12
+ This skill exists because default audit behavior tends to drift into `CLAUDE.md` comparison. Do not do that.
13
+
14
+ ## Workflow
15
+
16
+ 1. Locate `AGENTS.md` in the current project root.
17
+ - If absent, report that no root `AGENTS.md` was found and stop.
18
+ - Do not search for `CLAUDE.md`.
19
+ 2. Read `AGENTS.md` completely.
20
+ 3. Audit using the checklist below.
21
+ 4. Produce a prioritized report.
22
+ 5. Do not edit files automatically. If the user asks for fixes after the report, make a focused plan first.
23
+
24
+ ## Audit Checklist
25
+
26
+ | Area | Check |
27
+ | ------------- | ----------------------------------------------------------------------------------------------- |
28
+ | Structure | Clear title, headings, and readable markdown. |
29
+ | Scope | Instructions are relevant for coding agents working in this repository. |
30
+ | Precedence | No claims to override system, developer, or direct user instructions. |
31
+ | Consistency | No duplicated, conflicting, or circular rules. |
32
+ | Actionability | Agents can tell what to do, when to do it, and what to avoid. |
33
+ | Tooling | Tool names and commands match the intended harness, or are written generically. |
34
+ | Safety | No overly broad destructive automation, secret exposure, or unreviewed deployment instructions. |
35
+ | Freshness | No stale references to removed commands, renamed files, or old workflows. |
36
+
37
+ ## Stale Harness-Specific Leftovers
38
+
39
+ Flag Claude Code-specific content when it appears in `AGENTS.md` but the file is intended for pi or generic coding agents:
40
+
41
+ - `AskUserQuestion`, `WebFetch`, `Glob`, `Grep`, `Read`, `Write`, `Edit`, `Bash` as Claude Code tool names
42
+ - `$ARGUMENTS`, `$IF(...)`, command-frontmatter patterns
43
+ - instructions to use the Claude Code `Skill` tool
44
+ - slash commands that do not exist in pi
45
+ - hook/config references that only make sense in Claude Code
46
+
47
+ Suggest capability-oriented wording when appropriate, such as “ask the user with a structured choice tool” instead of a harness-specific tool name.
48
+
49
+ ## Report Format
50
+
51
+ Use this format:
52
+
53
+ ```text
54
+ AGENTS.md Audit
55
+
56
+ Summary:
57
+ - Overall status: pass | needs attention
58
+ - Highest priority issue: <one sentence or "none">
59
+
60
+ Findings:
61
+ 1. [High|Medium|Low] <finding title>
62
+ Evidence: <quote or section name>
63
+ Why it matters: <impact>
64
+ Suggested change: <concrete fix>
65
+
66
+ 2. ...
67
+
68
+ Out of scope:
69
+ - CLAUDE.md was not audited.
70
+ ```
71
+
72
+ If there are no findings, say so clearly and still include the out-of-scope note.
73
+
74
+ ## Common Mistakes
75
+
76
+ | Mistake | Correction |
77
+ | ---------------------------------------------- | ---------------------------------------------------------------------------- |
78
+ | Reading `CLAUDE.md` because it might conflict. | Do not read it. The user asked for `AGENTS.md`. |
79
+ | Rewriting the file during audit. | Report first. Edit only after an explicit follow-up request. |
80
+ | Reporting vague advice like “improve clarity.” | Quote the unclear text and propose a concrete replacement direction. |
81
+ | Treating every Claude-specific word as wrong. | Flag only when it is stale, incompatible, or unclear for the target harness. |