ptbk 0.112.0-36 → 0.112.0-38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -382,7 +382,7 @@ In short: tools like Claude Code, Codex, or GitHub Copilot are the **engines**;
382
382
 
383
383
  #### How the workflow works
384
384
 
385
- 1. `ptbk coder init` prepares the project for the coder workflow, seeds project-owned templates in `prompts/templates/`, adds helper `npm run coder:*` scripts, ensures `.gitignore` ignores `/.tmp`, and configures VS Code prompt screenshots in `prompts/screenshots/`.
385
+ 1. `ptbk coder init` prepares the project for the coder workflow, seeds project-owned generic templates in `prompts/templates/`, creates a starter `AGENTS.md` context file, adds helper `npm run coder:*` scripts, ensures `.gitignore` ignores `/.tmp`, and configures VS Code prompt screenshots in `prompts/screenshots/`.
386
386
  2. `ptbk coder generate-boilerplates` creates prompt files in `prompts/`.
387
387
  3. You replace placeholder `@@@` sections with real coding tasks.
388
388
  4. `ptbk coder run` sends the next ready `[ ]` prompt to the selected coding agent.
@@ -419,6 +419,8 @@ npx ts-node ./src/cli/test/ptbk.ts coder run --agent github-copilot --model gpt-
419
419
 
420
420
  npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
421
421
 
422
+ npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates --level xhigh
423
+
422
424
  npx ts-node ./src/cli/test/ptbk.ts coder verify
423
425
  ```
424
426
 
@@ -433,7 +435,7 @@ ptbk coder init
433
435
 
434
436
  npx ptbk coder generate-boilerplates
435
437
 
436
- npx ptbk coder generate-boilerplates --template prompts/templates/agents-server.md
438
+ npx ptbk coder generate-boilerplates --template prompts/templates/common.md
437
439
 
438
440
  npx ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh --context AGENTS.md
439
441
 
@@ -441,19 +443,21 @@ npx ptbk coder run --agent github-copilot --model gpt-5.4 --thinking-level xhigh
441
443
 
442
444
  npx ptbk coder find-refactor-candidates
443
445
 
446
+ npx ptbk coder find-refactor-candidates --level xhigh
447
+
444
448
  npx ptbk coder verify
445
449
  ```
446
450
 
447
- `ptbk coder init` also bootstraps `package.json` scripts for the four main coder commands, adds the coder temp ignore to `.gitignore`, and configures `.vscode/settings.json` so pasted images from `prompts/*.md` land in `prompts/screenshots/`.
451
+ `ptbk coder init` also bootstraps a starter `AGENTS.md`, adds `package.json` scripts for the four main coder commands, adds the coder temp ignore to `.gitignore`, and configures `.vscode/settings.json` so pasted images from `prompts/*.md` land in `prompts/screenshots/`.
448
452
 
449
453
  #### What each command does
450
454
 
451
455
  | Command | What it does |
452
456
  | --- | --- |
453
- | `ptbk coder init` | Creates `prompts/`, `prompts/done/`, `prompts/templates/common.md`, `prompts/templates/agents-server.md`, ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`, adds helper coder scripts to `package.json`, ensures `.gitignore` contains `/.tmp`, and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
457
+ | `ptbk coder init` | Creates `prompts/`, `prompts/done/`, the project-generic template files materialized in `prompts/templates/` (currently `common.md`), and a starter `AGENTS.md`; ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`; adds helper coder scripts to `package.json`; ensures `.gitignore` contains `/.tmp`; and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
454
458
  | `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
455
459
  | `ptbk coder run` | Picks the next ready prompt, appends optional context, runs it through the selected coding agent, marks success or failure, then commits and pushes the result. |
456
- | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors. |
460
+ | `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <low|medium|high|xhigh>` makes the scan more or less aggressive. |
457
461
  | `ptbk coder verify` | Walks through completed prompts, archives truly finished work, and adds follow-up repair prompts for unfinished results. |
458
462
 
459
463
  #### Most useful `ptbk coder run` flags
@@ -475,7 +479,7 @@ npx ptbk coder verify
475
479
 
476
480
  1. Initialize once with `ptbk coder init`.
477
481
  2. Customize `prompts/templates/*.md` if needed, then create or write prompt files in `prompts/`.
478
- 3. Put repository-specific instructions in `AGENTS.md`, then pass `--context AGENTS.md`.
482
+ 3. Customize the starter `AGENTS.md` with repository-specific instructions, then pass `--context AGENTS.md`.
479
483
  4. Run one prompt at a time interactively, or use `--no-wait` for unattended batches.
480
484
  5. Finish with `ptbk coder verify` so resolved prompts are archived and broken ones get explicit repair follow-ups.
481
485
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ptbk",
3
- "version": "0.112.0-36",
3
+ "version": "0.112.0-38",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -91,10 +91,10 @@
91
91
  "zod": "$zod"
92
92
  },
93
93
  "peerDependencies": {
94
- "@promptbook/core": "0.112.0-36"
94
+ "@promptbook/core": "0.112.0-38"
95
95
  },
96
96
  "dependencies": {
97
- "promptbook": "0.112.0-36"
97
+ "promptbook": "0.112.0-38"
98
98
  },
99
99
  "bin": {
100
100
  "ptbk": "bin/promptbook-cli-proxy.js"