Skip to content

docs: fix 15 documentation-code discrepancies from code review#149

Merged
mrwogu merged 1 commit intomainfrom
fix/docs-code-review-fixes
Mar 22, 2026
Merged

docs: fix 15 documentation-code discrepancies from code review#149
mrwogu merged 1 commit intomainfrom
fix/docs-code-review-fixes

Conversation

@mrwogu
Copy link
Owner

@mrwogu mrwogu commented Mar 22, 2026

Summary

Fixes 15 documentation-code discrepancies found during code review of changes since v1.4.7 (PRs #146 and #147).

Critical fixes

  • Add missing prs migrate command documentation to CLI README
  • Replace deprecated prs init --migrate in Quick Start with prs init/prs migrate
  • Add --auto-import and --backup flags to init options table
  • Add ### @commands section to language reference (block exists in code but was undocumented)
  • Fix phantom version field in SyntaxVersionDef interface docs (core README)

Warning fixes

  • Fix @agents example using syntax: "1.0.0""1.1.0" (would trigger PS018)
  • Clarify @workflows/@prompts as internal blocks in version tables and SKILL.md
  • Fix PS018 description to reflect early-return behavior on unknown version
  • Fix --import--auto-import in design doc non-interactive behavior matrix
  • Fix --llm behavior description (clipboard-first, not stdout-first)
  • Remove unimplemented "configurable via yaml" claim from design doc
  • Remove unimplemented "Review needed: N sections" from confidence report

Suggestion fixes

  • Update design doc status from "Approved" to "Implemented"
  • Fix migration hint references in design doc
  • Add prs upgrade behavior distinction in all SKILL.md copies

Test plan

  • pnpm run format — pass
  • pnpm run lint — pass
  • pnpm run typecheck — pass
  • pnpm run test — 660 tests pass
  • pnpm prs validate --strict — pass
  • pnpm schema:check — pass
  • pnpm skill:check — all copies in sync
  • pnpm docs:validate — all 135 snapshots valid

Fixes found during code review of changes since v1.4.7:

CLI README (packages/cli/README.md):
- Add missing `prs migrate` command documentation
- Replace deprecated `prs init --migrate` in Quick Start with `prs init`/`prs migrate`
- Add `--auto-import` and `--backup` flags to init options table
- Update "AI-assisted migration" feature bullet to mention static migration

Language reference (docs/reference/language.md):
- Fix `@agents` example using `syntax: "1.0.0"` (requires "1.1.0" per PS018)
- Clarify `@workflows`/`@prompts` are internal, not user-facing blocks
- Add `@commands` to Reserved Words block names list
- Add `### @commands` section documenting it as alias for `@shortcuts`

Package READMEs:
- Fix phantom `version` field in `SyntaxVersionDef` (core/README.md)
- Fix PS018 description to reflect early-return on unknown version (validator/README.md)

Design docs:
- Update status from "Approved" to "Implemented" (both design docs)
- Fix `--import` → `--auto-import` in non-interactive behavior matrix
- Fix tool-specific hints to match implementation (skill invocation, not paste)
- Remove unimplemented "Review needed: N sections" from confidence report
- Fix `--llm` description (clipboard-first, not stdout-first)
- Remove "configurable via promptscript.yaml" claim (not implemented)

SKILL.md (all 4 copies):
- Clarify `@workflows`/`@prompts` are internal in version table
- Add `prs upgrade` behavior description (latest version vs minimum)
@codecov
Copy link

codecov bot commented Mar 22, 2026

Bundle Report

Changes will increase total bundle size by 1.32kB (0.11%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
promptscript-cli 1.21MB 1.32kB (0.11%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: promptscript-cli

Assets Changed:

Asset Name Size Change Total Size Change (%)
skills/promptscript/SKILL.md 107 bytes 19.84kB 0.54%
README.md 1.21kB 13.4kB 9.93% ⚠️

@codecov
Copy link

codecov bot commented Mar 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mrwogu mrwogu merged commit 4fe9f23 into main Mar 22, 2026
15 checks passed
@mrwogu mrwogu deleted the fix/docs-code-review-fixes branch March 22, 2026 17:25
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