Skip to content

docs(skills): sync & improve all simple-module agent skills - #220

Merged
antosubash merged 3 commits into
mainfrom
worktree-cli-skill-update
Jun 25, 2026
Merged

docs(skills): sync & improve all simple-module agent skills#220
antosubash merged 3 commits into
mainfrom
worktree-cli-skill-update

Conversation

@antosubash

@antosubash antosubash commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

A full accuracy-and-improvement pass over the bundled simple-module-* agent skills in skills/, bringing every pack back in sync with the current codebase. Two commits:

  1. simple-module-cli — documents new smpy CLI surface: package-update, new --flat, sync-js-deps --dry-run, the background_tasks recipe, the simple-module alias, built-in vs cli_plugins plugin subgroups; corrects the scaffold-name examples (smpy new rejects mixed case) and the wizard-only custom preset.
  2. All 9 other skills — audited claim-by-claim against live source and corrected:
Skill Key corrections
database AuditMixin.created_at is Python-side; MultiTenantMixin hard-fails (TenantIsolationError, non-null tenant_id)
migrations host/ paths, make migration/make migrate, upgrade heads (plural), env.py render_item/process_revision_directives, single-shared-schema note, unlabeled bootstrap-revision exception
registries removed a false permission-cache TTL claim (it invalidates on mutation), fixed the event-bus pitfall mechanism, register_event_handlers(bus, app) signature, Depends(require_flag()) over the legacy decorator
doctor only SM001 fails prod boot (diagnostics are dev-gated), make doctor mechanics, SM010/011 firing conditions, real output format; full SM001–SM021 set
creating make new-module over raw commands, full scaffold tree, register_public_routes, aligned module.py template
inertia-pages i18n prop shape {locale, supportedLocales, messages}, correct principal_serializer (auth module), SM018 Inertia-native fix, SM019
testing vitest include scope, perf marker, scaffold test filename
conventions added missing invalid-assignment to the ty-ignore list
locales documented the backend TranslatorDep / t.t() API

skills/README.md was verified already-accurate (no change).

How it was produced

One audit agent per skill, each verifying every factual/behavioral claim against the live source it documents (framework/, modules/, host/, Makefile, pyproject.toml, docs/). Edits are minimal and evidence-cited; voice/structure preserved.

Verification

  • Doc-only change — all 10 changed files are markdown; no code touched.
  • All skills parse (frontmatter intact); no broken skill cross-references; all markdown tables column-consistent; all files under the 300-line cap.
  • Highest-risk substantive rewrites (doctor boot semantics + SM021 example, registries permission-cache, inertia i18n prop shape) adversarially spot-checked against source — all hold.
  • Code-CI suites (ruff/ty/biome/tsc/pytest/build) are N/A — no .py/.ts/.tsx changed.

Test plan

  • Reviewer skims each skill diff against the cited source and confirms the documented behavior matches.
  • smpy skills list renders every skill's description cleanly.

https://claude.ai/code/session_01RZW4T5eFvrZoDLuN1mHg47

Add package-update section, smpy new --flat, sync-js-deps --dry-run, the
background_tasks recipe, the simple-module alias, and the built-in vs
plugin-subgroup distinction. Correct the scaffold-name examples (smpy new
rejects mixed case) and clarify the wizard-only custom preset.

Claude-Session: https://claude.ai/code/session_01RZW4T5eFvrZoDLuN1mHg47
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: ce84d3e
Status: ✅  Deploy successful!
Preview URL: https://e6666af1.simple-module-python.pages.dev
Branch Preview URL: https://worktree-cli-skill-update.simple-module-python.pages.dev

View logs

Audit-and-improve pass across the remaining nine skill packs (CLI skill
done separately), each change verified against live source:

- database: AuditMixin created_at is Python-side; MultiTenantMixin hard-fails
  (TenantIsolationError, non-null tenant_id).
- migrations: correct host/ paths, make migration/migrate, `upgrade heads`
  (plural), env.py render_item/process_revision_directives, single-shared-schema
  note, unlabeled bootstrap-revision exception.
- registries: drop the false permission-cache TTL claim (invalidates on
  mutation), fix the event-bus pitfall mechanism, register_event_handlers(bus,
  app) signature, prefer Depends(require_flag()).
- doctor: only SM001 fails prod boot (diagnostics are dev-gated); make doctor
  mechanics; SM010/011 firing conditions; real output format.
- creating: make new-module over raw commands, full scaffold tree,
  register_public_routes, aligned module.py template.
- inertia-pages: i18n prop shape {locale,supportedLocales,messages}, correct
  principal_serializer (auth module), SM018 Inertia-native fix, SM019.
- testing: vitest include scope, perf marker, scaffold test filename.
- conventions: add invalid-assignment to the ty-ignore list.
- locales: document the backend TranslatorDep / t.t() API.

README verified already-accurate (unchanged).

Claude-Session: https://claude.ai/code/session_01RZW4T5eFvrZoDLuN1mHg47
@antosubash antosubash changed the title docs(skills): update simple-module-cli skill for new smpy CLI features docs(skills): sync & improve all simple-module agent skills Jun 25, 2026
Code-review (Stage A) caught sibling skills still carrying the old
"errors fail prod boot" framing after the doctor skill was corrected to
"diagnostics run dev-only; only strict discovery (SM001) fails prod boot":

- creating: diagnostics are dev-only (raise SystemExit); prod boot only
  fails on strict discovery (SM001). SM008/SM009 are dev-boot/make-doctor
  errors, not prod-boot blockers.
- migrations: SM010/SM011 are emitted only by run_diagnostics(migration_state=
  /module_tables=), not at boot or by make doctor; the boot guard is
  check_migrations() raising RuntimeError in both dev and prod.
- locales: SM016 fails dev boot / make doctor; prod skips the diagnostics pass.

(register_public_routes, flagged as "fabricated" by one verifier, was
confirmed real in source — module.py:122 / app_builder.py:238 — and left
as-is.)

Claude-Session: https://claude.ai/code/session_01RZW4T5eFvrZoDLuN1mHg47
@antosubash
antosubash merged commit 375747b into main Jun 25, 2026
12 checks passed
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.

1 participant