agentme 0.7.5 → 0.8.1

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 (25) hide show
  1. package/.specify/memory/constitution.md +33 -52
  2. package/.xdrs/agentme/edrs/application/003-javascript-project-tooling.md +2 -2
  3. package/.xdrs/agentme/edrs/application/010-golang-project-tooling.md +2 -2
  4. package/.xdrs/agentme/edrs/application/014-python-project-tooling.md +2 -2
  5. package/.xdrs/agentme/edrs/application/015-cli-tool-standards.md +2 -3
  6. package/.xdrs/agentme/edrs/application/skills/001-create-javascript-project/SKILL.md +1 -1
  7. package/.xdrs/agentme/edrs/application/skills/003-create-golang-project/SKILL.md +1 -1
  8. package/.xdrs/agentme/edrs/application/skills/004-select-relevant-xdrs/SKILL.md +1 -1
  9. package/.xdrs/agentme/edrs/application/skills/005-create-python-project/SKILL.md +1 -1
  10. package/.xdrs/agentme/edrs/devops/005-monorepo-structure.md +2 -2
  11. package/.xdrs/agentme/edrs/devops/006-github-pipelines.md +2 -2
  12. package/.xdrs/agentme/edrs/devops/008-common-targets.md +2 -2
  13. package/.xdrs/agentme/edrs/devops/017-tool-execution-and-scripting.md +2 -2
  14. package/.xdrs/agentme/edrs/devops/skills/002-monorepo-setup/SKILL.md +1 -1
  15. package/.xdrs/agentme/edrs/governance/013-contributing-guide-requirements.md +2 -2
  16. package/.xdrs/agentme/edrs/observability/011-service-health-check-endpoint.md +2 -2
  17. package/.xdrs/agentme/edrs/principles/002-coding-best-practices.md +2 -2
  18. package/.xdrs/agentme/edrs/principles/004-unit-test-requirements.md +2 -2
  19. package/.xdrs/agentme/edrs/principles/007-project-quality-standards.md +2 -2
  20. package/.xdrs/agentme/edrs/principles/009-error-handling.md +2 -2
  21. package/.xdrs/agentme/edrs/principles/012-continuous-xdr-enrichment.md +3 -3
  22. package/.xdrs/agentme/edrs/principles/016-cross-language-module-structure.md +2 -2
  23. package/.xdrs/agentme/edrs/principles/articles/001-continuous-xdr-improvement.md +2 -2
  24. package/.xdrs/index.md +2 -0
  25. package/package.json +4 -4
@@ -40,78 +40,59 @@ vibe coding, onboarding, and future feature development.
40
40
  - EDRs capture concrete engineering decisions: tooling, structure, practices.
41
41
  - Every non-trivial implementation decision MUST have a corresponding XDR entry before the implementation task is marked complete. Create new XDRs if necessary.
42
42
 
43
- ### II. Preset Integrity (NON-NEGOTIABLE)
43
+ ### II. XDR as the Single Source of Truth for All Policies
44
44
 
45
- agentme distributes files to consumer projects via named presets (`basic`, `speckit`). Each
46
- preset MUST be independently coherent, non-overlapping, and verified on every build.
45
+ All quality standards, business policies, architectural policies, and engineering policies that
46
+ specs, plans, and implementations must follow MUST be captured exclusively in XDRs. The
47
+ constitution does not restate those rules; it defers to them.
47
48
 
48
- - A preset MUST contain all files a consumer needs and nothing more.
49
- - Presets MUST NOT share extraction sets unless the consumer explicitly requests multiple presets.
50
- - The `examples/` folder MUST assert the exact file presence/absence for each preset combination
51
- after every `make build`.
52
- - Adding a file to a preset or changing selector patterns is a public API change and requires a
53
- version bump (MINOR or MAJOR depending on impact).
54
-
55
- ### III. Consumer-First API Discipline
56
-
57
- XDRs, skills, and preset file sets are a public API consumed by external projects. Changes MUST
58
- respect semantic versioning.
59
-
60
- - MAJOR: removing or renaming a preset, removing or restructuring an XDR that external consumers
61
- reference, or any change that requires consumer-side migration.
62
- - MINOR: adding a new preset, adding XDRs or skills, adding files to an existing preset.
63
- - PATCH: wording, clarifications, typo fixes inside XDRs or skills that carry no structural change.
64
- - Breaking changes MUST be documented in the release notes and in the relevant XDR's `Conflicts`
65
- or `Implementation Details` section before merging.
66
-
67
- ### IV. Self-Contained Artifacts
68
-
69
- Every XDR and skill MUST work without any implicit context outside itself.
70
-
71
- - XDRs MUST be under 100 lines (hard limit 200 for templates and elaborate decisions).
72
- - Skills MUST be under 500 lines; lengthy reference material goes in `references/`.
73
- - Internal cross-references MUST use relative file paths; no absolute or external URLs without
74
- explanation.
75
- - A consumer reading an XDR or skill for the first time MUST be able to follow it without
76
- accessing other systems.
77
-
78
- ### V. Simplicity and Verified Quality
79
-
80
- The simplest solution that passes all tests is always preferred. Quality gates are non-negotiable.
81
-
82
- - `make test` MUST pass before any release; failures block publish.
83
- - Linting MUST be clean (`make lint-fix`) before merging.
84
- - Files MUST NOT exceed 400 lines (test files excepted).
85
- - No feature scope creep: implement only what the current spec requires.
86
- - Avoid adding error handling, fallbacks, or abstractions for hypothetical future scenarios.
87
-
88
- ## Quality Requirements
89
-
90
- - `make test` in `examples/` MUST verify all preset extraction scenarios end-to-end.
91
- - XDRs produced during a feature MUST be reviewed for non-conflict before merging.
92
- - All XDR indexes (`_local`, `agentme`, `_core`) MUST be updated before a PR is merged.
93
- - New presets or selector changes MUST include updated test assertions in the examples Makefile.
49
+ - Quality gates (testing, linting, coverage thresholds, file-size limits) EDRs.
50
+ - Business rules, consumer workflows, versioning contracts BDRs.
51
+ - Architectural patterns, cross-cutting concerns, dependency strategies ADRs.
52
+ - If a policy is not in an XDR, it is not an enforceable policy. Write the XDR first.
53
+ - Agents and humans MUST consult the XDR index before starting any work and MUST follow every
54
+ relevant XDR found there without exception.
94
55
 
95
56
  ## Development Workflow
96
57
 
97
58
  1. Before starting a feature: check existing XDRs for applicable decisions.
98
59
  2. During specifying (`speckit.specify`): capture business requirements as BDRs in `_local`.
60
+ **After every `speckit.specify` run the agent MUST offer to run `speckit.clarify` (refine)
61
+ before proceeding to planning. This is non-negotiable.**
99
62
  3. During planning (`speckit.plan`): update or create ADRs and EDRs in `_local` that reflect
100
63
  architectural and engineering decisions made during the planning phase.
64
+ **After every `speckit.plan` run the agent MUST propose running `speckit.checklist` to enrich
65
+ the plan with domain-specific quality checks before generating tasks.**
101
66
  4. During implementation: follow XDRs; create new `_local` XDRs for decisions not yet captured.
102
67
  5. After implementation: delete feature specs and plans; XDRs remain permanently.
103
68
  6. Runtime guidance: see `.xdrs/index.md` and all linked scope indexes.
104
69
 
70
+ ## XDR Compliance Check (Mandatory at Every Stage)
71
+
72
+ Every Spec, Refinement (clarify), Plan, Checklist, and Implementation task MUST include an
73
+ explicit step that verifies compliance with the XDRs present in the repository:
74
+
75
+ 1. Read `.xdrs/index.md` and all linked scope indexes (`_local`, `agentme`, `_core`).
76
+ 2. Identify every XDR relevant to the work being performed.
77
+ 3. Confirm that the artifact (spec, plan, task list, or code change) does not contradict any
78
+ relevant XDR.
79
+ 4. If a contradiction or gap is found: either update the artifact to comply, or create/update the
80
+ relevant XDR to reflect the new decision before continuing.
81
+ 5. Document the compliance check result in the artifact (e.g., a "XDR Compliance" section or
82
+ comment) so reviewers can audit it.
83
+
84
+ No artifact may be considered complete without a passed XDR compliance check.
85
+
105
86
  ## Governance
106
87
 
107
88
  This constitution supersedes all other development practices within this repository. Amendments
108
89
  require:
109
- 1. A version bump following semantic versioning rules stated in Principle III.
90
+ 1. A version bump following semantic versioning rules stated in the relevant BDR/ADR/EDR.
110
91
  2. An updated `LAST_AMENDED_DATE` in this file.
111
- 3. A review of all five principles for continued non-conflict.
92
+ 3. A review of all principles for continued non-conflict.
112
93
  4. An updated Sync Impact Report (HTML comment at the top of this file).
113
94
 
114
- All PRs MUST include a "Constitution Check" section confirming compliance with all five principles.
95
+ All PRs MUST include a "Constitution Check" section confirming compliance with all principles.
115
96
  Complexity MUST be justified; if a solution requires deviation from a principle, that deviation
116
97
  MUST be documented in a new or updated XDR in `_local`.
117
98
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-003-javascript-project-tooling-and-structure
2
+ name: agentme-edr-policy-003-javascript-project-tooling-and-structure
3
3
  description: Defines the standard JavaScript and TypeScript project toolchain and layout using Mise, pnpm, TypeScript, ESLint, Jest, and Makefiles. Use when scaffolding or reviewing JavaScript projects.
4
4
  ---
5
5
 
6
- # agentme-edr-003: JavaScript project tooling and structure
6
+ # agentme-edr-policy-003: JavaScript project tooling and structure
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-010-go-project-tooling-and-structure
2
+ name: agentme-edr-policy-010-go-project-tooling-and-structure
3
3
  description: Defines the standard Go project toolchain, layout, and Makefile workflow using Mise for agentme-based projects. Use when scaffolding or reviewing Go projects.
4
4
  ---
5
5
 
6
- # agentme-edr-010: Go project tooling and structure
6
+ # agentme-edr-policy-010: Go project tooling and structure
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-014-python-project-tooling-and-structure
2
+ name: agentme-edr-policy-014-python-project-tooling-and-structure
3
3
  description: Defines the standard Python project toolchain, layout, and Makefile workflow using Mise, uv, ruff, pyright, pytest, and pip-audit. Use when scaffolding or reviewing Python projects.
4
4
  ---
5
5
 
6
- # agentme-edr-014: Python project tooling and structure
6
+ # agentme-edr-policy-014: Python project tooling and structure
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,10 +1,9 @@
1
1
  ---
2
- name: agentme-edr-015-cli-tool-standards
2
+ name: agentme-edr-policy-015-cli-tool-standards
3
3
  description: Defines how distributable CLI tools should separate command handling from library logic and expose consistent command behavior. Use when designing or reviewing CLI interfaces.
4
- applied-to: Distributable CLI tools and their standalone libraries
5
4
  ---
6
5
 
7
- # agentme-edr-015: CLI tool standards
6
+ # agentme-edr-policy-015: CLI tool standards
8
7
 
9
8
  ## Context and Problem Statement
10
9
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: 001-create-javascript-project
2
+ name: agentme-edr-skill-001-create-javascript-project
3
3
  description: >
4
4
  Scaffolds the initial boilerplate structure for a JavaScript/TypeScript library project following
5
5
  the standard tooling and layout defined in agentme-edr-003. Activate this skill when the user
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: 003-create-golang-project
2
+ name: agentme-edr-skill-003-create-golang-project
3
3
  description: >
4
4
  Scaffolds the initial boilerplate structure for a Go (Golang) CLI or library project following
5
5
  the standard tooling and layout defined in agentme-edr-010. Activate this skill when the user
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: 004-select-relevant-xdrs
2
+ name: agentme-edr-skill-004-select-relevant-xdrs
3
3
  description: >
4
4
  Analyzes a client repository, extracts the full agentme XDR set, and excludes the records that do
5
5
  not fit the project's structure and workflow needs. Activate this skill when the user asks to
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: 005-create-python-project
2
+ name: agentme-edr-skill-005-create-python-project
3
3
  description: >
4
4
  Scaffolds the initial boilerplate structure for a Python library or CLI project following the
5
5
  standard tooling and layout defined in agentme-edr-014. Activate this skill when the user asks
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-005-monorepo-structure
2
+ name: agentme-edr-policy-005-monorepo-structure
3
3
  description: Defines the standard monorepo layout, naming, and build conventions using shared areas, Mise, and Makefiles. Use when creating or reviewing monorepos.
4
4
  ---
5
5
 
6
- # agentme-edr-005: Monorepo structure
6
+ # agentme-edr-policy-005: Monorepo structure
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-006-github-ci-cd-pipelines
2
+ name: agentme-edr-policy-006-github-ci-cd-pipelines
3
3
  description: Defines the standard GitHub Actions workflow split for CI, release tagging, and publishing. Use when configuring project automation.
4
4
  ---
5
5
 
6
- # agentme-edr-006: GitHub CI/CD pipelines
6
+ # agentme-edr-policy-006: GitHub CI/CD pipelines
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-008-common-development-script-names
2
+ name: agentme-edr-policy-008-common-development-script-names
3
3
  description: Defines standard Makefile target names and the mandatory tool-execution flow using Mise. Use when designing build, lint, test, and release entry points.
4
4
  ---
5
5
 
6
- # agentme-edr-008: Common development script names
6
+ # agentme-edr-policy-008: Common development script names
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-017-tool-execution-and-scripting
2
+ name: agentme-edr-policy-017-tool-execution-and-scripting
3
3
  description: Defines how Makefiles, CI pipelines, and optional wrapper scripts execute project commands. Use when designing project automation or command entry points.
4
4
  ---
5
5
 
6
- # agentme-edr-017: Tool execution and scripting
6
+ # agentme-edr-policy-017: Tool execution and scripting
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: 002-monorepo-setup
2
+ name: agentme-edr-skill-002-monorepo-setup
3
3
  description: >
4
4
  Step-by-step instructions for setting up and scaffolding a new monorepo following the standard
5
5
  layout, naming conventions, Makefiles, Mise tooling, and README requirements defined in
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-013-contributing-guide-requirements
2
+ name: agentme-edr-policy-013-contributing-guide-requirements
3
3
  description: Defines the minimum contributor workflow guidance required in root CONTRIBUTING.md files. Use when scaffolding or reviewing contribution processes.
4
4
  ---
5
5
 
6
- # agentme-edr-013: Contributing guide requirements
6
+ # agentme-edr-policy-013: Contributing guide requirements
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-011-service-health-check-endpoint
2
+ name: agentme-edr-policy-011-service-health-check-endpoint
3
3
  description: Defines the required health endpoint contract for service availability and dependency readiness checks. Use when implementing or reviewing service health endpoints.
4
4
  ---
5
5
 
6
- # agentme-edr-011: Service health check endpoint
6
+ # agentme-edr-policy-011: Service health check endpoint
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-002-coding-best-practices
2
+ name: agentme-edr-policy-002-coding-best-practices
3
3
  description: Defines cross-language coding practices for keeping code readable, modular, and synchronized with tests and documentation. Apply across projects adopting agentme engineering standards.
4
4
  ---
5
5
 
6
- # agentme-edr-002: Coding best practices
6
+ # agentme-edr-policy-002: Coding best practices
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-004-unit-test-requirements
2
+ name: agentme-edr-policy-004-unit-test-requirements
3
3
  description: Defines unit test requirements for assertions, offline execution, coverage, shared setup, and real-code preference. Use when writing or reviewing tests.
4
4
  ---
5
5
 
6
- # agentme-edr-004: Unit test requirements
6
+ # agentme-edr-policy-004: Unit test requirements
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-007-project-quality-standards
2
+ name: agentme-edr-policy-007-project-quality-standards
3
3
  description: Defines minimum project quality standards for README onboarding, testing, linting, XDR compliance, and runnable examples. Use when scaffolding or reviewing projects.
4
4
  ---
5
5
 
6
- # agentme-edr-007: Project quality standards
6
+ # agentme-edr-policy-007: Project quality standards
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-009-error-handling
2
+ name: agentme-edr-policy-009-error-handling
3
3
  description: Defines error handling practices for catching, propagating, surfacing, and testing failures consistently across projects. Use when implementing interfaces and failure paths.
4
4
  ---
5
5
 
6
- # agentme-edr-009: Error handling
6
+ # agentme-edr-policy-009: Error handling
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-012-continuous-xdr-improvement-policy
2
+ name: agentme-edr-policy-012-continuous-xdr-improvement-policy
3
3
  description: Defines how teams should promote reusable implementation guidance into shared XDRs instead of keeping it in prompts or local habits. Use when recurring decisions surface during delivery.
4
4
  ---
5
5
 
6
- # agentme-edr-012: Continuous xdr improvement policy
6
+ # agentme-edr-policy-012: Continuous xdr improvement policy
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -41,4 +41,4 @@ Developers must treat reusable missing guidance discovered during implementation
41
41
  - [_core-adr-001](../../../_core/adrs/principles/001-xdrs-core.md)
42
42
  - [_core-article-001](../../../_core/adrs/principles/articles/001-xdrs-overview.md)
43
43
  - [agentme-article-001](articles/001-continuous-xdr-improvement.md)
44
- - [002-write-xdr skill](../../../../.github/skills/002-write-xdr/SKILL.md)
44
+ - [002-write-policy skill](../../../../.github/skills/002-write-policy/SKILL.md)
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: agentme-edr-016-cross-language-module-structure
2
+ name: agentme-edr-policy-016-cross-language-module-structure
3
3
  description: Defines the baseline module-root structure, artifact locations, cache placement, README expectations, examples layout, and test folder conventions across languages. Use when creating or reviewing buildable modules.
4
4
  ---
5
5
 
6
- # agentme-edr-016: Cross-language module structure
6
+ # agentme-edr-policy-016: Cross-language module structure
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -1,4 +1,4 @@
1
- # agentme-article-001: Continuous XDR improvement
1
+ # agentme-edr-article-001: Continuous XDR improvement
2
2
 
3
3
  ## Overview
4
4
 
@@ -90,4 +90,4 @@ If the same clarification would likely be needed in another feature, by another
90
90
  - [_core-adr-001](../../../../_core/adrs/principles/001-xdrs-core.md) - XDR structure, numbering, and mandatory template
91
91
  - [_core-article-001](../../../../_core/adrs/principles/articles/001-xdrs-overview.md) - XDR introduction and general adoption guidance
92
92
  - [agentme-edr-012](../012-continuous-xdr-enrichment.md) - Shared-first XDR enrichment policy and 80% coverage target
93
- - [002-write-xdr skill](../../../../../.github/skills/002-write-xdr/SKILL.md) - Step-by-step procedure for drafting new XDRs
93
+ - [002-write-policy skill](../../../../../.github/skills/002-write-policy/SKILL.md) - Step-by-step procedure for drafting new XDRs
package/.xdrs/index.md CHANGED
@@ -6,6 +6,8 @@ This index points to all type- and scope-specific XDR indexes. XDRs (Decision Re
6
6
 
7
7
  XDRs in scopes listed last override the ones listed first
8
8
 
9
+ XDRS scopes listed last override the ones listed first
10
+
9
11
  ### _core
10
12
 
11
13
  Decisions about how XDRs work
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "agentme",
3
- "version": "0.7.5",
3
+ "version": "0.8.1",
4
4
  "description": "",
5
5
  "dependencies": {
6
- "filedist": "^0.26.0",
7
- "xdrs-core": "^0.21.0"
6
+ "filedist": "^0.31.0",
7
+ "xdrs-core": "^0.26.0"
8
8
  },
9
9
  "bin": "bin/filedist.js",
10
10
  "files": [
@@ -24,7 +24,7 @@
24
24
  "filedist": {
25
25
  "sets": [
26
26
  {
27
- "package": "xdrs-core",
27
+ "package": "xdrs-core@latest",
28
28
  "selector": {
29
29
  "files": [
30
30
  ".xdrs/_core/**",