@ikon85/agent-workflow-kit 0.34.6 → 0.36.0

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 (116) hide show
  1. package/.agents/skills/ask-matt/SKILL.md +8 -0
  2. package/.agents/skills/audit-skills/SKILL.md +8 -0
  3. package/.agents/skills/board-to-waves/SKILL.md +8 -0
  4. package/.agents/skills/census-update/SKILL.md +8 -0
  5. package/.agents/skills/code-review/SKILL.md +8 -0
  6. package/.agents/skills/codebase-design/SKILL.md +8 -0
  7. package/.agents/skills/codex-adapter-sync/SKILL.md +8 -0
  8. package/.agents/skills/decision-gate/SKILL.md +8 -0
  9. package/.agents/skills/diagnose/SKILL.md +8 -0
  10. package/.agents/skills/domain-modeling/SKILL.md +8 -0
  11. package/.agents/skills/git-worktree-recover/SKILL.md +8 -0
  12. package/.agents/skills/grill-me/SKILL.md +8 -0
  13. package/.agents/skills/grill-with-docs/SKILL.md +8 -0
  14. package/.agents/skills/implement/SKILL.md +8 -0
  15. package/.agents/skills/improve-codebase-architecture/SKILL.md +8 -0
  16. package/.agents/skills/kit-release/SKILL.md +8 -0
  17. package/.agents/skills/kit-update/SKILL.md +32 -11
  18. package/.agents/skills/local-ci/SKILL.md +8 -0
  19. package/.agents/skills/memory-lifecycle/SKILL.md +8 -0
  20. package/.agents/skills/orchestrate-wave/SKILL.md +2 -2
  21. package/.agents/skills/project-release/SKILL.md +8 -0
  22. package/.agents/skills/prototype/SKILL.md +8 -0
  23. package/.agents/skills/research/SKILL.md +8 -0
  24. package/.agents/skills/resolving-merge-conflicts/SKILL.md +8 -0
  25. package/.agents/skills/retro/SKILL.md +19 -3
  26. package/.agents/skills/scale-check/SKILL.md +8 -0
  27. package/.agents/skills/security-audit/SKILL.md +8 -0
  28. package/.agents/skills/setup-workflow/SKILL.md +52 -1
  29. package/.agents/skills/setup-workflow/contribution-routing.md +52 -0
  30. package/.agents/skills/setup-workflow/orchestrate-wave-seed.md +1 -0
  31. package/.agents/skills/setup-workflow/spec-self-critique-seed.md +1 -0
  32. package/.agents/skills/spec-self-critique/SKILL.md +8 -0
  33. package/.agents/skills/tdd/SKILL.md +8 -0
  34. package/.agents/skills/to-issues/SKILL.md +8 -0
  35. package/.agents/skills/to-prd/SKILL.md +8 -0
  36. package/.agents/skills/to-waves/SKILL.md +8 -0
  37. package/.agents/skills/triage/SKILL.md +8 -0
  38. package/.agents/skills/verify-spike/SKILL.md +8 -0
  39. package/.agents/skills/wayfinder/SKILL.md +8 -0
  40. package/.agents/skills/wrapup/SKILL.md +8 -0
  41. package/.claude/hooks/kit-origin-edit-hint.py +18 -13
  42. package/.claude/skills/ask-matt/SKILL.md +8 -0
  43. package/.claude/skills/audit-skills/SKILL.md +8 -0
  44. package/.claude/skills/board-to-waves/SKILL.md +8 -0
  45. package/.claude/skills/census-update/SKILL.md +8 -0
  46. package/.claude/skills/code-review/SKILL.md +8 -0
  47. package/.claude/skills/codebase-design/SKILL.md +8 -0
  48. package/.claude/skills/codex-build/SKILL.md +8 -0
  49. package/.claude/skills/codex-review/SKILL.md +8 -0
  50. package/.claude/skills/decision-gate/SKILL.md +8 -0
  51. package/.claude/skills/diagnose/SKILL.md +8 -0
  52. package/.claude/skills/domain-modeling/SKILL.md +8 -0
  53. package/.claude/skills/git-guardrails-claude-code/SKILL.md +8 -0
  54. package/.claude/skills/git-worktree-recover/SKILL.md +8 -0
  55. package/.claude/skills/grill-me/SKILL.md +8 -0
  56. package/.claude/skills/grill-me-codex/SKILL.md +8 -0
  57. package/.claude/skills/grill-with-docs/SKILL.md +8 -0
  58. package/.claude/skills/grill-with-docs-codex/SKILL.md +8 -0
  59. package/.claude/skills/implement/SKILL.md +8 -0
  60. package/.claude/skills/improve-codebase-architecture/SKILL.md +8 -0
  61. package/.claude/skills/kit-release/SKILL.md +8 -0
  62. package/.claude/skills/kit-update/SKILL.md +32 -11
  63. package/.claude/skills/local-ci/SKILL.md +8 -0
  64. package/.claude/skills/memory-lifecycle/SKILL.md +8 -0
  65. package/.claude/skills/orchestrate-wave/SKILL.md +2 -2
  66. package/.claude/skills/project-release/SKILL.md +8 -0
  67. package/.claude/skills/prototype/SKILL.md +8 -0
  68. package/.claude/skills/research/SKILL.md +8 -0
  69. package/.claude/skills/resolving-merge-conflicts/SKILL.md +8 -0
  70. package/.claude/skills/retro/SKILL.md +19 -3
  71. package/.claude/skills/scale-check/SKILL.md +8 -0
  72. package/.claude/skills/security-audit/SKILL.md +8 -0
  73. package/.claude/skills/setup-pre-commit/SKILL.md +8 -0
  74. package/.claude/skills/setup-workflow/SKILL.md +52 -1
  75. package/.claude/skills/setup-workflow/contribution-routing.md +52 -0
  76. package/.claude/skills/setup-workflow/orchestrate-wave-seed.md +1 -0
  77. package/.claude/skills/setup-workflow/spec-self-critique-seed.md +1 -0
  78. package/.claude/skills/spec-self-critique/SKILL.md +8 -0
  79. package/.claude/skills/tdd/SKILL.md +8 -0
  80. package/.claude/skills/to-issues/SKILL.md +8 -0
  81. package/.claude/skills/to-prd/SKILL.md +8 -0
  82. package/.claude/skills/to-waves/SKILL.md +8 -0
  83. package/.claude/skills/triage/SKILL.md +8 -0
  84. package/.claude/skills/verify-spike/SKILL.md +8 -0
  85. package/.claude/skills/wayfinder/SKILL.md +8 -0
  86. package/.claude/skills/wrapup/SKILL.md +8 -0
  87. package/.claude/skills/write-a-skill/SKILL.md +8 -0
  88. package/README.md +172 -5
  89. package/agent-workflow-kit.package.json +149 -89
  90. package/docs/agents/skills/local-ci.md +1 -0
  91. package/docs/agents/skills/orchestrate-wave.md +1 -1
  92. package/docs/agents/skills/spec-self-critique.md +1 -1
  93. package/package.json +1 -1
  94. package/scripts/find-by-marker.py +2 -0
  95. package/scripts/project-skill-extension.mjs +37 -0
  96. package/scripts/readiness.mjs +2 -1
  97. package/scripts/test_marker_lib.py +8 -0
  98. package/scripts/test_retro_wrapup_contract.py +6 -4
  99. package/scripts/test_skill_publish_audit.py +9 -1
  100. package/src/cli.mjs +86 -12
  101. package/src/commands/init.mjs +24 -0
  102. package/src/commands/own.mjs +7 -3
  103. package/src/commands/update.mjs +87 -21
  104. package/src/lib/bundle.mjs +5 -0
  105. package/src/lib/contributionBridge.mjs +176 -0
  106. package/src/lib/contributionRouting.mjs +152 -0
  107. package/src/lib/manifest.mjs +17 -2
  108. package/src/lib/ownershipClassifier.mjs +65 -0
  109. package/src/lib/projectSkillExtension.mjs +60 -0
  110. package/src/lib/skillRegistry.mjs +167 -0
  111. package/src/lib/updateCandidate.mjs +105 -4
  112. package/src/lib/updateDecisions.mjs +5 -0
  113. package/src/lib/updateReconcile.mjs +102 -9
  114. package/src/lib/verifyUpdateCandidate.mjs +28 -1
  115. package/src/lib/verifyUpdateCandidateProtocol.mjs +2 -0
  116. package/src/lib/verifyUpdateCandidateTransaction.mjs +19 -3
package/README.md CHANGED
@@ -331,13 +331,28 @@ npx github:iKon85/agent-workflow-kit uninstall # remove kit-installed files
331
331
  - a file you **did** edit is kept — the incoming version is backed up with a
332
332
  timestamp and a diff is printed, never silently overwritten;
333
333
  - a file you intentionally fork can be detached with
334
- `npx github:iKon85/agent-workflow-kit own <path>` and returned to kit ownership
335
- with `npx github:iKon85/agent-workflow-kit disown <path>`; owned files are
334
+ `npx github:iKon85/agent-workflow-kit own <path> --as=explicit-fork` and
335
+ returned to kit ownership with
336
+ `npx github:iKon85/agent-workflow-kit disown <path>`; owned files are
336
337
  skipped by updates even after the package stops shipping them;
338
+ - a modified declared Core path enters the temporary Contribution Bridge with
339
+ `contribute start <path>`. `contribute prepare <path>
340
+ --output=.agent-workflow-kit/contributions/<name>.json` writes one local,
341
+ schema-versioned diff/provenance artifact and performs no remote action. A
342
+ release whose Core bytes match the bridged bytes retires the bridge
343
+ automatically on reimport;
344
+ - `contribute status <path> --surface=retro|pre-update|guard` reads the same
345
+ repository-scoped route decision on every workflow surface. Without a valid
346
+ `contributionRouting` section in `docs/agents/workflow-capabilities.json`,
347
+ only preserve/Explicit-fork guidance is available. A configured upstream must
348
+ match its local Git remote; even then, the remote pull-request route requires
349
+ a separate explicit approval;
337
350
  - a file removed upstream is offered for deletion (a hook still referenced by your
338
351
  `settings.json` is kept regardless);
339
- - a new kit path that already exists locally is reported as a collision: choose
340
- either to keep the existing file as consumer-owned or replace it with kit bytes;
352
+ - a new Kit path that already exists locally is an `ambiguous-collision` until
353
+ an interactive or automated caller explicitly classifies it as a Project
354
+ extension, Contribution Bridge, Explicit fork, or clean Core; `--yes` never
355
+ chooses that interpretation and never overwrites the path;
341
356
  - new skills without a local collision are added.
342
357
 
343
358
  Ownership survives repeated `init`, including `init --force`: consumer-owned
@@ -354,7 +369,50 @@ Containment and file type are revalidated when read.
354
369
  Ownership commands are designed for a single-user CLI workflow and are not
355
370
  concurrency-safe. Do not run manifest-mutating commands concurrently. Flags:
356
371
  `--force` (overwrite pre-existing untracked files on `init`), `--yes` / `-y`
357
- (accept non-interactive update decisions).
372
+ (confirm only already-classified safe update actions), and
373
+ `--as=explicit-fork` for `own`.
374
+
375
+ The optional Contribution Routing capability is consumer-owned:
376
+
377
+ ```json
378
+ {
379
+ "contributionRouting": {
380
+ "schemaVersion": 1,
381
+ "enabled": true,
382
+ "upstream": {
383
+ "repository": "owner/repository",
384
+ "remote": "kit-upstream"
385
+ },
386
+ "workflows": {
387
+ "prepareLocal": true,
388
+ "upstreamPullRequest": {
389
+ "enabled": true,
390
+ "requiresExplicitApproval": true
391
+ }
392
+ }
393
+ }
394
+ }
395
+ ```
396
+
397
+ The resolver verifies the configured remote URL and never infers capability
398
+ from a username, machine, checkout path, consumer repository name, credentials,
399
+ or current GitHub login.
400
+
401
+ ### Project extensions versus forks
402
+
403
+ Every shipped skill probes the optional consumer-owned
404
+ `docs/agents/skills/<skill>.md` after loading its canonical Core. New
405
+ extensions declare
406
+ `<!-- agent-workflow-kit: project-extension/v1; skill=<skill> -->`; existing
407
+ non-empty unmarked files remain supported as legacy v0. Claude and Codex use
408
+ the same extension path and fail closed on an unknown schema or mismatched
409
+ identity.
410
+
411
+ Use an extension for Project-specific language, commands, policy, or
412
+ capability data. It augments Core and survives setup and updates byte-for-byte;
413
+ it cannot weaken Core gates or replace executable semantics. If you need to
414
+ change parsing, migration, evaluation, or other executable behavior, create an
415
+ Explicit fork with its own identity and update line instead.
358
416
 
359
417
  ## Upgrade notes
360
418
 
@@ -387,6 +445,115 @@ the old way. Decision record:
387
445
 
388
446
  ## Release notes
389
447
 
448
+ ### 0.36.0
449
+
450
+ - added: `.agents/skills/setup-workflow/contribution-routing.md`
451
+ - added: `.claude/skills/setup-workflow/contribution-routing.md`
452
+ - changed: `.agents/skills/kit-update/SKILL.md`
453
+ - changed: `.agents/skills/retro/SKILL.md`
454
+ - changed: `.agents/skills/setup-workflow/SKILL.md`
455
+ - changed: `.claude/hooks/kit-origin-edit-hint.py`
456
+ - changed: `.claude/skills/kit-update/SKILL.md`
457
+ - changed: `.claude/skills/retro/SKILL.md`
458
+ - changed: `.claude/skills/setup-workflow/SKILL.md`
459
+ - changed: `scripts/find-by-marker.py`
460
+ - changed: `src/lib/manifest.mjs`
461
+ - changed: `src/lib/ownershipClassifier.mjs`
462
+
463
+ ### 0.35.0
464
+
465
+ - added: `scripts/project-skill-extension.mjs`
466
+ - added: `src/lib/ownershipClassifier.mjs`
467
+ - added: `src/lib/projectSkillExtension.mjs`
468
+ - added: `src/lib/skillRegistry.mjs`
469
+ - added: `src/lib/updateDecisions.mjs`
470
+ - changed: `.agents/skills/ask-matt/SKILL.md`
471
+ - changed: `.agents/skills/audit-skills/SKILL.md`
472
+ - changed: `.agents/skills/board-to-waves/SKILL.md`
473
+ - changed: `.agents/skills/census-update/SKILL.md`
474
+ - changed: `.agents/skills/code-review/SKILL.md`
475
+ - changed: `.agents/skills/codebase-design/SKILL.md`
476
+ - changed: `.agents/skills/codex-adapter-sync/SKILL.md`
477
+ - changed: `.agents/skills/decision-gate/SKILL.md`
478
+ - changed: `.agents/skills/diagnose/SKILL.md`
479
+ - changed: `.agents/skills/domain-modeling/SKILL.md`
480
+ - changed: `.agents/skills/git-worktree-recover/SKILL.md`
481
+ - changed: `.agents/skills/grill-me/SKILL.md`
482
+ - changed: `.agents/skills/grill-with-docs/SKILL.md`
483
+ - changed: `.agents/skills/implement/SKILL.md`
484
+ - changed: `.agents/skills/improve-codebase-architecture/SKILL.md`
485
+ - changed: `.agents/skills/kit-release/SKILL.md`
486
+ - changed: `.agents/skills/kit-update/SKILL.md`
487
+ - changed: `.agents/skills/local-ci/SKILL.md`
488
+ - changed: `.agents/skills/memory-lifecycle/SKILL.md`
489
+ - changed: `.agents/skills/orchestrate-wave/SKILL.md`
490
+ - changed: `.agents/skills/project-release/SKILL.md`
491
+ - changed: `.agents/skills/prototype/SKILL.md`
492
+ - changed: `.agents/skills/research/SKILL.md`
493
+ - changed: `.agents/skills/resolving-merge-conflicts/SKILL.md`
494
+ - changed: `.agents/skills/retro/SKILL.md`
495
+ - changed: `.agents/skills/scale-check/SKILL.md`
496
+ - changed: `.agents/skills/security-audit/SKILL.md`
497
+ - changed: `.agents/skills/setup-workflow/SKILL.md`
498
+ - changed: `.agents/skills/setup-workflow/orchestrate-wave-seed.md`
499
+ - changed: `.agents/skills/setup-workflow/spec-self-critique-seed.md`
500
+ - changed: `.agents/skills/spec-self-critique/SKILL.md`
501
+ - changed: `.agents/skills/tdd/SKILL.md`
502
+ - changed: `.agents/skills/to-issues/SKILL.md`
503
+ - changed: `.agents/skills/to-prd/SKILL.md`
504
+ - changed: `.agents/skills/to-waves/SKILL.md`
505
+ - changed: `.agents/skills/triage/SKILL.md`
506
+ - changed: `.agents/skills/verify-spike/SKILL.md`
507
+ - changed: `.agents/skills/wayfinder/SKILL.md`
508
+ - changed: `.agents/skills/wrapup/SKILL.md`
509
+ - changed: `.claude/skills/ask-matt/SKILL.md`
510
+ - changed: `.claude/skills/audit-skills/SKILL.md`
511
+ - changed: `.claude/skills/board-to-waves/SKILL.md`
512
+ - changed: `.claude/skills/census-update/SKILL.md`
513
+ - changed: `.claude/skills/code-review/SKILL.md`
514
+ - changed: `.claude/skills/codebase-design/SKILL.md`
515
+ - changed: `.claude/skills/codex-build/SKILL.md`
516
+ - changed: `.claude/skills/codex-review/SKILL.md`
517
+ - changed: `.claude/skills/decision-gate/SKILL.md`
518
+ - changed: `.claude/skills/diagnose/SKILL.md`
519
+ - changed: `.claude/skills/domain-modeling/SKILL.md`
520
+ - changed: `.claude/skills/git-guardrails-claude-code/SKILL.md`
521
+ - changed: `.claude/skills/git-worktree-recover/SKILL.md`
522
+ - changed: `.claude/skills/grill-me-codex/SKILL.md`
523
+ - changed: `.claude/skills/grill-me/SKILL.md`
524
+ - changed: `.claude/skills/grill-with-docs-codex/SKILL.md`
525
+ - changed: `.claude/skills/grill-with-docs/SKILL.md`
526
+ - changed: `.claude/skills/implement/SKILL.md`
527
+ - changed: `.claude/skills/improve-codebase-architecture/SKILL.md`
528
+ - changed: `.claude/skills/kit-release/SKILL.md`
529
+ - changed: `.claude/skills/kit-update/SKILL.md`
530
+ - changed: `.claude/skills/local-ci/SKILL.md`
531
+ - changed: `.claude/skills/memory-lifecycle/SKILL.md`
532
+ - changed: `.claude/skills/orchestrate-wave/SKILL.md`
533
+ - changed: `.claude/skills/project-release/SKILL.md`
534
+ - changed: `.claude/skills/prototype/SKILL.md`
535
+ - changed: `.claude/skills/research/SKILL.md`
536
+ - changed: `.claude/skills/resolving-merge-conflicts/SKILL.md`
537
+ - changed: `.claude/skills/retro/SKILL.md`
538
+ - changed: `.claude/skills/scale-check/SKILL.md`
539
+ - changed: `.claude/skills/security-audit/SKILL.md`
540
+ - changed: `.claude/skills/setup-pre-commit/SKILL.md`
541
+ - changed: `.claude/skills/setup-workflow/SKILL.md`
542
+ - changed: `.claude/skills/setup-workflow/orchestrate-wave-seed.md`
543
+ - changed: `.claude/skills/setup-workflow/spec-self-critique-seed.md`
544
+ - changed: `.claude/skills/spec-self-critique/SKILL.md`
545
+ - changed: `.claude/skills/tdd/SKILL.md`
546
+ - changed: `.claude/skills/to-issues/SKILL.md`
547
+ - changed: `.claude/skills/to-prd/SKILL.md`
548
+ - changed: `.claude/skills/to-waves/SKILL.md`
549
+ - changed: `.claude/skills/triage/SKILL.md`
550
+ - changed: `.claude/skills/verify-spike/SKILL.md`
551
+ - changed: `.claude/skills/wayfinder/SKILL.md`
552
+ - changed: `.claude/skills/wrapup/SKILL.md`
553
+ - changed: `.claude/skills/write-a-skill/SKILL.md`
554
+ - changed: `scripts/readiness.mjs`
555
+ - changed: `src/lib/manifest.mjs`
556
+
390
557
  ### 0.34.6
391
558
 
392
559
  - changed: `.agents/skills/kit-release/SKILL.md`