Skip to content

feat: skills for creating, reviewing, and auditing an AppKit plugin#257

Open
atilafassina wants to merge 6 commits intomainfrom
build-pluing-skill
Open

feat: skills for creating, reviewing, and auditing an AppKit plugin#257
atilafassina wants to merge 6 commits intomainfrom
build-pluing-skill

Conversation

@atilafassina
Copy link
Copy Markdown
Contributor

@atilafassina atilafassina commented Apr 7, 2026

  • Adds 3 Claude Code skills (slash commands) for the AppKit plugin workflow:
    a. audit-core-plugin.md (new) — Full audit of a core plugin against all best-practices categories
    with a scorecard
    b. review-core-plugin.md (new) — Reviews plugin changes against AppKit best practices (composes with
    review-pr)
    c. create-core-plugin.md (modified) — Minor update to the existing plugin creation skill
  • Adds a shared plugin-best-practices.md reference guide (181 lines) that the review and audit skills
    reference

to test, checkout this PR and try the slash commands

Extracts patterns from the 5 core plugins (analytics, genie, files,
lakebase, server) into a structured reference with 9 sections and
three severity tiers (NEVER/MUST/SHOULD).

Signed-off-by: Atila Fassina <atila@fassina.eu>
Adds a "Load Best Practices Reference" step before scaffolding
decisions so guidelines are applied during plugin creation.

Signed-off-by: Atila Fassina <atila@fassina.eu>
Fixes 3 issues found during dry-run validation against analytics
and files plugins:
- Plugin extends Plugin (not Plugin<TConfig>)
- @internal goes on toPlugin export, not the class
- isInUserContext() patterns clarified per actual usage

Signed-off-by: Atila Fassina <atila@fassina.eu>
Signed-off-by: Atila Fassina <atila@fassina.eu>
- Add cacheKey two-stage pattern guidance to prevent false positives
- Add N/A status option for non-applicable scorecard categories
- Clarify connector scope in structural completeness check
- Add deduplication guidance for cross-category findings
- Add recovery hint to plugin-not-found error message

Signed-off-by: Atila Fassina <atila@fassina.eu>
@atilafassina atilafassina marked this pull request as ready for review April 7, 2026 16:14
Copilot AI review requested due to automatic review settings April 7, 2026 16:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds internal reference material and Claude commands to standardize how AppKit core plugins are created, reviewed, and audited against a shared set of best practices.

Changes:

  • Added a new plugin best-practices reference document with tiered (NEVER/MUST/SHOULD) guidelines across 9 categories.
  • Added new Claude commands to (a) review plugin diffs against the best-practices doc and (b) fully audit a plugin with a scorecard.
  • Updated the existing core-plugin creation command to load and apply the best-practices reference up front.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
.claude/references/plugin-best-practices.md New reference guide defining best practices for manifests, routes, interceptors, OBO/asUser, client config, streaming, testing, and typing.
.claude/commands/review-core-plugin.md New command to compose review-pr with a scoped best-practices review of plugin-related diffs.
.claude/commands/create-core-plugin.md Updated to explicitly load the best-practices reference before scaffolding decisions.
.claude/commands/audit-core-plugin.md New command to audit an entire plugin across all categories and output a scorecard + findings.

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

- Remove trailing slash from route prefix example in best-practices
- Use deterministic directory-existence check instead of name-pattern
  heuristic for plugin vs branch disambiguation in review-core-plugin
- Downgrade defaults.ts from MUST to SHOULD in audit-core-plugin since
  not all plugins (e.g. server, lakebase) require it

Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants