Skip to content

Scaffold the qe plugin: check-style umbrella + per-category sub-skills - #2

Merged
mmcky merged 3 commits into
mainfrom
scaffold-qe-plugin
Jul 21, 2026
Merged

mmcky merged 3 commits into
mainfrom
scaffold-qe-plugin

Conversation

@mmcky

@mmcky mmcky commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Stacked on #1 (merge that first; this PR then retargets to main automatically).

Scaffolding only — no rule content or checker scripts yet; those land in follow-up PRs per the work plan being set up in project-style-guide. Skill development is deliberately excluded so the structure can be reviewed on its own.

What this adds

The qe plugin — the author-facing surface agreed in CATALOG.md: one memorable prefix for the skills authors use while editing lectures and preparing PRs, with benchmark remaining a separate specialist plugin.

Skill Role
/qe:check-style Umbrella: full style check of a lecture, optional trailing category words (/qe:check-style lectures/aiyagari.md figures math)
/qe:check-writing -math -code -figures -jax -refs Thin per-category entry points (~10 lines each) sharing the umbrella's procedure, rules, and scripts

Shared plugin-level content locations (documented, pending):

  • qe/references/rules/ — one file per category in the QuantEcon/style-guide schema (qe-* IDs, mode, severity, build_risk, auto_fix, detection, exclusions). Rules are authored once here and submitted upstream for ratification, so skill work seeds the canonical DB rather than forking another copy.
  • qe/scripts/ — MyST-context-aware deterministic preflight checkers (zero-false-positive bar, style-guide fixtures layout) plus the planned sync-rules.py drift mechanism.

Design invariants encoded in the umbrella skill: preflight scripts before LLM passes; report first, fix on request; build_risk and RNG-stream rules are never auto-applied.

All 8 skills across both plugins pass scripts/validate.py (manifest agreement + frontmatter checks) and CI runs it on this PR.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 21, 2026 00:34

Copilot AI 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.

Pull request overview

This PR scaffolds the new qe plugin and its /qe:check-style umbrella skill plus thin per-category entry-point skills, and wires the plugin into the repository’s marketplace + top-level documentation. It’s intentionally structure-only (no rule DB content or checker scripts yet), setting up the directories, manifests, and SKILL.md stubs for follow-up PRs.

Changes:

  • Register the qe plugin in .claude-plugin/marketplace.json and document installation/structure in README.md.
  • Add qe/.claude-plugin/plugin.json plus initial SKILL.md stubs for check-style and per-category skills.
  • Add placeholder READMEs for the shared rules and scripts locations under qe/.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
README.md Documents the new qe plugin, installation, and repo layout.
.claude-plugin/marketplace.json Registers the qe plugin in the marketplace.
qe/.claude-plugin/plugin.json Defines the qe plugin manifest (name/description/version).
qe/skills/check-style/SKILL.md Adds the umbrella style-check skill scaffold and procedure outline.
qe/skills/check-writing/SKILL.md Adds a thin per-category skill scaffold for writing rules.
qe/skills/check-math/SKILL.md Adds a thin per-category skill scaffold for math rules.
qe/skills/check-code/SKILL.md Adds a thin per-category skill scaffold for code rules.
qe/skills/check-figures/SKILL.md Adds a thin per-category skill scaffold for figure rules.
qe/skills/check-jax/SKILL.md Adds a thin per-category skill scaffold for JAX rules.
qe/skills/check-refs/SKILL.md Adds a thin per-category skill scaffold for references/citations rules.
qe/scripts/README.md Adds a placeholder description for planned deterministic preflight scripts.
qe/references/rules/README.md Adds a placeholder description of the planned rules schema/layout.

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

Comment thread qe/skills/check-style/SKILL.md Resolved
Comment thread qe/skills/check-writing/SKILL.md Resolved
Comment thread qe/skills/check-code/SKILL.md Resolved
Comment thread qe/skills/check-math/SKILL.md Resolved
Comment thread qe/skills/check-figures/SKILL.md Resolved
Comment thread qe/skills/check-jax/SKILL.md Resolved
Comment thread qe/skills/check-refs/SKILL.md Resolved
Base automatically changed from tidy-and-catalog to main July 21, 2026 01:54
mmcky added a commit that referenced this pull request Jul 21, 2026
Addresses Copilot review on #2. The relative ../../../CATALOG.md links
actually resolved correctly in rendered Markdown (the files are three
levels deep), but verifying that surfaced a real portability issue:
installed plugins ship only the qe/ directory (marketplace source.path),
so repo-root files are absent at skill runtime. An absolute GitHub URL
works in both contexts.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
mmcky and others added 3 commits July 21, 2026 11:58
Adds the author-facing qe plugin agreed in CATALOG.md:

- /qe:check-style umbrella (whole lecture, optional category filter)
- Thin sub-skills check-{writing,math,code,figures,jax,refs}, each a
  pointer to the shared procedure restricted to one category
- references/rules/ README documenting the QuantEcon/style-guide rule
  schema the vendored rules will use, and the seeding plan
- scripts/ README documenting the pending MyST-context-aware preflight
  checkers and the sync-rules drift mechanism
- Marketplace registration and README updates

All skills are marked scaffolding: rule content and preflight scripts
land in follow-up PRs per the work plan in project-style-guide.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Rule text is authored only in QuantEcon/style-guide (Phase 5 no-drift
exit criterion); qe/references/rules/ is a rendered, drift-checked
consumer via a render-skill target + sync script. Records the open D8
tension (private rules DB vs public marketplace) and links the
programme proposal QuantEcon/project-style-guide#6.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Addresses Copilot review on #2. The relative ../../../CATALOG.md links
actually resolved correctly in rendered Markdown (the files are three
levels deep), but verifying that surfaced a real portability issue:
installed plugins ship only the qe/ directory (marketplace source.path),
so repo-root files are absent at skill runtime. An absolute GitHub URL
works in both contexts.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mmcky
mmcky force-pushed the scaffold-qe-plugin branch from c529168 to 4fa7d47 Compare July 21, 2026 01:58
@mmcky
mmcky merged commit 94209c7 into main Jul 21, 2026
1 check passed
@mmcky
mmcky deleted the scaffold-qe-plugin branch July 21, 2026 02:05
mmcky added a commit that referenced this pull request Aug 3, 2026
… citations

Copilot review on #22, both comments valid, plus one they did not catch.

The Cost table's "Completed" column carried bare clock times while Setup records
the snapshot as 2026-07-28T06:45:58Z. The two are ten hours apart and look
contradictory; they are the same instant in AEST. In a measurement record that
ambiguity is not cosmetic, so the column now names its timezone.

The total was wrong against the table's own timestamps. 16:45:59 to 17:08:05 is
22 minutes 6 seconds, and the per-phase elapsed figures sum to about the same,
but the Total row said ~23 min. It matters beyond arithmetic: audit/README.md
and #24 both cite "22 minutes" sourced from this record, so as written the
citation disagreed with its evidence — the same defect this record criticises
elsewhere, one level down. Corrected here and in the two places downstream that
restate it as prose.

Both doctrine citations pointed at the top of doctrine.md rather than the section
being cited, which is a poor look in a document whose complaint #1 is a citation
that does not verify. §2 is now #2-evidence-classes.

§4 is anchored to #4-checkpointing, which is deliberately the post-#24 name. #24
renames that section from "Surviving a long run", and merges immediately after
this — so the alternative anchor would be correct for minutes and wrong
permanently. lychee runs without --include-fragments, so CI checks neither.
mmcky added a commit that referenced this pull request Aug 3, 2026
…026-07-28) (#22)

* Reviews: run 1 of the audit validation program (action-translation, 2026-07-28)

The first execution of /audit:issues as a skill rather than as a hand-run
runbook, recorded per #16's protocol.

Result: the bundle is good and the plugin has seven defects (#21), one of them
in the checkpoint fix that shipped the day before in #17. Eight of the ten
review checks held, including the read-only boundary — git status stayed empty
across a run that wrote 127 KB into the audited repo — and a coverage table that
matches coverage.json on every number.

Two findings are worth naming here because they cut against decisions this repo
made recently. A [verified] citation on the audit's headline finding pointed at
a commit that is not on main, which doctrine §2 permits because it never says
to check reachability. And the run took ~23 minutes for 230 items, against docs
promising "hours, not minutes" — which undercuts doctrine §4's stated premise
that bulk audits outlive sessions, and so the stated justification for the
checkpointing machinery. The honest correction is to keep the machinery and fix
the premise, not to pretend the measurement did not happen.

Checks 9 and 10 — is the tiering right, would you act on this — are the
maintainer's and remain open. Resumability is still untested: the run was not
interrupted, so the program's headline claim survives run 1 unvalidated.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* Run record: label the clock, reconcile the total, anchor the doctrine citations

Copilot review on #22, both comments valid, plus one they did not catch.

The Cost table's "Completed" column carried bare clock times while Setup records
the snapshot as 2026-07-28T06:45:58Z. The two are ten hours apart and look
contradictory; they are the same instant in AEST. In a measurement record that
ambiguity is not cosmetic, so the column now names its timezone.

The total was wrong against the table's own timestamps. 16:45:59 to 17:08:05 is
22 minutes 6 seconds, and the per-phase elapsed figures sum to about the same,
but the Total row said ~23 min. It matters beyond arithmetic: audit/README.md
and #24 both cite "22 minutes" sourced from this record, so as written the
citation disagreed with its evidence — the same defect this record criticises
elsewhere, one level down. Corrected here and in the two places downstream that
restate it as prose.

Both doctrine citations pointed at the top of doctrine.md rather than the section
being cited, which is a poor look in a document whose complaint #1 is a citation
that does not verify. §2 is now #2-evidence-classes.

§4 is anchored to #4-checkpointing, which is deliberately the post-#24 name. #24
renames that section from "Surviving a long run", and merges immediately after
this — so the alternative anchor would be correct for minutes and wrong
permanently. lychee runs without --include-fragments, so CI checks neither.

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
mmcky added a commit that referenced this pull request Aug 25, 2026
…0.6.0) (#52)

* qe: remove the style-check scaffolding — the plan lives in issue #3 (0.6.0)

All seven check-* skills had reported "not yet operational" since #2
merged; the rules snapshot and preflight they depend on are still
pending upstream. Seven dead slash-menu entries cost more than they
signal, so the scaffold leaves the shipped plugin: skill dirs,
qe/references/rules/, and the pending "Style preflight" section of
qe/scripts/README.md. The frontmatter descriptions and design contracts
are preserved on issue #3, where the unchanged plan now solely lives;
the skills return operational, not as scaffolding.

Docs updated to match (CATALOG, README, using-skills, AGENTS), plugin
description narrowed to what ships, qe bumped to 0.6.0.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Docs: align developing-skills.md with the no-scaffolding policy

Copilot's review of #52 caught the contributor-facing doc still
describing scaffolding as something that ships and registers in the
slash menu, and still describing qe by its removed umbrella +
sub-skills shape. Both now match the policy set in this PR; the
/qe:check-style naming example is kept but marked as planned (#3),
and the rules-snapshot sentence moves to the future tense.

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: Claude Fable 5 <[email protected]>
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