@a2f0/agent-tool 0.1.69 → 0.1.70

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 CHANGED
@@ -5,7 +5,8 @@ where Claude Code, Codex, OpenCode, or Hermes make the changes. It provides shar
5
5
  GitHub, review, validation, and release workflows: independent agent reviews of
6
6
  a committed branch, guarded pushes and squash merges of the exact reviewed
7
7
  commit, package versioning, brand image rendering, screenshot staging with a
8
- framework-free gallery, and compact output for noisy commands. Repository policy stays in `agent-tool.json`; the portable skills
8
+ framework-free gallery, a live SEO probe for websites, and compact output for
9
+ noisy commands. Repository policy stays in `agent-tool.json`; the portable skills
9
10
  coordinate independently reviewed changes.
10
11
 
11
12
  ## Quick start
@@ -82,8 +83,8 @@ validation suite, and release procedures.
82
83
  aggregate gates, release verification, durable validation receipts, and
83
84
  toolchain/protection diagnostics.
84
85
  - [CLI reference](docs/reference.md): existing review, version, skill installation,
85
- user-wide skill links, command capture, import-graph checks, configuration, and
86
- distribution contracts.
86
+ user-wide skill links, command capture, the SEO probe, import-graph checks,
87
+ configuration, and distribution contracts.
87
88
  - [Development](docs/development.md): setup, source layout, validation, and release
88
89
  procedures for this package.
89
90
  - [Images](docs/images.md): declarative brand sources and generated outputs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2f0/agent-tool",
3
- "version": "0.1.69",
3
+ "version": "0.1.70",
4
4
  "packageManager": "bun@1.4.4",
5
5
  "type": "module",
6
6
  "description": "Portable cross-agent review, PR workflows, and shared skills",
@@ -0,0 +1,148 @@
1
+ ---
2
+ name: app-store-readiness
3
+ description: Audit and prepare iOS, Android, and web apps for release, covering platform interface guidance, accessibility, privacy disclosures, store metadata, and likely review blockers. Use for a readiness assessment or pre-submission preparation, not ordinary feature implementation.
4
+ ---
5
+
6
+ # App Store Readiness
7
+
8
+ Produce an evidence-backed release decision for the requested platforms.
9
+ Treat store approval, build acceptance, automated accessibility checks, and
10
+ human usability as separate outcomes. A successful build or beta upload does
11
+ not establish readiness.
12
+
13
+ ## Establish the candidate
14
+
15
+ Read the repository's instructions, release documentation, and readiness
16
+ guide (`docs/readiness.md` when present). Identify the source revision, app
17
+ IDs, version/build, supported devices and OS/browser versions, distribution
18
+ tracks, and the artifact actually tested. Map the user journeys and
19
+ applicable features: accounts, payments, user content, ads/tracking,
20
+ sensitive permissions, children, background work, local storage, and external
21
+ services. Mark irrelevant checks **N/A** with a reason.
22
+
23
+ Use the user's scope. A report-only request stays read-only.
24
+ Preparation/dogfooding can include reversible fixes and local tests. This
25
+ skill does not by itself authorize uploads, submission, publication, messages
26
+ to reviewers, changes to pricing or store declarations, or purchases. Existing
27
+ explicit authorization still applies; do not ask for it again. Do not
28
+ fabricate review contacts, privacy answers, age ratings, or product claims.
29
+
30
+ ## Check the applicable platforms
31
+
32
+ Read only the references for the requested platforms:
33
+
34
+ - [iOS / iPadOS](references/ios.md): Apple review risks, HIG,
35
+ accessibility, and submission evidence.
36
+ - [Android](references/android.md): Play policy, Material/Compose
37
+ accessibility, release behavior, and console evidence.
38
+ - [Web](references/web.md): WCAG, browser behavior, privacy/support pages,
39
+ and deployment evidence.
40
+
41
+ Open the current official sources linked there. Record the access date and
42
+ the exact requirement, deadline, exception, and distribution context that
43
+ affect this candidate. Do not reuse remembered target API, SDK, billing, or
44
+ regional payment rules. If a documentation page is only a JavaScript shell,
45
+ try its official linked documentation or an official text/JSON representation
46
+ before relying on it. If a source is inaccessible, mark that decision
47
+ unverified rather than silently assuming it is current. Distinguish mandatory
48
+ store policies from interface recommendations, chosen accessibility targets,
49
+ and repository conventions. Do not present a guideline preference as certain
50
+ rejection.
51
+
52
+ ## Gather evidence, repair, and retest
53
+
54
+ Trace important claims from listing/policy → source and dependencies → built
55
+ artifact → runtime behavior. Run the repository's documented readiness lanes
56
+ (`docs/readiness.md`) when present against the candidate for artifact and
57
+ store-record evidence; their reports leave manual, declaration, and policy
58
+ checks unverified by design. Inspect
59
+ public links and actual store configuration when access is available; never
60
+ infer console completion from local metadata files. Keep credentials,
61
+ reviewer contact details, user records, and private diagnostics out of reports
62
+ and Git. Use local, disposable test data and dedicated devices where
63
+ available.
64
+
65
+ Exercise launch, the core task, settings, dismissal/back navigation,
66
+ background/foreground, and persistence/failure paths. Include a compact
67
+ layout, large text/zoom, light/dark modes, localization, and relevant
68
+ assistive input. For accessibility, inspect names, roles, states, reading
69
+ order, focus, adjustment actions, contrast, and target sizes. Test the
70
+ shipping configuration, including minification and extensions/widgets where
71
+ applicable. Follow the repository's validation commands; do not invent a
72
+ substitute gate.
73
+
74
+ Record reproducible failures with platform, device/configuration, affected
75
+ journey, and supporting evidence. Repair actionable issues within scope and
76
+ retest the affected paths. If fixing one finding changes data flows,
77
+ permissions, commerce, or declared capabilities, reconcile the resulting
78
+ policy/metadata impact. Escalate product decisions only when needed; keep
79
+ unrelated checks moving. Do not add accounts, analytics, permission prompts,
80
+ or generic compliance UI merely to satisfy an inapplicable checklist.
81
+
82
+ ## Prepare the reviewer packet
83
+
84
+ Treat what the reviewer receives as part of the candidate. Before a first
85
+ submission, and whenever the core flow changes, the review notes answer
86
+ without being asked:
87
+
88
+ - the app's purpose and audience, the problem it solves, and why it is worth
89
+ having over established apps in its category;
90
+ - how to reach each main feature from launch, with demo credentials, sample
91
+ files, or a statement that none are needed;
92
+ - each external service the core features rely on (data providers,
93
+ authentication, payments, AI), or a statement that there are none;
94
+ - regional differences in features or content, or confirmation that there are
95
+ none;
96
+ - authorization for regulated services or third-party material, or why it
97
+ does not apply;
98
+ - where to find a screen recording on a physical device running the latest
99
+ OS, starting at launch and covering the typical flow plus any account
100
+ creation, login, and deletion, user-content reporting and blocking, and
101
+ access to paid content.
102
+
103
+ Apple sends exactly this list as a Guideline 2.1 "Information Needed" request,
104
+ which costs a first submission a full review round trip. Keep the notes under
105
+ version control when the repository keeps its listing metadata, guard their
106
+ coverage with a test, and keep recordings outside Git. Never commit demo
107
+ credentials: enter them in the console's sign-in fields (App Store Connect's
108
+ App Review Information, Play Console's App access) and have the committed notes
109
+ say where they are. Check every claim in the
110
+ notes against the submitted build. A recording or physical-device test the
111
+ agent cannot perform is an owner prerequisite with an exact next action, never
112
+ a pass.
113
+
114
+ ## Deliver the readiness record
115
+
116
+ Use the repository's existing report convention or a concise PR attachment.
117
+ Include:
118
+
119
+ - Candidate revision/artifact, audit date, devices, commands, and official
120
+ source links.
121
+ - Per-platform result: **ready within tested scope**, **not ready**, or
122
+ **incomplete**.
123
+ - Findings with severity (blocker / major / minor / advisory), evidence,
124
+ source or design basis, remediation, and retest outcome. Separate fixed
125
+ findings from open ones.
126
+ - A coverage table with **verified**, **failed**, **unverified**, and
127
+ **N/A**. A source-only inspection is not a runtime pass; a simulator is not
128
+ physical-device coverage; an automated scan is not a VoiceOver/TalkBack
129
+ session or complete WCAG conformance.
130
+ - Remaining release prerequisites with owner and an exact next action.
131
+ Unverified submission-critical items prevent a ready verdict. Explain
132
+ inaccessible-console or manual-testing limits without claiming those checks
133
+ passed.
134
+
135
+ Keep reusable procedure in the skill and dated findings in the report.
136
+ Re-audit changes made after the tested candidate; do not carry evidence across
137
+ unrelated artifacts. When shipping is requested, hand the concrete fixes and
138
+ unresolved release prerequisites to the repository's shipping workflow.
139
+ Merging improvements is distinct from declaring the app ready for public store
140
+ submission.
141
+
142
+ ## Ownership
143
+
144
+ agent-tool (`a2f0/agent-tool`) owns this skill in `skills/app-store-readiness/`.
145
+ Repositories get it from `agent-tool skills install --apply`; do not edit the
146
+ installed copy. Change it in agent-tool by PR. A repository's readiness guide,
147
+ lanes, devices, and store records belong in its own docs, such as
148
+ `docs/readiness.md`.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "App Store Readiness"
3
+ short_description: "Audit iOS, Android, and web release readiness"
4
+ default_prompt: "Use $app-store-readiness to check this app for release blockers, accessibility issues, and store review risks."
@@ -0,0 +1,53 @@
1
+ # Android / Google Play
2
+
3
+ ## Policy and submission
4
+
5
+ Read the [Developer Policy Center](https://play.google/developer-content-policy/)
6
+ for the app's applicable policies, then check
7
+ [User Data](https://support.google.com/googleplay/android-developer/answer/10144311)
8
+ and [Data safety](https://support.google.com/googleplay/android-developer/answer/10787469).
9
+ Reconcile the app and SDK data flows with the public policy, in-app policy
10
+ access, console answers, retention/deletion, backups, permissions, and account
11
+ deletion where applicable. No accounts or no collection can make individual
12
+ requirements N/A; it does not remove all privacy-policy obligations. Check
13
+ children, content, ads, payments, and sensitive permissions only when the
14
+ product/distribution context makes them relevant.
15
+
16
+ Verify current [target API requirements](https://support.google.com/googleplay/android-developer/answer/11926878)
17
+ for the artifact, form factor, update/new-app status, date, and any approved
18
+ extension. Consult
19
+ [core app quality](https://developer.android.com/docs/quality-guidelines/core-app-quality)
20
+ for compatibility and behavior checks. Do not upgrade dependencies merely
21
+ because a newer SDK exists; distinguish an applicable submission floor from a
22
+ lint recommendation.
23
+
24
+ Inspect the merged release manifest and bundle: application ID, version code,
25
+ target/min SDK, signature, exported components, permissions, foreground
26
+ service types, native libraries, and platform/page-size compatibility if
27
+ native code is present. Test the minified (R8) output when the release build
28
+ minifies. Verify console declarations, app access, rating/target audience,
29
+ listings/screenshots, privacy URL, signing/track, production-access testing
30
+ eligibility, pre-launch reports, and policy issues with available console
31
+ evidence. Internal-track upload success is not proof of production approval or
32
+ eligibility.
33
+
34
+ ## Interface and accessibility
35
+
36
+ Use [Compose accessibility defaults](https://developer.android.com/develop/ui/compose/accessibility/api-defaults)
37
+ and [semantics](https://developer.android.com/develop/ui/compose/accessibility/semantics)
38
+ for native UI, and the web reference for content rendered in a WebView. Check
39
+ meaningful labels and roles, mutually exclusive selections, slider adjustment,
40
+ TalkBack traversal, focus return, headings, and non-color indicators. Check
41
+ 48dp effective touch targets, large font/display settings, contrast in
42
+ light/dark, compact/large windows, edge-to-edge insets, rotation, and back
43
+ behavior, including that Back at the root leaves the app. Default components
44
+ can still be wrong when custom palettes or semantics override them.
45
+
46
+ Exercise cold launch, upgrade/persistence, process recreation, offline/error
47
+ behavior, permission denial, background limits, and the system integrations
48
+ the app actually uses. For media, include notifications, audio focus,
49
+ lock-screen controls, route changes, and widgets; for a WebView shell, include
50
+ file pickers and the camera, downloads and sharing, links that leave the app,
51
+ and the WebView versions the app supports. Use the accessibility tree and
52
+ automation as evidence of semantics and behavior; do not claim a TalkBack pass
53
+ without a screen-reader session.
@@ -0,0 +1,82 @@
1
+ # iOS and iPadOS
2
+
3
+ ## Review and submission
4
+
5
+ Consult [App Review Guidelines](https://developer.apple.com/app-store/review/guidelines/)
6
+ for applicable completeness, metadata, business, design, and privacy rules.
7
+ Check crashes, reviewer access, truthful screenshots/descriptions, accessible
8
+ privacy links, and any account deletion, user-content moderation, sign-in, or
9
+ digital-purchase obligations that actually apply. Small feature sets require a
10
+ specific usefulness assessment; do not equate simplicity with automatic
11
+ rejection. Confirm review notes explain non-obvious behavior.
12
+
13
+ Write the App Review Information notes as the skill's reviewer packet; the
14
+ field holds at most 4,000 characters. Apple reviews on physical devices, so
15
+ install the exact candidate from TestFlight on a physical iPhone (and iPad when
16
+ supported) running the latest iOS release, walk the flow in the notes, and
17
+ record that session for the reviewer; simulator runs do not substitute.
18
+
19
+ Check these common first-review risks against the app and its metadata:
20
+
21
+ - Guideline 4.3(b): apps in the categories it calls well established (such as
22
+ sound effects, flashlights, simple timers, and wallpapers) and their close
23
+ neighbors (noise and sleep-sound players) are accepted only when
24
+ meaningfully different or improved. State the difference
25
+ concretely in the description and notes, and list the features beyond the
26
+ basic one; a pitch built on doing a few things simply invites spam or
27
+ minimum-functionality (4.2) scrutiny.
28
+ - Guideline 2.3.10: no names, icons, links, or imagery of other mobile
29
+ platforms or marketplaces (Android, Google Play) in the iOS app or its
30
+ metadata, including About screens and cross-promotion, unless they serve
31
+ specific, approved interactive functionality. Search the shipped strings in
32
+ every language and the listing, and guard them with a test.
33
+ - Guideline 1.4.1: diagnosis, treatment, and health-measurement claims get
34
+ greater scrutiny. Back any such claim with disclosed methodology and any
35
+ regulatory clearance, and remind users to consult a doctor; an app that makes
36
+ none should say in the notes that it is not a medical device.
37
+
38
+ Verify current [submission requirements](https://developer.apple.com/news/upcoming-requirements/)
39
+ against the archive's SDK/toolchain, not just the installed Xcode. Check
40
+ app/extension IDs, entitlements, supported devices, signing, build numbering,
41
+ and processed build status. Use
42
+ [App Store Connect guidance](https://developer.apple.com/help/app-store-connect/manage-submissions-to-app-review/submit-an-app-for-review/)
43
+ to check the selected build, screenshots, privacy/support URLs, review
44
+ contact/access, age rating, export compliance, agreements, availability, and
45
+ pricing. Report unknown console fields separately from repository metadata. Do
46
+ not submit or fill declarations by inference.
47
+
48
+ Compare the implementation and SDKs with
49
+ [app privacy details](https://developer.apple.com/app-store/app-privacy-details/)
50
+ and [privacy manifests](https://developer.apple.com/documentation/bundleresources/privacy-manifest-files).
51
+ Check required-reason API use in every target and embedded SDK, and the
52
+ manifests and signatures Apple requires of
53
+ [commonly used SDKs](https://developer.apple.com/support/third-party-SDK-requirements/).
54
+ Distinguish on-device storage from transmission, and account for backups and
55
+ external links. Inspect the packaged manifests; a checked-in file is not proof
56
+ it is included in the archive.
57
+
58
+ ## Interface and accessibility
59
+
60
+ Use [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/)
61
+ and [accessibility guidance](https://developer.apple.com/design/human-interface-guidelines/accessibility).
62
+ Exercise iPhone and iPad when both are supported, including compact/landscape
63
+ layouts, safe areas, keyboard, sheet scrolling/dismissal, Dynamic Type through
64
+ accessibility sizes, and light/dark contrast. Check effective touch targets,
65
+ not icon dimensions alone. In a WebView shell, confirm that web content follows
66
+ Dynamic Type, scrolled content stays clear of the status bar, and the keyboard
67
+ leaves focused fields and dialog actions visible on the smallest supported
68
+ iPhone.
69
+
70
+ Inspect the accessibility tree and test VoiceOver names, roles, values,
71
+ selected states, reading order, adjustable controls, focus after dismissal,
72
+ and chart alternatives. Check Switch Control/keyboard and reduced motion when
73
+ relevant. Use Accessibility Inspector or available UI automation to supplement
74
+ manual interaction, and record what was actually run.
75
+
76
+ Test the app's critical system integrations. For audio and background apps,
77
+ that means the lock screen, route changes, interruptions, competing audio, and
78
+ stopping/restarting from widgets or system controls; for others, substitute
79
+ theirs, such as camera and photo access, file sharing, emailed or universal
80
+ links, and networking in a WebView shell. Include offline/denied-permission/
81
+ error behavior and upgrade persistence. Physical-device behavior remains
82
+ unverified until tested there.
@@ -0,0 +1,38 @@
1
+ # Web release
2
+
3
+ A normal website has no App Store review. Evaluate web release quality and the
4
+ pages used by store reviewers. If the web app is packaged for a store, also
5
+ apply that store's reference and record the wrapper/distribution context.
6
+
7
+ Use [WCAG 2.2](https://www.w3.org/TR/WCAG22/) as the accessibility reference;
8
+ identify the chosen conformance level rather than claiming every
9
+ recommendation is a store rule. Check semantic names/roles/states, keyboard
10
+ operation and visible focus, modal focus and Escape/return behavior, status
11
+ announcements, contrast, target size/spacing, accessible charts, zoom/reflow,
12
+ text spacing, and reduced motion as relevant. WCAG target-size exceptions
13
+ differ from native design recommendations. A scan is evidence for the rules it
14
+ checks, not proof of full conformance. Provide manual keyboard and
15
+ screen-reader coverage or explicitly leave it unverified.
16
+
17
+ Test a production build in the supported browser engines, with a compact 320
18
+ CSS-pixel viewport and enlarged text/zoom, as well as a desktop window. Verify
19
+ public support/privacy links, metadata, language selection, form/control
20
+ labels, and all claimed features. Check that sticky controls do not obscure
21
+ focus and that dialogs remain scrollable on short viewports. Consult
22
+ [WAI dialog guidance](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/)
23
+ when implementing custom modal behavior; native semantics generally need less
24
+ custom code.
25
+
26
+ Inspect network requests, first-party hosting and any third-party services,
27
+ browser storage, and policy statements together. Exercise reload,
28
+ disabled/unavailable storage, offline startup versus an already-loaded page,
29
+ and visible failures. For media, test user-gesture startup,
30
+ background/suspension behavior, switching/stopping, and system controls. Do
31
+ not promise mobile-style background guarantees merely because desktop playback
32
+ worked.
33
+
34
+ For deployment readiness, check the built assets and hosting
35
+ preview/configuration through the documented workflow. Distinguish
36
+ local-candidate evidence from a live site's older version. If deployment is
37
+ authorized, verify its version and critical journeys afterward; otherwise
38
+ report the remaining deploy step without publishing as part of this audit.
@@ -0,0 +1,129 @@
1
+ ---
2
+ name: audit-trails
3
+ description: Audit application workflows for missing or incomplete audit trails and produce an evidence-backed report or GitHub issue. Use for a requested audit-coverage review, not a general security review or a checklist inspection within the product.
4
+ ---
5
+
6
+ # Audit Trails
7
+
8
+ Trace consequential application changes from their entrypoints to durable
9
+ history and authorized readers. Identify missing events, incomplete attribution,
10
+ misleading events, and inaccessible history. A timestamp, application log, or
11
+ current-state row alone is not a history of who changed what.
12
+
13
+ Work from repository code and local tests. Do not read production data or
14
+ credentials, implement findings, deploy, or ship changes as part of this skill.
15
+ Create or update a GitHub issue when the user requested one; otherwise return
16
+ the report without publishing. Honor authorization already given in the session.
17
+
18
+ ## Establish scope
19
+
20
+ Start [usage tracking](references/usage-receipts.md) now, before audit work or
21
+ delegation. Save a baseline and run/batch identity beside the private report;
22
+ checkpoint usage with coverage after each slice and before a pause. A resume
23
+ keeps the run identity, previous receipts, and publication handle, but starts a
24
+ new nonoverlapping batch. Missing counters must be disclosed, not estimated.
25
+
26
+ Read repository guidance and its product and retention documentation. Resolve
27
+ the repository with `gh repo view --json nameWithOwner`. Record the audited
28
+ commit, dirty paths, requested focus, and exclusions. Do not claim a committed
29
+ revision describes uncommitted behavior. Use a clean worktree if dirty files
30
+ would affect a probe of the committed revision.
31
+
32
+ Read the repository's own audit notes (its `AGENTS.md` or the docs it points
33
+ to) when present: they may map entrypoints, the shared event store and its
34
+ helpers, migrations, readers, capability checks, and a local probe harness.
35
+ Treat such a map as a starting point, not a coverage claim. Otherwise discover
36
+ the entrypoints, event stores, migrations, and readers yourself.
37
+
38
+ With no focus, inventory the application and prioritize access changes,
39
+ destructive actions, financial changes, and externally initiated work. Review
40
+ manageable slices sequentially; keep a coverage table so partial work is not
41
+ reported as a complete audit. With `resume <report-path>`, verify the recorded
42
+ repository and revision, reuse its evidence, and continue unchecked paths. If
43
+ the revision changed, revalidate affected findings before carrying them forward.
44
+
45
+ Keep reports and scratch probes outside the checkout unless the user requested
46
+ a repository artifact. Record the report's absolute path for resuming.
47
+
48
+ ## Trace coverage
49
+
50
+ Inventory write entrypoints: UI/API mutations, authentication hooks, webhooks,
51
+ scheduled jobs, inbound messages, maintenance scripts, and shared helpers used
52
+ by REST or MCP. Read-only sensitive access is a separate requirement; flag it
53
+ only when repository policy or the requested scope requires an access log.
54
+
55
+ For each selected workflow, follow:
56
+
57
+ 1. Actor and organization resolution, authorization, and validation.
58
+ 2. The actual persisted mutation and its success, no-op, and failure paths.
59
+ 3. Event writes through direct calls, shared helpers, database triggers, or
60
+ provider-specific histories. Read migrations in order, including dropped
61
+ and replacement triggers; when trigger coverage is uncertain, inspect the
62
+ final schema in a scratch database with every migration applied, not one
63
+ built before a later migration. Search results are leads, not proof of
64
+ absence.
65
+ 4. Atomicity between the change and its event; conditional writes, stale saves,
66
+ retries, and duplicate webhooks must not produce misleading success events.
67
+ 5. Stable action, resource/subject IDs, time, actor snapshot, and minimal useful
68
+ change details. Distinguish the initiating human, API key/channel, and system
69
+ or provider actor. Never recommend fabricating a human for background work.
70
+ 6. Authorized retrieval in the workspace feed and relevant record history,
71
+ tenant/capability boundaries, and what remains after deletion or retention.
72
+
73
+ Treat a separate contract or provider history as existing coverage. Report a
74
+ shared-feed integration gap separately from a missing durable trail. Likewise,
75
+ documented purge behavior is not automatically a defect, and historical gaps
76
+ cannot be repaired by inventing actors, timestamps, or old values.
77
+
78
+ Proposed details should use an allowlist. Do not copy secrets, tokens, document
79
+ contents, screening reports, or unrestricted payloads into events or issues.
80
+ If a new event would expose restricted data through a broadly readable feed,
81
+ include the required reader permission change in the proposal.
82
+
83
+ ## Verify and rank
84
+
85
+ Before promoting a finding, trace the write and all plausible event mechanisms.
86
+ Use an existing test or a small synthetic local probe when it can resolve a
87
+ material uncertainty. A useful probe changes a record, inspects durable history,
88
+ and checks rollback, replay, or reader isolation where relevant. Record the
89
+ command and result. Do not create tests that merely search for helper names.
90
+
91
+ Label evidence **Reproduced** (a local behavior probe or test) or **Traced**
92
+ (a complete source path). Keep unresolved suspicions under **Unverified leads**.
93
+ Do not present absence from a grep result as a verified finding.
94
+
95
+ Rank impact with a concrete explanation: high for changes to access, money,
96
+ or destructive operations that cannot be attributed; medium for ordinary
97
+ business changes or missing shared visibility with another durable trail;
98
+ low for presentation or convenience gaps. Adjust to actual product behavior.
99
+
100
+ Search existing issues before publication. Link matching work and avoid opening
101
+ duplicates. Recheck code before reusing a historical finding.
102
+
103
+ ## Deliver
104
+
105
+ Use [the report template](references/report-template.md). Each finding needs a
106
+ trigger, actual and expected behavior, revision-pinned evidence, impact,
107
+ recommended event/reader behavior, and observable acceptance criteria. Include
108
+ checked coverage, unverified leads, and explicit limitations.
109
+
110
+ Include an **Audit usage receipt** in every report, even for partial work,
111
+ zero findings, or unavailable counters. Follow [usage publication and
112
+ readback](references/usage-receipts.md#publish-and-resume): the receipt goes in
113
+ the issue body so findings and accounting publish together. Preserve existing
114
+ publication and security-disclosure authorization; without it, save locally.
115
+ Prefer one ranked report issue unless the user requested separate issues. If a
116
+ matching issue already covers the audit, update it only when authorized to do
117
+ so; otherwise link it in the report. Never recreate an issue to retry a failed
118
+ receipt update. Report incomplete publication alongside the saved report.
119
+
120
+ Return the issue or report link, the highest-impact gaps, what was actually
121
+ checked, and remaining scope. Discovery does not imply the gaps were fixed.
122
+
123
+ ## Ownership
124
+
125
+ agent-tool (`a2f0/agent-tool`) owns this skill in `skills/audit-trails/`.
126
+ Repositories get it from `agent-tool skills install --apply`; do not edit the
127
+ installed copy. Change it in agent-tool by PR. Repository-specific audit maps,
128
+ probe harnesses, and retention rules go in that repository's `AGENTS.md` or the
129
+ docs it points to.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Audit Trails"
3
+ short_description: "Find missing audit trails and report verified gaps"
4
+ default_prompt: "Use $audit-trails to review this app's audit coverage and report verified gaps."
@@ -0,0 +1,78 @@
1
+ # Audit trail coverage report
2
+
3
+ Record repository, full commit SHA, date, dirty-path treatment, scope,
4
+ exclusions, and whether this is a complete or partial review of that scope.
5
+
6
+ ## Coverage
7
+
8
+ | Workflow | Mutation and event mechanisms checked | Reader checked | Status |
9
+ | --- | --- | --- | --- |
10
+
11
+ Use covered, gap, partial, or unchecked. Covered means the stated behavior
12
+ was traced or tested; it does not certify every concurrency or failure path.
13
+
14
+ ## Ranked findings
15
+
16
+ | ID | Finding | Impact | Evidence | Existing issue |
17
+ | --- | --- | --- | --- | --- |
18
+
19
+ For each finding:
20
+
21
+ - **Trigger and result:** a concrete action and the missing or misleading
22
+ history it leaves. Explain what attribution or reconstruction is lost.
23
+ - **Evidence:** source links pinned to the audited commit and relevant line
24
+ numbers; trace the mutation, triggers/helpers, and readers. Include probe
25
+ commands, outcomes, and artifact paths for Reproduced findings.
26
+ - **Existing coverage:** separate histories, current-state actor fields,
27
+ retention policy, and why they do or do not satisfy this case.
28
+ - **Recommendation:** action/resource/actor/details and transactional behavior;
29
+ required reader permissions and visibility; no speculative historical data.
30
+ - **Acceptance criteria:** observable success, no-op/failure, attribution,
31
+ isolation, and retry/retention behavior appropriate to the finding.
32
+
33
+ ## Unverified leads and remaining scope
34
+
35
+ Separate incomplete traces and unavailable tests from ranked findings. Record
36
+ the next verification step and any unchecked entrypoints. A clean source trace
37
+ does not prove deployed migrations, production data, or runtime behavior.
38
+
39
+ ## Audit usage receipt
40
+
41
+ Follow [usage tracking and publication](usage-receipts.md). Replace placeholders;
42
+ use `unavailable (reason)` rather than a fabricated zero. Publish this section
43
+ inside the report body, bounded by the same run's markers on every update:
44
+
45
+ <!-- audit-usage:RUN_ID:begin -->
46
+
47
+ - **Run / batches / scope:** opaque run ID; batch IDs; full, partial, or resumed.
48
+ - **Revision:** audited repository and full commit; dirty-path treatment.
49
+ - **Skill / harness:** audit-trails version (the `agentToolVersion` that
50
+ `.agent-tool-skills.json` records) or content hashes (including loaded
51
+ references); harness version; provider/model and effort if exposed.
52
+ - **Evidence / baseline:** sanitized source kind and counter semantics;
53
+ dedicated run or before/after boundary; evidence digest, not a private path.
54
+ - **Cutoff / outcome:** last completed request before publication, or child exit
55
+ observed by outer launcher; timestamp; completed, partial, or interrupted.
56
+
57
+ | Batch / actor / provider / model | Input | Output | Cache read | Cache write | Reasoning | API calls | Duration |
58
+ | --- | --- | --- | --- | --- | --- | --- | --- |
59
+ | Fill one row per measured scope; distinguish external CLI auditors | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable | unavailable |
60
+
61
+ - **Coverage / rollup:** coordinator, children, auxiliary calls, and external
62
+ CLIs included/excluded; only nonoverlapping measured subtotals; no grand total
63
+ for partial coverage. State whether cache/reasoning are already included.
64
+ - **Limitations:** unavailable fields and reasons, shared-session contamination,
65
+ model attribution limits, unobservable tail/publication/final reply. Label
66
+ optional cost as an estimate, not subscription charges or quota consumption.
67
+
68
+ <!-- audit-usage:RUN_ID:end -->
69
+
70
+ Keep private checkpoint paths and raw evidence out of the published report.
71
+ Locally record the canonical issue URL and the receipt's run marker; for this
72
+ body-based publication, receipt location is the issue body (comment ID: not
73
+ applicable). Keep that handle even if a later update or verification fails.
74
+
75
+ ## Suggested implementation order
76
+
77
+ Order by impact and dependencies. State which changes, if any, were made in
78
+ the current task separately from the audit's findings.