@williambeto/ai-workflow 1.18.17 → 1.18.18

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.
@@ -0,0 +1,89 @@
1
+ # Project Napkin Memory
2
+
3
+ ## Purpose
4
+
5
+ This file stores durable, reusable project memory for `ai-workflow`.
6
+
7
+ It captures recurring corrections and stable operational rules that should survive across sessions.
8
+
9
+ ## Usage rules
10
+
11
+ - Read at relevant task start when work depends on repository structure, workflow rules, validation behavior, or recurring conventions.
12
+ - Apply progressive disclosure: use only entries relevant to the current task.
13
+ - Add entries only when guidance is durable and reusable.
14
+ - Do not store secrets, credentials, tokens, private keys, or personal/environment-sensitive data.
15
+ - Do not use this file as a temporary notes dump or task timeline log.
16
+
17
+ ## Current durable project memory
18
+
19
+ ### [2026-05-11] Workflow: Keep pull requests small and reviewable
20
+
21
+ - Instead of: Combining multiple workflow phases or unrelated refactors in one change.
22
+ - Do: Implement one scoped PR-sized unit at a time and preserve no-regression behavior.
23
+ - Evidence/source: `AGENTS.md` hard constraints and primary workflow.
24
+
25
+ ### [2026-05-11] Validation: Run full repository validation before closing work
26
+
27
+ - Instead of: Assuming docs or script edits are safe without full validation.
28
+ - Do: Run `npm run validate` and report command evidence in the final output.
29
+ - Evidence/source: `AGENTS.md` evidence requirements and validation rules.
30
+
31
+ ### [2026-05-11] Skill design: Keep skills portable and lightweight
32
+
33
+ - Instead of: Embedding heavy repo-specific logic directly into each skill.
34
+ - Do: Keep skills operational, concise, and reusable across real project contexts.
35
+ - Evidence/source: `AGENTS.md` repository context and specialist skill guidance.
36
+
37
+ ### [2026-05-11] Skill structure: Every skill directory needs `SKILL.md`
38
+
39
+ - Instead of: Treating a skill directory as valid without its required definition file.
40
+ - Do: Ensure each `.agents/skills/*` directory contains `SKILL.md`.
41
+ - Evidence/source: `scripts/validate-skills.mjs` dynamic directory check.
42
+
43
+ ### [2026-05-11] Validation quality: Do not allow incomplete skills to pass
44
+
45
+ - Instead of: Passing validation when required skill files are missing.
46
+ - Do: Fail validation for missing skill files and treat it as a blocking issue.
47
+ - Evidence/source: `scripts/validate-skills.mjs` failure behavior and repo quality gates.
48
+
49
+ ### [2026-05-11] Review quality: Prefer evidence-based findings
50
+
51
+ - Instead of: Reporting vague findings without concrete references.
52
+ - Do: Include file paths and command output in findings and validation summaries.
53
+ - Evidence/source: `AGENTS.md` evidence requirements and finding model.
54
+
55
+ ### [2026-05-12] Token economy: Caveman mode does not auto-pass to delegated agents
56
+
57
+ - Instead of: Activating `/caveman` and assuming all delegated agents stay compact.
58
+ - Do: Each new agent context loads fresh without caveman compression unless the delegation packet explicitly requests it.
59
+ - Do: When delegating, include in the handoff packet: "Use compact output — caveman mode active."
60
+ - Do: For multi-agent chains (planner → implementer → reviewer), activate token-economy + minimal-context in each agent's Required context or delegation contract.
61
+ - Evidence/source: `AGENTS.md` anti-overdelegation rules, `minimal-context` skill, `token-economy` skill.
62
+
63
+ ### [2026-05-13] Phase 8: Codex parity complete — all PRs merged
64
+
65
+ - Instead of: Leaving Codex users without guided orchestration or debugging entrypoints.
66
+ - Do: After any audit that identifies gaps, create a Phase in ROADMAP.md and deliver PRs sequentially with validation at each step.
67
+ - Do: Mark each Phase as `[x]` in ROADMAP when complete, update status line, and update "next recommended PR".
68
+ - Evidence/source: ROADMAP.md Phase 8 — 6 PRs delivered (orchestrate-next.md, fix-issue.md, deploy.md, autopilot→orchestrator fixes, README tree, AGENTS.md note). PR #89 merged. 9/9 validate checks.
69
+
70
+ ### [2026-05-13] Audit: Napkin works for both Codex and OpenCode
71
+
72
+ - Instead of: Worrying that Napkin might be tool-specific or only work for OpenCode.
73
+ - Do: Trust that Napkin is fully shared — same file, same skill, same format for both Codex and OpenCode.
74
+ - Do: After any audit or significant workflow change, update Napkin if a durable lesson was confirmed.
75
+ - Evidence/source: `.agents/napkin.md` audit 2026-05-13 — SKILL.md passes validate:skills for both tools; progressive disclosure documented; 0 secrets; 8 valid entries.
76
+
77
+ ### [2026-05-14] Release hygiene: update `package.json` before release
78
+
79
+ - Instead of: Creating a release tag without aligning repository version metadata.
80
+ - Do: Update `package.json` version before creating a release.
81
+ - Do: Keep version, tag, and release notes aligned so release automation and changelog extraction stay consistent.
82
+ - Evidence/source: `release.yml` extracts notes by tag version; release flow consistency depends on matching semver across tags and project metadata.
83
+
84
+ ### [2026-05-23] Documentation language: English only for repository docs
85
+
86
+ - Instead of: Adding or keeping Portuguese (or mixed-language) content in official documentation files.
87
+ - Do: Write and maintain all repository documentation in English by default.
88
+ - Do: Apply this rule to docs, runbooks, prompts, specs, and policy files unless a file explicitly declares a localization scope.
89
+ - Evidence/source: User directive in session (2026-05-23) and consistency requirement for public developer experience.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.18.18](https://github.com/williambeto/ai-workflow/compare/v1.18.17...v1.18.18) (2026-05-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **init:** include napkin memory in npm install ([f4f2e31](https://github.com/williambeto/ai-workflow/commit/f4f2e313dfae85daa31c92d60d5402df48c83b62))
7
+
1
8
  ## [1.18.17](https://github.com/williambeto/ai-workflow/compare/v1.18.16...v1.18.17) (2026-05-23)
2
9
 
3
10
 
package/README.md CHANGED
@@ -108,7 +108,7 @@ npx @williambeto/ai-workflow init --dry-run
108
108
  | Profile | Use when |
109
109
  | --- | --- |
110
110
  | `minimal` | You only need basic docs and Codex prompt placeholders. |
111
- | `operational` (default) | You want the repeatable PR workflow with OpenCode `start` command. |
111
+ | `operational` | You want the repeatable PR workflow with OpenCode `start` command. |
112
112
  | `full` | You want starter files for the full agent and skill catalog. |
113
113
 
114
114
  For a full walkthrough with Codex and OpenCode quickstart paths, validation checklist, and troubleshooting, see [`docs/npm-consumer-quickstart.md`](docs/npm-consumer-quickstart.md).
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.18.17",
2
+ "version": "1.18.18",
3
3
  "name": "@williambeto/ai-workflow",
4
4
  "description": "AI Workflow Kit repository for designing and validating AI-assisted software delivery workflows with Codex and OpenCode",
5
5
  "license": "MIT",
@@ -24,6 +24,7 @@
24
24
  "packages/ai-workflow/src/",
25
25
  ".codex/prompts/",
26
26
  ".agents/skills/",
27
+ ".agents/napkin.md",
27
28
  "opencode/agents/",
28
29
  "opencode/commands/",
29
30
  "opencode/README.md",
@@ -154,6 +154,12 @@ function buildFullFiles() {
154
154
  }
155
155
  }
156
156
 
157
+ // ── Napkin memory seed (used by napkin skill) ─────────────────────
158
+ const napkinContent = readPackageFile(".agents/napkin.md");
159
+ if (napkinContent !== null) {
160
+ files[".agents/napkin.md"] = napkinContent;
161
+ }
162
+
157
163
  // ── OpenCode commands ────────────────────────────────────────────
158
164
  const commandFiles = discoverPackageFiles("opencode/commands");
159
165
  for (const [relPath, content] of Object.entries(commandFiles)) {
@@ -27,6 +27,28 @@ This split prevents accidental automated npm publishes while keeping semantic-re
27
27
  4. Require `NPM_TOKEN` secret for real publish.
28
28
  5. Do not publish if repository state, version intent, or release notes are unclear.
29
29
 
30
+ ## Local terminal vs GitHub Actions authentication
31
+
32
+ `NPM_TOKEN` configured in GitHub secrets applies only to GitHub Actions jobs. It does not authenticate local terminal publish commands.
33
+
34
+ - If local `npm publish` fails with `E401` or `E404`, this can still be expected even when CI publish works.
35
+ - Prefer the workflow path (`.github/workflows/publish-npm.yml`) as the source of truth for production publish.
36
+
37
+ Quick checks:
38
+
39
+ ```bash
40
+ # Local auth check (optional)
41
+ npm whoami
42
+
43
+ # Registry verification after CI publish
44
+ npm view @williambeto/ai-workflow versions --json --registry https://registry.npmjs.org
45
+ ```
46
+
47
+ Expected behavior:
48
+
49
+ - Local may fail if terminal auth is missing.
50
+ - CI publish should succeed when `secrets.NPM_TOKEN` is valid.
51
+
30
52
  ## Pre-publish checklist
31
53
 
32
54
  - [ ] `package.json` version is intentional.