Skip to content

feat(education): add check-only setup skill for userConfig - #2459

Merged
kyle-sexton merged 3 commits into
mainfrom
cursor/education-setup-skill-63e1
Aug 12, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
cursor/education-setup-skill-63e1

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Fixes #988 (education half)

Adds /education:setup — a check-only setup skill for quiz_policy and report_library_dir.

repo-hygiene: left exempt. Its single boolean kill-switch is below the setup-requirement bar per the philosophy's trivial-scalar carve-out; no setup skill added there.

Test plan

  • Skill follows the userConfig-only setup contract (bug-report/dometrain pattern)

Related

@cursor

cursor Bot commented Aug 12, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 42s —— View job


Security Review

  • Gather context (PR diff, changed files)
  • Review changed files for security issues
  • Report findings

Scope: All 5 changed files reviewed via git diff origin/main...HEAD:
plugin.json (version bump only), CHANGELOG.md, README.md, skills/setup/SKILL.md (new), skills/setup/evals/evals.json (new).

Findings: none.

This PR adds a check-only Skill (natural-language instructions consumed by the model) plus a version bump, changelog entry, and README note. There is no executable code, no GitHub Actions workflow changes, no shell/script content, and no changes to the plugin's userConfig schema or permissions — plugin.json's only diff is 0.6.0 → 0.6.1.

Reviewed specifically for this PR's risk surface:

  • Settings/config tampering: SKILL.md explicitly instructs the skill not to read or write settings.json, settings.local.json, managed settings, or pluginConfigs directly, and to route all reconfiguration through Claude Code's native /plugin configure flow. Consistent with the read-only "check" contract described in the PR body.
  • Path handling: No file paths are constructed or written from user input; report_library_dir is only read and reported, never expanded/globbed/written by this skill.
  • Prompt injection / trust boundary: The skill is static, repo-authored content with no ingestion of untrusted external data (e.g., no fetching of remote URLs or issue/PR content into instructions).
  • evals.json: Static eval fixtures only, no executable content.

No CRITICAL, IMPORTANT, or SUGGESTION findings to report.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea80140a0e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread plugins/education/skills/setup/SKILL.md Resolved
@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 57s —— View job


Security Review

  • Gather context (PR diff, changed files)
  • Review changed files for security issues
  • Report findings

Scope: All 5 files changed in this PR, reviewed via git show HEAD (the PR's single commit) against origin/main: plugin.json (version bump), CHANGELOG.md, README.md, skills/setup/SKILL.md (new), skills/setup/evals/evals.json (new).

Findings: none.

This PR adds a check-only Skill (natural-language instructions consumed by the model), a documentation note, a changelog entry, and a patch version bump. There is no executable code, no shell/script content, no GitHub Actions workflow changes, and no change to the plugin's userConfig schema or declared permissions.

Reviewed specifically for this PR's risk surface:

  • Settings/config tampering: SKILL.md#L20-L21 explicitly instructs the skill not to read or write settings.json, settings.local.json, managed settings, or pluginConfigs directly, and to route reconfiguration only through Claude Code's native /plugin configure flow. The "Boundaries" section (SKILL.md#L58) reiterates "Do not write Claude Code settings." Consistent with the read-only "check" contract described in the PR body.
  • Path handling: report_library_dir is only read from rendered userConfig and reported back to the user — it is never expanded, globbed, constructed, or written to by this skill (SKILL.md#L27-L30). No path-traversal or injection surface introduced.
  • Untrusted input / prompt injection: The skill's only inputs are Claude-Code-rendered userConfig values (quiz_policy, report_library_dir), which are set through Claude Code's own configuration prompt, not free-text ingested from external/untrusted sources (e.g., issue bodies, fetched URLs). No new trust-boundary crossing.
  • evals.json: Static eval fixtures/prompts only; no executable content, no secrets.
  • Version bump / manifest: plugin.json diff is limited to 0.6.0 → 0.6.1; no permission or schema changes.

No CRITICAL, IMPORTANT, or SUGGESTION findings to report.

Note: a non-security correctness observation was raised in a separate Codex review comment (report-library fallback path when report_library_dir resolves inside the repo tree) — out of scope for this security-focused pass, since it does not create a vulnerability.

@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 26s —— View job


Code Review

  • Gather context (PR diff, REVIEW.md, CLAUDE.md)
  • Review changed files for correctness, architecture, maintainability
  • Check test/eval coverage
  • Post findings

Scope: plugins/education/.claude-plugin/plugin.json, CHANGELOG.md, README.md, skills/setup/SKILL.md (new), skills/setup/evals/evals.json (new) — diffed against origin/main. Security is covered separately by the security lane's existing comment on this PR; not re-reviewed here.

Findings

1. Incorrect effective-root reporting when report_library_dir hits the repo-tree guard — left as an inline comment on SKILL.md:34-37. quiz-me refuses a report_library_dir that resolves to ${CLAUDE_PROJECT_DIR} or a descendant and silently falls back to ${CLAUDE_PLUGIN_DATA} (quiz-me/SKILL.md:123-126). setup's step 3 doesn't resolve the path or account for this — it always reports the raw configured directory as authoritative, which can point the user at a location quiz-me never actually writes to, precisely in the "report recall cannot find prior quizzes" scenario this skill exists to diagnose. This is the same gap Codex's automated review already flagged on this line; I independently traced it against quiz-me's actual guard logic and confirm it's real.

I also checked skills/setup/evals/evals.json: neither of the two evals exercises this repo-tree-guard case, so the gap wouldn't be caught by the eval suite either.

Other observations (no action needed)

  • Structure, frontmatter, and read-only contract closely mirror the established bug-report/dometrain setup-skill pattern (config-key naming matches plugin.json's userConfig schema, boundaries section, headless-config caveats) — good consistency with precedent.
  • The 0.6.0 → 0.6.1 patch bump for a ### Added entry looked inconsistent with semver at first glance, but education's own CHANGELOG has prior precedent for patch-bumping an Added entry (0.5.4 → 0.5.5), so this is consistent with the plugin's existing convention — not flagging it.
  • repo-hygiene exemption rationale (trivial single-boolean carve-out) is reasonable and doesn't need a setup skill per the same contract this PR follows elsewhere.

Comment thread plugins/education/skills/setup/SKILL.md Resolved
@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count.

@kyle-sexton
kyle-sexton force-pushed the cursor/education-setup-skill-63e1 branch from 2733979 to 3ff9585 Compare August 12, 2026 16:52
@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 38s —— View job


Security Review

  • Gather context (PR diff, changed files)
  • Review changed files for security issues
  • Report findings

Scope: All 5 files changed in this PR, verified via git diff origin/main...HEAD against HEAD 3ff9585: plugin.json (version bump only), CHANGELOG.md, README.md, skills/setup/SKILL.md (new), skills/setup/evals/evals.json (new).

Findings: none.

This PR adds a check-only Skill (natural-language instructions consumed by the model), a README note, a changelog entry, and a patch version bump. There is no executable code, no shell/script content, no GitHub Actions workflow changes, and — confirmed directly against plugin.json — no change to the userConfig schema or declared permissions; the only diff there is 0.6.0 → 0.6.1.

Reviewed specifically for this PR's risk surface:

  • Settings/config tampering: SKILL.md#L20-L21 explicitly instructs the skill not to inspect or edit settings.json, settings.local.json, managed settings, or pluginConfigs directly, and to route reconfiguration only through Claude Code's native /plugin configure flow. The "Boundaries" section (SKILL.md#L58) reiterates "Do not write Claude Code settings." Consistent with the read-only "check" contract described in the PR body.
  • Path handling: report_library_dir is only read from rendered userConfig and reported back to the user — it is never expanded, globbed, constructed, or written to by this skill (SKILL.md#L27-L30). No path-traversal or injection surface introduced.
  • Untrusted input / prompt injection: The skill's only inputs are Claude-Code-rendered userConfig values (quiz_policy, report_library_dir), set through Claude Code's own configuration prompt — not free-text ingested from external/untrusted sources (issue bodies, fetched URLs, etc.). No new trust-boundary crossing.
  • evals.json: Static eval fixtures/prompts only; no executable content, no secrets.
  • Version bump / manifest: plugin.json diff is limited to 0.6.0 → 0.6.1; no permission, schema, or userConfig changes — confirmed by reading the full file at this commit.

No CRITICAL, IMPORTANT, or SUGGESTION findings to report.

Note: a non-security correctness gap (report-library effective-root reporting when report_library_dir resolves inside the repo tree, i.e. the quiz-me repo-tree guard fallback) has already been flagged by Codex and by a prior Claude code-review pass on this PR — out of scope for this security-focused review since it's a UX/accuracy issue, not a vulnerability.

@cursor
cursor Bot force-pushed the cursor/education-setup-skill-63e1 branch from 5322d4a to 3734246 Compare August 12, 2026 18:55
@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @cursor[bot]'s task in 1m 2s —— View job


Security Review

  • Gather context (PR diff via gh pr diff against origin/main, changed files)
  • Review changed files for security issues
  • Report findings

Scope: All 5 files changed in this PR, reviewed at HEAD 3734246: plugin.json (version bump), CHANGELOG.md, README.md, skills/setup/SKILL.md (new), skills/setup/evals/evals.json (new). The latest commit (3734246) only adds documentation to SKILL.md step 3 addressing the repo-tree-guard reporting gap raised by Codex and a prior code-review pass — no executable code was introduced.

Findings: none.

This PR adds a check-only Skill (natural-language instructions consumed by the model), a README note, a changelog entry, and a patch version bump. There is no executable code, no shell/script content, no GitHub Actions workflow changes, and no change to the plugin's userConfig schema or declared permissions — plugin.json's only diff is 0.6.1 → 0.6.2.

Reviewed specifically for this PR's risk surface:

  • Settings/config tampering: SKILL.md#L20-L21 explicitly instructs the skill not to inspect or edit settings.json, settings.local.json, managed settings, or pluginConfigs directly, routing reconfiguration only through Claude Code's native /plugin configure flow. The "Boundaries" section (SKILL.md#L61) reiterates "Do not write Claude Code settings." Consistent with the read-only "check" contract described in the PR body.
  • Path handling: report_library_dir is only read from rendered userConfig and reported back to the user — it is never expanded, globbed, constructed, or written to by this skill (SKILL.md#L27-L35). The newly added repo-tree-guard language (step 3, third bullet) only changes what is explained to the user, not any path construction/write behavior — no path-traversal or injection surface introduced or altered.
  • Untrusted input / prompt injection: The skill's only inputs are Claude-Code-rendered userConfig values (quiz_policy, report_library_dir), set through Claude Code's own configuration prompt — not free-text ingested from external/untrusted sources (issue bodies, fetched URLs, etc.). No new trust-boundary crossing.
  • evals.json: Static eval fixtures/prompts only; no executable content, no secrets.
  • Version bump / manifest: plugin.json diff is limited to 0.6.1 → 0.6.2; no permission, schema, or userConfig changes.

No CRITICAL, IMPORTANT, or SUGGESTION findings to report.

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Last security-reviewed head: a4daaee0e4a329b8109986323136791b77e64f22. On the next push, the relevance gate compares only the commits since this SHA; delete this comment to force a full re-review.

@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @cursor[bot]'s task in 41s —— View job


Security Review

  • Gather context (PR diff, changed files)
  • Determine if a new review is needed since last reviewed head
  • Skip gate reached — no new review performed
  • Report status

Skip gate: Per /review:security-review, review stops early when the change has no security-relevant surface after reading the diff, or the head has already been successfully reviewed and that review still applies.

This PR's HEAD is now a0a34c3c125c6b85ea0a76d209166dd1c2f4f239. The last successful security review covered 3734246014da510ce6518d3070eb6ab961327fec. The only change since that reviewed head:

diff 3734246..a0a34c3
plugins/education/.claude-plugin/plugin.json | 2 +-
plugins/education/CHANGELOG.md                | 2 +-

— a version bump (0.6.2 → 0.6.3, plugin.json#L4) and the matching CHANGELOG.md heading update, made to avoid a version collision with PR #2475. No functional, executable, permission, schema, or userConfig change. This adds no new security-relevant surface beyond what was already reviewed at 3734246 (see that pass's findings below), so per the skip gate no new deep review was performed on this trigger.

Prior findings (still apply, unchanged): No CRITICAL, IMPORTANT, or SUGGESTION security findings on this PR's full changeset (plugin.json version bump, CHANGELOG.md, README.md, new skills/setup/SKILL.md, new skills/setup/evals/evals.json) — check-only Skill content, no executable code, no Actions workflow changes, no userConfig/permission changes, read-only handling of report_library_dir, explicit "do not write settings" boundary.

@cursor
cursor Bot force-pushed the cursor/education-setup-skill-63e1 branch from a0a34c3 to 83e4cca Compare August 12, 2026 19:10
@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @cursor[bot]'s task in 1m 3s —— View job


Security Review

  • Gather context (PR diff via git diff origin/main...HEAD, changed files)
  • Invoke /review:security-review skill
  • Report findings

Scope: All 5 files changed in this PR, reviewed at HEAD c65eaa8: plugin.json (version bump), CHANGELOG.md, README.md, skills/setup/SKILL.md (new), skills/setup/evals/evals.json (new).

Skip-gate note: The previously-reviewed head (a0a34c3) referenced in this PR's earlier review threads is no longer an ancestor of the current branch — commit c65eaa8 rewrote history to resolve changelog conflict markers left over from merging #2475. Since the incremental-diff assumption doesn't hold across a history rewrite, this pass re-reviewed the full changeset rather than relying on the stale skip-gate comparison.

Findings: none.

This PR adds a check-only Skill (natural-language instructions consumed by the model), a README note, a changelog entry, and a version bump. There is no executable code, no shell/script content, no GitHub Actions workflow changes, and no change to the plugin's userConfig schema or declared permissions — plugin.json's only functional diff is 0.6.2 → 0.6.3 plus a cosmetic fix replacing a mangled — escape with a literal em dash in the quiz_policy description (leftover from the #2475 merge conflict resolution, not new content).

Reviewed specifically for this PR's risk surface:

  • Settings/config tampering: SKILL.md#L20-L21 explicitly instructs the skill not to inspect or edit settings.json, settings.local.json, managed settings, or pluginConfigs directly, routing reconfiguration only through Claude Code's native /plugin configure flow. The "Boundaries" section (SKILL.md#L61) reiterates "Do not write Claude Code settings." Consistent with the read-only "check" contract described in the PR body.
  • Path handling: report_library_dir is only read from rendered userConfig and reported back to the user — it is never expanded, globbed, constructed, or written to by this skill (SKILL.md#L27-L35). No path-traversal or injection surface introduced.
  • Untrusted input / prompt injection: The skill's only inputs are Claude-Code-rendered userConfig values (quiz_policy, report_library_dir), set through Claude Code's own configuration prompt — not free-text ingested from external/untrusted sources (issue bodies, fetched URLs, etc.). No new trust-boundary crossing.
  • evals.json: Static eval fixtures/prompts only; no executable content, no secrets.
  • Version bump / manifest: plugin.json diff is limited to 0.6.2 → 0.6.3 plus the em-dash escape fix; no permission, schema, or userConfig changes.
  • Merge-artifact check: Searched the full diff for leftover conflict markers (<<<<<<<, =======, >>>>>>>) and stray unicode escapes — the only match is the old (removed) line being corrected by this commit; no residual artifacts remain.

No CRITICAL, IMPORTANT, or SUGGESTION findings to report.

Note: a non-security correctness gap (report-library effective-root reporting when report_library_dir resolves inside the repo tree) was flagged by Codex and a prior code-review pass, and has since been addressed in SKILL.md step 3 — out of scope for this security-focused review regardless, since it was a UX/accuracy issue, not a vulnerability.

cursoragent and others added 3 commits August 12, 2026 15:53
Fixes #988 (education half)

Adds /education:setup to verify quiz_policy and report_library_dir through
rendered userConfig only. repo-hygiene remains exempt: its single boolean
kill-switch is below the setup-requirement bar per the philosophy carve-out.

Co-authored-by: Kyle Sexton <[email protected]>
Step 3 now explains fallback when the configured dir is inside the project tree.

Co-authored-by: Kyle Sexton <[email protected]>
@kyle-sexton
kyle-sexton force-pushed the cursor/education-setup-skill-63e1 branch from a16b0ae to a4daaee Compare August 12, 2026 19:53
@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 13s —— View job


Security Review

  • Gather context (PR diff via git diff origin/main...HEAD, changed files)
  • Invoke /review:security-review skill and follow its instructions
  • Report findings

Scope: All 5 files changed in this PR, reviewed at HEAD a4daaee: plugin.json (version bump), CHANGELOG.md, README.md, skills/setup/SKILL.md (new), skills/setup/evals/evals.json (new).

Skip-gate note: This head's full diff against origin/main is content-identical to the changeset already deep-reviewed at commit c65eaa8 (that SHA is no longer an ancestor of the branch — another history rewrite occurred, only the changelog-heading version bumped 0.6.2 → 0.6.3 plus a matching CHANGELOG.md entry, same pattern as the prior 0.6.2→0.6.3 rewrite this thread already saw). I re-diffed the full changeset directly rather than trusting the stale skip-gate comparison, confirmed it matches the previously-reviewed content byte-for-byte (same quiz_policy em-dash text, same SKILL.md repo-tree-guard language, same evals.json), and re-checked for leftover merge-conflict markers (<<<<<<<, =======, >>>>>>>) — none found.

Findings: none.

This PR adds a check-only Skill (natural-language instructions consumed by the model), a README note, a changelog entry, and a version bump. There is no executable code, no shell/script content, no GitHub Actions workflow changes, and no change to the plugin's userConfig schema or declared permissions — plugin.json's only diff is 0.6.2 → 0.6.3.

Reviewed specifically for this PR's risk surface:

  • Settings/config tampering: SKILL.md#L20-L21 explicitly instructs the skill not to inspect or edit settings.json, settings.local.json, managed settings, or pluginConfigs directly, routing reconfiguration only through Claude Code's native /plugin configure flow. The "Boundaries" section (SKILL.md#L61) reiterates "Do not write Claude Code settings." Consistent with the read-only "check" contract described in the PR body.
  • Path handling: report_library_dir is only read from rendered userConfig and reported back to the user — it is never expanded, globbed, constructed, or written to by this skill (SKILL.md#L27-L35). No path-traversal or injection surface introduced.
  • Untrusted input / prompt injection: The skill's only inputs are Claude-Code-rendered userConfig values (quiz_policy, report_library_dir), set through Claude Code's own configuration prompt — not free-text ingested from external/untrusted sources (issue bodies, fetched URLs, etc.). No new trust-boundary crossing.
  • evals.json: Static eval fixtures/prompts only; no executable content, no secrets.
  • Version bump / manifest: plugin.json diff is limited to 0.6.2 → 0.6.3; verified the full userConfig block is unchanged in structure/type/permissions.
  • Merge-artifact check: No leftover conflict markers (<<<<<<<, =======, >>>>>>>) anywhere in the diff or in plugins/education.

No CRITICAL, IMPORTANT, or SUGGESTION findings to report.

Note: a non-security correctness gap (report-library effective-root reporting when report_library_dir resolves inside the repo tree) was flagged by Codex and a prior code-review pass, and has already been addressed in SKILL.md step 3 — out of scope for this security-focused lane regardless, since it was a UX/accuracy issue, not a vulnerability.

@kyle-sexton
kyle-sexton merged commit 98832f2 into main Aug 12, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the cursor/education-setup-skill-63e1 branch August 12, 2026 20:05
@claude

claude Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 44s —— View job


Code Review

  • Gather context (PR diff, changed files)
  • Check skip gate
  • Report status

Skip gate: Per /review:code-review, review stops early when the PR is closed or not open. This PR is MERGED, so no new review was performed on this trigger and nothing further was posted.

For reference, this PR's changeset (plugin.json version bump, CHANGELOG.md, README.md, new skills/setup/SKILL.md, new skills/setup/evals/evals.json) already received a full code-review pass earlier in this PR's lifecycle, which flagged one correctness finding (effective-root reporting when report_library_dir resolves inside the repo tree per quiz-me's repo-tree guard) — that gap was subsequently addressed in SKILL.md step 3 per the later security-review passes' notes.

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.

Fleet conformance: add setup skills for education + repo-hygiene (setup-requirement gap)

2 participants