Skip to content

Refresh agent and skill docs for the current plugin surfaces#184

Merged
pfefferle merged 1 commit into
trunkfrom
update/agents-skills
Jul 7, 2026
Merged

Refresh agent and skill docs for the current plugin surfaces#184
pfefferle merged 1 commit into
trunkfrom
update/agents-skills

Conversation

@pfefferle

Copy link
Copy Markdown
Member

Proposed changes:

  • security-audit agent (the bulk): it predated the ?atproto preview endpoint, the includes/rest/ controllers, the retry-ladder cron, and the mention-resolution egress surface. It gains:
    • an In-House Pre-Release Findings (2026) history section encoding the four regression classes recent reviews caught (blanket-capability disclosure on per-post surfaces, REST_REQUEST outliving its branch, write-on-GET blob uploads, per-call egress caps misread as per-publish);
    • a dedicated Section 18 auditing the ?atproto preview (object-level caps, strict read-only invariant, REST_REQUEST scoping, missing nocache_headers() as a known-open item, fall-through behavior, redaction, third-party transformer contract);
    • mention-resolution egress + publish/display parity checks in the record-publishing section;
    • the wp_unschedule_hook()-for-arg-carrying-events rule in the cron section;
    • seven new Recently Noted Patterns, preview curl probes, and the stale claude-opus-4-7[1m] model pin replaced with the opus alias.
  • code-review agent: WordPress 6.2+ → 6.5+ (matches readme.txt), plus four checklist bullets from the same review lessons.
  • dev skill: the documented WP-CLI commands used a nonexistent npm run env script — replaced with working npx wp-env run cli -- wp … forms (verified against the running environment).
  • test skill: the hardcoded 13-file test tree was stale (45+ files today) — replaced with a rot-resistant directory map, plus the three fixture patterns newer tests rely on (atmosphere_identity option, atmosphere_pre_upload_blob stub, pre_http_request tripwire).
  • spec-check agent: knew only at.markpub.markdown of the four shipped content formats — now lists org.wordpress.html (with the in-repo Lexicon doc as canonical), pub.leaflet.content, and blog.pckt.content, and points at the Registry selection mechanism.

Every symbol, hook, option, command, path, and port referenced by the updated docs was verified to exist on trunk; the corrected CLI commands were executed against a running wp-env.

Other information:

  • Have you written new tests for your changes, if applicable? — N/A, documentation for agents/skills only; no shipped code touched.

Testing instructions:

  • composer lint and npm run env-test pass (docs-only diff — 854 tests green).
  • Spot-check factual claims: grep -n "function current_user_can_preview" includes/transformer/class-preview.php, grep -n "OPTION_FORMAT" includes/content-parser/class-registry.php, python3 -c "import json; print(list(json.load(open('package.json'))['scripts']))" (no env script).
  • Run npx wp-env run cli -- wp plugin list to confirm the corrected dev-skill command works.

Changelog entry

Dev-tooling only (.claude/, .agents/) — nothing end-user facing ships; "Skip Changelog" label applied.

  • Automatically create a changelog entry from the details below.

The security-audit agent predated the ?atproto preview endpoint, the
REST controllers, the retry-ladder cron, and the mention-resolution
egress surface. It gains an in-house findings history, a dedicated
preview-endpoint audit section, mention-egress and publish/display
parity checks, the wp_unschedule_hook() rule for arg-carrying events,
new noted patterns, and preview curl probes; the stale model pin is
replaced with the opus alias.

Also fixes concrete staleness elsewhere: the dev skill documented a
nonexistent 'npm run env' script (now npx wp-env run cli), code-review
claimed WordPress 6.2+ where readme.txt requires 6.5, the test skill
listed a 13-file test tree (now a directory map plus the identity /
blob-stub / HTTP-tripwire fixtures), and spec-check knew only one of
the four shipped content formats.
Copilot AI review requested due to automatic review settings July 7, 2026 11:13
@pfefferle pfefferle added the Skip Changelog No changelog entry needed label Jul 7, 2026
@pfefferle pfefferle self-assigned this Jul 7, 2026
@pfefferle
pfefferle requested a review from a team July 7, 2026 11:14
@github-actions github-actions Bot added [Tests] Includes Tests PR includes test changes Docs labels Jul 7, 2026
@pfefferle
pfefferle merged commit fb51a22 into trunk Jul 7, 2026
4 of 5 checks passed
@pfefferle
pfefferle deleted the update/agents-skills branch July 7, 2026 11:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s agent and skill documentation so audits/reviews/testing guidance matches the plugin’s current published surfaces (preview endpoint, REST controllers, cron retry ladder, content formats) and the current local-dev workflow.

Changes:

  • Expand security-audit guidance with 2026 pre-release regression classes, a dedicated ?atproto preview audit section, and new verification probes.
  • Update spec-check and code-review checklists to reflect current content formats and minimum supported WordPress version (6.5+).
  • Refresh dev/test skills with working wp-env/WP-CLI commands and a rot-resistant test directory + fixture map.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.claude/agents/spec-check.md Adds coverage for additional document content $types and points at the parser registry/selection mechanism.
.claude/agents/security-audit.md Major refresh: adds 2026 findings history, dedicated ?atproto audit section, new patterns and curl probes.
.claude/agents/code-review.md Aligns compatibility checklist to WordPress 6.5+ and adds review lessons around capability scoping, read-only GET, egress caps, parity tokenization.
.agents/skills/test/SKILL.md Replaces stale fixed test-tree listing with a directory map and documents common fixtures used by newer tests.
.agents/skills/dev/SKILL.md Replaces nonexistent npm run env ... WP-CLI calls with verified npx wp-env run ... commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +107 to +111
$short_circuit = static function () use ( &$attempted ) {
$attempted = true;
return array( 'blob' => array( 'cid' => 'bafytest' ) );
};
\add_filter( 'atmosphere_pre_upload_blob', $short_circuit );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docs Skip Changelog No changelog entry needed [Tests] Includes Tests PR includes test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants