xdrs-core 0.24.1 → 0.26.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 (34) hide show
  1. package/.xdrs/_core/adrs/index.md +19 -19
  2. package/.xdrs/_core/adrs/principles/001-xdrs-core.md +37 -37
  3. package/.xdrs/_core/adrs/principles/002-policy-standards.md +153 -0
  4. package/.xdrs/_core/adrs/principles/003-skill-standards.md +23 -22
  5. package/.xdrs/_core/adrs/principles/004-article-standards.md +23 -23
  6. package/.xdrs/_core/adrs/principles/{005-semantic-versioning-for-xdr-packages.md → 005-semantic-versioning-for-xdrs-packages.md} +11 -11
  7. package/.xdrs/_core/adrs/principles/006-research-standards.md +24 -24
  8. package/.xdrs/_core/adrs/principles/007-plan-standards.md +14 -14
  9. package/.xdrs/_core/adrs/principles/008-xdr-standards-structured.md +19 -19
  10. package/.xdrs/_core/adrs/principles/009-presentation-standards.md +11 -11
  11. package/.xdrs/_core/adrs/principles/articles/001-xdrs-overview.md +61 -50
  12. package/.xdrs/_core/adrs/principles/skills/{001-lint/001-lint.test.int.js → 001-review/001-review.test.int.js} +4 -4
  13. package/.xdrs/_core/adrs/principles/skills/{001-lint/001-lint.test.int.report → 001-review/001-review.test.int.report} +1 -1
  14. package/.xdrs/_core/adrs/principles/skills/001-review/SKILL.md +94 -0
  15. package/.xdrs/_core/adrs/principles/skills/002-write-policy/002-write-policy.test.int.js +24 -0
  16. package/.xdrs/_core/adrs/principles/skills/{002-write-xdr/002-write-xdr.test.int.report → 002-write-policy/002-write-policy.test.int.report} +2 -2
  17. package/.xdrs/_core/adrs/principles/skills/{002-write-xdr → 002-write-policy}/SKILL.md +40 -40
  18. package/.xdrs/_core/adrs/principles/skills/003-write-skill/SKILL.md +18 -18
  19. package/.xdrs/_core/adrs/principles/skills/004-write-article/SKILL.md +32 -32
  20. package/.xdrs/_core/adrs/principles/skills/005-write-research/SKILL.md +25 -25
  21. package/.xdrs/_core/adrs/principles/skills/006-write-plan/SKILL.md +17 -17
  22. package/.xdrs/_core/adrs/principles/skills/007-write-presentation/SKILL.md +14 -14
  23. package/.xdrs/_core/index.md +21 -26
  24. package/.xdrs/index.md +4 -4
  25. package/AGENTS.md +12 -12
  26. package/README.md +53 -40
  27. package/lib/lint.js +53 -48
  28. package/lib/lint.test.js +96 -96
  29. package/package.json +3 -3
  30. package/.xdrs/_core/adrs/principles/002-xdr-standards.md +0 -158
  31. package/.xdrs/_core/adrs/principles/skills/001-lint/SKILL.md +0 -94
  32. package/.xdrs/_core/adrs/principles/skills/002-write-xdr/002-write-xdr.test.int.js +0 -24
  33. package/.xdrs/_core/bdrs/index.md +0 -9
  34. package/.xdrs/_core/bdrs/principles/001-xdr-decisions-and-skills-usage.md +0 -52
@@ -1,35 +1,35 @@
1
1
  # _core ADRs Index
2
2
 
3
- Decisions about how the XDR framework itself works: structure, standards, document types, versioning, and supporting artifacts. Owned by the platform team. Propose changes via pull request.
3
+ Decisions about how the XDRS framework itself works: structure, standards, document types, versioning, and supporting artifacts. Owned by the platform team. Propose changes via pull request.
4
4
 
5
5
  ## Principles
6
6
 
7
7
  Foundational standards, principles, and guidelines.
8
8
 
9
- - [_core-adr-001](principles/001-xdrs-core.md) - **XDRs core** — Types, scopes, subjects, folder structure, and indexes for the XDR framework
10
- - [_core-adr-002](principles/002-xdr-standards.md) - **XDR standards** — How to write individual XDR decision documents: template, metadata, ID, lifecycle rules
11
- - [_core-adr-003](principles/003-skill-standards.md) - **Skill standards** — How to author and organize reusable skill packages within XDR projects
12
- - [_core-adr-004](principles/004-article-standards.md) - **Article standards** — How to write synthetic views combining XDRs, research, and skills
13
- - [_core-adr-005](principles/005-semantic-versioning-for-xdr-packages.md) - **Semantic versioning for XDR packages** — How to version XDR packages to communicate upgrade impact
14
- - [_core-adr-006](principles/006-research-standards.md) - **Research standards** — How to structure research documents backing XDR decisions
15
- - [_core-adr-007](principles/007-plan-standards.md) - **Plan standards** — How to structure ephemeral execution plans that implement decisions
16
- - [_core-adr-008](principles/008-xdr-standards-structured.md) - **XDR standards - structured** — How to expose individually referenceable numbered rules inside an XDR when external citation by identifier is required
17
- - [_core-adr-009](principles/009-presentation-standards.md) - **Presentation standards** — How to structure Marp slide presentations that support XDR documents
9
+ - [_core-adr-policy-001](principles/001-xdrs-core.md) - **XDRS core** — Types, scopes, subjects, folder structure, and indexes for the XDRS framework
10
+ - [_core-adr-policy-002](principles/002-policy-standards.md) - **Policy standards** — How to write individual Policy documents: template, metadata, ID, lifecycle rules
11
+ - [_core-adr-policy-003](principles/003-skill-standards.md) - **Skill standards** — How to author and organize reusable skill packages within XDRS projects
12
+ - [_core-adr-policy-004](principles/004-article-standards.md) - **Article standards** — How to write synthetic views combining Policies, research, and skills
13
+ - [_core-adr-policy-005](principles/005-semantic-versioning-for-xdrs-packages.md) - **Semantic versioning for XDRS packages** — How to version XDRS packages to communicate upgrade impact
14
+ - [_core-adr-policy-006](principles/006-research-standards.md) - **Research standards** — How to structure research documents backing Policy decisions
15
+ - [_core-adr-policy-007](principles/007-plan-standards.md) - **Plan standards** — How to structure ephemeral execution plans that implement decisions
16
+ - [_core-adr-policy-008](principles/008-xdr-standards-structured.md) - **Policy standards - structured** — How to expose individually referenceable numbered rules inside a Policy when external citation by identifier is required
17
+ - [_core-adr-policy-009](principles/009-presentation-standards.md) - **Presentation standards** — How to structure Marp slide presentations that support XDRS documents
18
18
 
19
19
  ## Skills
20
20
 
21
21
  Step-by-step procedural guides for humans and AI agents.
22
22
 
23
- - [001-lint](principles/skills/001-lint/SKILL.md) - **Lint** — review code and files against XDRs
24
- - [002-write-xdr](principles/skills/002-write-xdr/SKILL.md) - **Write XDR** — create a new Decision Record
25
- - [003-write-skill](principles/skills/003-write-skill/SKILL.md) - **Write Skill** — create a new skill package
26
- - [004-write-article](principles/skills/004-write-article/SKILL.md) - **Write Article** — create a new article document
27
- - [005-write-research](principles/skills/005-write-research/SKILL.md) - **Write Research** — create a new research document
28
- - [006-write-plan](principles/skills/006-write-plan/SKILL.md) - **Write Plan** — create a new plan document
29
- - [007-write-presentation](principles/skills/007-write-presentation/SKILL.md) - **Write Presentation** — create Marp slide presentations for XDR documents
23
+ - [_core-adr-skill-001-review](principles/skills/001-review/SKILL.md) - **Review** — review code and files against Policies
24
+ - [_core-adr-skill-002-write-policy](principles/skills/002-write-policy/SKILL.md) - **Write Policy** — create a new Policy document
25
+ - [_core-adr-skill-003-write-skill](principles/skills/003-write-skill/SKILL.md) - **Write Skill** — create a new skill package
26
+ - [_core-adr-skill-004-write-article](principles/skills/004-write-article/SKILL.md) - **Write Article** — create a new article document
27
+ - [_core-adr-skill-005-write-research](principles/skills/005-write-research/SKILL.md) - **Write Research** — create a new research document
28
+ - [_core-adr-skill-006-write-plan](principles/skills/006-write-plan/SKILL.md) - **Write Plan** — create a new plan document
29
+ - [_core-adr-skill-007-write-presentation](principles/skills/007-write-presentation/SKILL.md) - **Write Presentation** — create Marp slide presentations for XDRS documents
30
30
 
31
31
  ## Articles
32
32
 
33
- Synthetic views combining XDRs, Research, and Skills around a specific topic.
33
+ Synthetic views combining Policies, Research, and Skills around a specific topic.
34
34
 
35
- - [_core-article-001](principles/articles/001-xdrs-overview.md) - **XDRs Overview** (objective, structure, getting started, guidelines, extension, usage)
35
+ - [_core-adr-article-001](principles/articles/001-xdrs-overview.md) - **XDRS Overview** (objective, structure, getting started, guidelines, extension, usage)
@@ -1,15 +1,15 @@
1
1
  ---
2
- name: _core-adr-001-xdrs-core
3
- description: Defines the core XDR framework including types (ADR, BDR, EDR), folder structure, scopes, subjects, and index requirements. Use when structuring or navigating decision records.
2
+ name: _core-adr-policy-001-xdrs-core
3
+ description: Defines the core XDRS framework including types (ADR, BDR, EDR), folder structure, scopes, subjects, and index requirements. Use when structuring or navigating policies.
4
4
  ---
5
5
 
6
- # _core-adr-001: XDRs core
6
+ # _core-adr-policy-001: XDRs core
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
10
10
  We need a consistent way to capture decisions that scales across scopes and subjects, remains easy to navigate, and works well with AI agents.
11
11
 
12
- How should XDRs be structured and organized across types, teams, and scopes?
12
+ How should XDRS be structured and organized across types, teams, and scopes?
13
13
 
14
14
  ## Decision Outcome
15
15
 
@@ -19,24 +19,24 @@ Provides clear ownership by scope, predictable navigation, and reusable decision
19
19
 
20
20
  ### Details
21
21
 
22
- Decision Records can be of different kinds, depending on the nature of the decision:
22
+ A standard Decision Record normally combines several concerns in the same document: a reason (why, options considered), a policy (rules, what is the decision), a plan (consequences, when it will be implemented), a how-to (step-by-step how-to procedure), and a view on a topic. The XDRS framework separates these concerns into different document types: Policies as the source of truth for the core of the decision, Research for reasoning and evidence, Plans for implementation approach, Skills for execution procedures, and Articles for topic overviews. Supporting artifacts may explain, justify, or operationalize the policy, but they do not replace it. The compilation process of a raw Decision Record is to distribute it into those different documents and create links between them. You can also use the framework standalone, generating these elements individually directly during the writing process.
23
+
24
+ Policies can be of different kinds, depending on the nature of the decision:
23
25
  - BDR (Business Decision Record): Captures business process, product features, procedures and strategic decisions. Examples: business rules, product policies, customer service, business workflow, control frameworks for regulators for finance, product procedures and manuals, KYC requirements, business requirements in general
24
26
  - ADR (Architectural Decision Record): Wider architectural and technical decisions. Examples: how big topics relate to each other, system contexts, overview without realy deciding on details, integration patterns, overarching topics, corporate wide practices, corporate systems, external and internal partners etc
25
27
  - EDR (Engineering Decision Record): captures engineering details about how to implement things. Examples: specific tools and libraries selection, framework usage, best practices on coding, testing, quality, project structure, pipelines etc
26
28
 
27
- Collectively, these are referred to as XDRs.
28
-
29
29
  #### General framework standards
30
30
 
31
- - The main document type in the collection of XDRs is the XDR document, which contains a decision. Other documents are normally related to this decision and shouldn't go against its contents.
31
+ - The main document type in the collection of XDRS is the Policy document, which contains the core of a decision, contraints, rules and what should be followed. Other documents are normally related to this policy and should never go against its contents.
32
32
  - All documents in the framework should be removed when they are no longer necessary. The latest version of the collection always represents the active set of documents. Historical versions are available via versioned packages or git history. There is no status field on documents; if a document is present, it is considered active and valid. This keeps the document base clean and avoids confusion about which documents are current. REJECT any indication in the Decisions that contradicts this rule to avoid confusion and complexity.
33
33
  - Make it clear if an instruction is mandatory or advisory.
34
34
  - Mandatory language: "must", "always", "never", "required", "mandatory"
35
35
  - Advisory language: "should", "recommended", "advised", "preferably", "possibly", "optionally"
36
- - The XDR root folder is the folder that contains the root `index.md`. The default root folder name is `.xdrs/`. Any folder name is valid as long as it contains an `index.md`. When `.xdrs/` is used, tools and agents discover it automatically by looking for `.xdrs/index.md` relative to the workspace root. When a different folder name is used, it must be passed explicitly to tools (e.g., `xdrs-core lint my-decisions/`).
37
- - ALWAYS use the following folder structure for XDR documents:
36
+ - The XDRS root folder is the folder that contains the root `index.md`. The default root folder name is `.xdrs/`. Any folder name is valid as long as it contains an `index.md`. When `.xdrs/` is used, tools and agents discover it automatically by looking for `.xdrs/index.md` relative to the workspace root. When a different folder name is used, it must be passed explicitly to tools (e.g., `xdrs-core lint my-decisions/`).
37
+ - ALWAYS use the following folder structure for Policy documents:
38
38
  `[xdrs-root]/[scope]/[type]/[subject]/[number]-[short-title].md`
39
- where `[xdrs-root]` is the XDR root folder (default: `.xdrs/`).
39
+ where `[xdrs-root]` is the XDRS root folder (default: `.xdrs/`).
40
40
  - ALWAYS ignore symlinks paths. NEVER create or update documents inside symlinked folders.
41
41
  - **Files listed in `.filedist` are external XDRs.** A file whose path appears in the workspace root `.filedist` file was distributed from an external source repository. It must NEVER be modified locally. To change it, submit the change to the source repository and re-extract the updated package. The `.filedist` format is one entry per line: `<relative-path>|<package>|<version>`. A scope is considered external when any of its files appear in `.filedist`, and tools (such as `xdrs-core lint`) will skip external scopes by default. The `.filedist` file can also be used to detect which files changed when bumping an external scope to a newer version: compare the version field in `.filedist` entries before and after the upgrade and diff the affected paths to understand what decisions were added, updated, or removed.
42
42
  - Optional supporting artifacts under the same subject:
@@ -44,26 +44,26 @@ Collectively, these are referred to as XDRs.
44
44
  - `[xdrs-root]/[scope]/[type]/[subject]/skills/[number]-[skill-name]/SKILL.md`
45
45
  - `[xdrs-root]/[scope]/[type]/[subject]/articles/[number]-[short-title].md`
46
46
  - `[xdrs-root]/[scope]/[type]/[subject]/plans/[number]-[short-title].md`
47
- - Research, skills, and articles are part of the framework, but each has its own concept-specific standards in dedicated XDRs. This XDR defines the shared framework baseline; `_core-adr-002` defines the XDR document writing standard.
48
- - `_core-adr-002` defines XDR standards (document writing)
49
- - `_core-adr-003` defines skill standards
50
- - `_core-adr-004` defines article standards
51
- - `_core-adr-006` defines research standards
52
- - `_core-adr-007` defines plan standards
47
+ - Research, skills, and articles are part of the framework, but each has its own concept-specific standards in dedicated Policies. This Policy defines the shared framework baseline; `_core-adr-policy-002` defines the Policy document writing standard.
48
+ - `_core-adr-policy-002` defines Policy standards (document writing)
49
+ - `_core-adr-policy-003` defines skill standards
50
+ - `_core-adr-policy-004` defines article standards
51
+ - `_core-adr-policy-006` defines research standards
52
+ - `_core-adr-policy-007` defines plan standards
53
53
  - For simple structures, flows, layout, or relationship indications, documents SHOULD prefer plain Markdown, tables, Mermaid.js (sequence, state, activity, entity diagrams) or ASCII art instead of external assets.
54
54
  - Any non-Markdown supporting files referenced by a document (schemas, JSON examples, images, diagrams, binaries, or any other data files) SHOULD be used only when they are materially necessary to preserve clarity, fidelity, or evidence. When used, they MUST live in a sibling `.assets/` folder next to the document.
55
- - XDRs in the subject root use `[xdrs-root]/[scope]/[type]/[subject]/.assets/`
55
+ - Policies in the subject root use `[xdrs-root]/[scope]/[type]/[subject]/.assets/`
56
56
  - Articles use `[xdrs-root]/[scope]/[type]/[subject]/articles/.assets/`
57
57
  - Research uses `[xdrs-root]/[scope]/[type]/[subject]/researches/.assets/`
58
58
  - Skills use `[xdrs-root]/[scope]/[type]/[subject]/skills/[number]-[skill-name]/.assets/`
59
59
  - Sub-directories inside `.assets/` are allowed to keep related files organized only when that `.assets/` folder already has more than 10 files. Otherwise, keep files flat in `.assets/`.
60
60
  - **Scopes:**
61
- - Short name that defines a group or a package of xdrs
61
+ - Short name that defines a group or a package of XDRS
62
62
  - examples: `business-x`, `business-y`, `team-43`, `_core`
63
- - `_local` is a reserved scope for XDRs created locally to a specific project or repository. XDRs in `_local` MUST NOT be shared with or propagated to other contexts. This scope MUST always be placed in the lowest position in the root `index.md` so that its decisions override or extend any decisions from higher-positioned scopes. Shared root `index.md` files MUST NOT include an explicit link to `_local`, because `_local` remains workspace-local and is not distributed with shared packages. Readers, tools, and agents SHOULD still try the default workspace-local path `_local/index.md` when it exists, even without a root-index link. Documents in non-`_local` scopes MUST NEVER link to any document inside `_local`; documents inside `_local` MAY link to other documents inside `_local`.
63
+ - `_local` is a reserved scope for XDRS elements created locally to a specific project or repository. XDRS elements in `_local` MUST NOT be shared with or propagated to other contexts. This scope MUST always be placed in the lowest position in the root `index.md` so that its decisions override or extend any decisions from higher-positioned scopes. Shared root `index.md` files MUST NOT include an explicit link to `_local`, because `_local` remains workspace-local and is not distributed with shared packages. Readers, tools, and agents SHOULD still try the default workspace-local path `_local/index.md` when it exists, even without a root-index link. Documents in non-`_local` scopes MUST NEVER link to any document inside `_local`; documents inside `_local` MAY link to other documents inside `_local`.
64
64
  - **Types:** `adrs`, `bdrs`, `edrs`
65
65
  - there can exist sufixes to the standard scope names (e.g: `business-x-mobileapp`, `business-y-servicedesk`)
66
- - **Subjects:** MUST be one of the following depending on the type of the XDR. Use the subject to indicate the main concern of the decision.
66
+ - **Subjects:** MUST be one of the following depending on the type of the Policy. Use the subject to indicate the main concern of the decision.
67
67
  - **ADR subjects**
68
68
  - `principles`: Cross-cutting architecture and policy foundations.
69
69
  - Examples: architecture style, interoperability rules, long-term technology direction.
@@ -112,22 +112,22 @@ Collectively, these are referred to as XDRs.
112
112
  - Never use emojis
113
113
  - **Links:** Use relative paths for all links; never use absolute paths starting with `/`.
114
114
  - **Indexes**
115
- - Every document in the collection (XDRs, skills, articles, research, and plans) must be reachable through the index chain: root index → scope index → type index → document. A document that exists on disk but is not linked from its canonical type index is considered an orphan and must be added to the index or removed.
116
- - Keep a canonical type index with all documents of a certain type+scope in `[xdrs-root]/[scope]/[type]/index.md`. The type index must link to every XDR, skill, article, research, and plan under that type+scope.
115
+ - Every document in the collection (Policies, skills, articles, research, and plans) must be reachable through the index chain: root index → scope index → type index → document. A document that exists on disk but is not linked from its canonical type index is considered an orphan and must be added to the index or removed.
116
+ - Keep a canonical type index with all documents of a certain type+scope in `[xdrs-root]/[scope]/[type]/index.md`. The type index must link to every Policy, skill, article, research, and plan under that type+scope.
117
117
  - Canonical index requirements:
118
- - Organize XDR documents by subject for easier navigation
118
+ - Organize XDRS documents by subject for easier navigation
119
119
  - Add a short description of what this scope is about (responsibilities, general worries, teams involved, link to discussion process, etc)
120
- - Add a list of other scope indexes that this scope might be related to (only add scopes that might be overridden). E.g: "business-x-mobileapp" scope could refer to "business-x" and "sensitive-data" scopes in its index list. XDRs in scopes listed last override XDRs in scopes listed first when addressing the same topic.
121
- - Each XDR element entry in the index MUST include a short description of its content, preferably with an imperative statement or the question it answers, when possible (<15 words). Example: "Use this while planning a new feature", "What communication tone we use with our customers?", "PNPM vs Yarn comparison study"
122
- - Outside the scopes, keep a root index in `[xdrs-root]/index.md` that links to each scope index (`[xdrs-root]/[scope]/index.md`). Add the text "XDRs in scopes listed last override the ones listed first". The root index must not link directly to type indexes; readers navigate from the scope index to the type indexes. Use the link text pattern `View scope [scope_name]` for each scope link (e.g. `[View scope myteam] linking to (myteam/index.md)`).
120
+ - Add a list of other scope indexes that this scope might be related to (only add scopes that might be overridden). E.g: "business-x-mobileapp" scope could refer to "business-x" and "sensitive-data" scopes in its index list. XDRS in scopes listed last override XDRS in scopes listed first when addressing the same topic.
121
+ - Each XDRS element entry in the index MUST include a short description of its content, preferably with an imperative statement or the question it answers, when possible (<15 words). Example: "Use this while planning a new feature", "What communication tone we use with our customers?", "PNPM vs Yarn comparison study"
122
+ - Outside the scopes, keep a root index in `[xdrs-root]/index.md` that links to each scope index (`[xdrs-root]/[scope]/index.md`). Add the text "XDRS scopes listed last override the ones listed first". The root index must not link directly to type indexes; readers navigate from the scope index to the type indexes. Use the link text pattern `View scope [scope_name]` for each scope link (e.g. `[View scope myteam] linking to (myteam/index.md)`).
123
123
  - Always verify if indexes are up to date after making changes
124
124
  - **Scope index**
125
125
  - Each scope folder must maintain an `index.md` file at `[xdrs-root]/[scope]/index.md`.
126
- - The scope index is a short article (under 1000 words) that provides an overview of all XDR contents within that scope. Follow article standards (`_core-adr-004`) when writing this file.
126
+ - The scope index is a short article (under 1000 words) that provides an overview of all XDRS contents within that scope. Follow article standards (`_core-adr-policy-004`) when writing this file.
127
127
  - The audience for the scope index are engineers, architects, or business analysts who want to check if the scope's contents are useful for them before diving into the specific documents. Write a guided summary that helps them decide whether to explore further.
128
128
  - Focus on the most relevant content of the scope: what decisions are covered, what problems they address, and how the scope relates to other scopes.
129
129
  - At the end of the scope index, always add links to the canonical type indexes (`adrs/index.md`, `bdrs/index.md`, `edrs/index.md`) that exist within the scope.
130
- - Whenever the contents of a scope change (new XDRs, skills, articles, research, or plans are added, updated, or removed), evaluate whether the scope index should be updated to reflect the newer contents.
130
+ - Whenever the contents of a scope change (new Policies, skills, articles, research, or plans are added, updated, or removed), evaluate whether the scope index should be updated to reflect the newer contents.
131
131
 
132
132
  **Folder structure examples** (using the default `.xdrs/` root):
133
133
  - `.xdrs/business-x/edrs/devops/003-required-development-workflow.md`
@@ -136,7 +136,7 @@ Collectively, these are referred to as XDRs.
136
136
 
137
137
  ```text
138
138
  subject/
139
- |-- 001-xdr.md
139
+ |-- 001-policy.md
140
140
  |-- .assets/
141
141
  |-- articles/
142
142
  | |-- 001-article.md
@@ -155,10 +155,10 @@ subject/
155
155
 
156
156
  ## References
157
157
 
158
- - [_core-adr-002 - XDR standards](002-xdr-standards.md) - Standards for writing individual XDR decision documents
159
- - [001-lint skill](skills/001-lint/SKILL.md) - Skill for reviewing code changes against XDRs
160
- - [002-write-xdr skill](skills/002-write-xdr/SKILL.md) - Skill for creating a new XDR following this standard
161
- - [_core-adr-003 - Skill standards](003-skill-standards.md)
162
- - [_core-adr-004 - Article standards](004-article-standards.md)
163
- - [_core-adr-006 - Research standards](006-research-standards.md)
164
- - [_core-adr-007 - Plan standards](007-plan-standards.md)
158
+ - [_core-adr-policy-002 - Policy standards](002-policy-standards.md) - Standards for writing individual Policy documents
159
+ - [001-review skill](skills/001-review/SKILL.md) - Skill for reviewing code changes against Policies
160
+ - [002-write-policy skill](skills/002-write-policy/SKILL.md) - Skill for creating a new Policy following this standard
161
+ - [_core-adr-policy-003 - Skill standards](003-skill-standards.md)
162
+ - [_core-adr-policy-004 - Article standards](004-article-standards.md)
163
+ - [_core-adr-policy-006 - Research standards](006-research-standards.md)
164
+ - [_core-adr-policy-007 - Plan standards](007-plan-standards.md)
@@ -0,0 +1,153 @@
1
+ ---
2
+ name: _core-adr-policy-002-policy-standards
3
+ description: Defines how Policy documents (the core Policy document type) should be written, including template, frontmatter, applicability fields, and conflict handling. Use when writing or reviewing any Policy, rules, contraints or a specific decision document.
4
+ ---
5
+
6
+ # _core-adr-policy-002: Policy standards
7
+
8
+ ## Context and Problem Statement
9
+
10
+ Policy framework elements (types, scopes, subjects, folder structure) are defined in `_core-adr-policy-001`. Once a policy's structural placement is clear, how should the document itself be written to remain authoritative, concise, and consistently structured?
11
+
12
+ ## Decision Outcome
13
+
14
+ **Structured policies with a mandatory template, applicability metadata, and clear conflict rules**
15
+
16
+ Policy documents are the authoritative source of truth for their scope, type, and subject. They must be concise, template-compliant, and clear about applicability so that humans and AI agents can reliably determine whether and how to apply any decision.
17
+
18
+ ### Details
19
+
20
+ - Policies MUST contain a clear decision about a certain problem or situation. Avoid being too verbose and focus on explaining clearly the context and the decision. Avoid adding contents that are not original. If you have other references that are important to understand the document, add links and references. Always cite sources.
21
+ - Policies are the central artifact of the framework and the authoritative source of truth for their scope, type, and subject.
22
+ - Policy documents MUST include a YAML frontmatter block at the very beginning of the file. The supported fields are:
23
+
24
+ | Field | Required | Constraints |
25
+ |---|---|---|
26
+ | `name` | Yes | 1-64 characters. Lowercase letters, numbers, hyphens, and leading underscores only. Must not end with a hyphen. Must not contain consecutive hyphens. Must match the document identifier from the heading: `[scope]-[type]-policy-[number]-[short-title]`. |
27
+ | `description` | Yes | 1-1024 characters. Describes what this decision is about and when to use it. Should include keywords that help agents identify when to apply it. |
28
+ | `apply-to` | No | Short description of contexts this decision is applicable to. Keep it under 40 words. If omitted, the decision applies to all logically applicable elements. ONLY use this section if the usage is very specific to a specific case. Examples: `Only frontend code`, `JavaScript projects`. |
29
+ | `valid-from` | No | ISO date (`YYYY-MM-DD`) indicating from when this decision must be enforced. Before this date it should be used everywhere possible, but compliance is not enforced during reviews until after this date. |
30
+ | `license` | No | SPDX license expression (e.g. `MIT`, `Apache-2.0`, `CC-BY-4.0`). Indicates the license under which the document content is shared. If omitted, the license is governed by the repository or package defaults. |
31
+ | `metadata` | No | Arbitrary key-value map for additional properties not defined by this spec. |
32
+
33
+ - Minimal example:
34
+ ```yaml
35
+ ---
36
+ name: _core-adr-policy-002-policy-standards
37
+ description: Defines how Policy documents should be written. Use when writing or reviewing any Policy.
38
+ ---
39
+ ```
40
+ - Example with optional fields:
41
+ ```yaml
42
+ ---
43
+ name: _core-adr-policy-002-policy-standards
44
+ description: Defines how Policy documents should be written. Use when writing or reviewing any Policy.
45
+ apply-to: All Policy scopes
46
+ valid-from: 2026-06-01
47
+ metadata:
48
+ author: example-org
49
+ ---
50
+ ```
51
+ - All documents present in the collection are considered active. There is no status field. When a decision is no longer relevant, valid or active, it must be removed from the collection. Historical versions are available via versioned packages or git history.
52
+ - Before using, enforcing, or citing a Policy as a current rule, humans and AI agents MUST decide whether the decision is applicable for the current case.
53
+ - Check `valid-from:` first. If a date is present and has not yet been reached, the decision SHOULD be adopted for new implementations but is not enforced during reviews.
54
+ - Check `apply-to:` next to determine whether the decision fits the current codebase, system, workflow, or audience.
55
+ - Check the decision context and implementation details last to determine any additional boundaries, exceptions, or qualifiers that metadata alone cannot express.
56
+ - Research documents MAY be added under the same subject to capture the exploration, findings, and proposals that backed a decision. Research is useful during elaboration, discussion, and updates of Policies, but the Policy document remains the source of truth.
57
+ - **Policy Id:** [scope]-[type]-policy-[number] (numbers are scoped per type+scope combination and must not be reused within that combination; always use lowercase)
58
+ - Types in IDs: `adr-policy`, `bdr-policy`, `edr-policy`
59
+ - Define the next number of a Policy by checking what is the highest number present in the type+scope. Don't fill numbering gaps, as they might be old deleted Policies and we should never reuse numbers of different documents/decisions. Numbering gaps are expected.
60
+ - Policies MUST be concise and reference other Policies to avoid duplication.
61
+ - The `### Details` section SHOULD state relevant boundaries or exceptions and what a reader should do or avoid in common cases. Use the frontmatter fields `apply-to` and `valid-from` as the first-pass filter for applicability, then keep nuanced boundaries in the decision text.
62
+ - Use concise rules, examples, `Allowed` / `Disallowed` lists or checklists with required items to help the reader apply the decision correctly. Keep them short and decision-specific.
63
+ - When the decision defines strong policies or rules that should be stated explicitly as stable rule blocks, or when other documents, skills, or agents need to cite those rules individually by identifier, the Policy MUST follow the extension [_core-adr-policy-008 - Policy standards - structured](008-xdr-standards-structured.md) instead of using plain bullet lists for those rules.
64
+ - Conflict handling applies to Policy documents:
65
+ - For cross-scope overrides, document the decision conflict in the Policy `## Conflicts` section of the Policy that overrides another scope.
66
+ - **Within-scope conflicts:** Policies within the same type+scope must not conflict. If two Policies appear to conflict, one should be updated, removed, or the conflict resolved through a new Policy.
67
+ - When research exists for a decision, the Policy SHOULD mention the related research documents after the `## Considered Options` list.
68
+ - Never use emojis in contents.
69
+ - Always use file names with lowercase.
70
+ - Any non-Markdown files referenced by a Policy (schemas, JSON examples, images, diagrams, binaries, or any other data files) SHOULD be used only when they are materially necessary and MUST live in `[xdrs-root]/[scope]/[type]/[subject]/.assets/`.
71
+ - Sub-directories inside this `.assets/` folder are allowed only when it already has more than 10 files. Otherwise, keep files flat.
72
+ - Avoid using lengthy instructions on the Policy. If there are long and detailed instructions related to the Policy, or instructions that are outside the decision, create another file with a guide. If the guide is small, keep it in the Policy itself.
73
+ - Policies should be under 1300 words long as a rule of thumb.
74
+ - This is important to make them focused on a clear decision
75
+ - Exceptions can reach under 2600 words (templates, more elaborate decision implementations etc)
76
+ - ALWAYS use `_local` scope if the user doesn't explicitly indicate a specific scope while creating a policy or skill.
77
+
78
+ **Policy template**
79
+
80
+ All Policies MUST follow this template
81
+
82
+ ```markdown
83
+ ---
84
+ name: [scope]-[type]-policy-[number]-[short-title]
85
+ description: [What this decision is about and when to use it]
86
+ apply-to: [Optional. Contexts this decision applies to, under 40 words]
87
+ valid-from: [Optional. ISO date YYYY-MM-DD from when enforcement begins]
88
+ license: [Optional. SPDX license expression]
89
+ metadata:
90
+ [optional-key]: [optional-value]
91
+ ---
92
+
93
+ # [scope]-[type]-policy-[number]: [Short Title]
94
+
95
+ ## Context and Problem Statement
96
+
97
+ [Describe the context, background, or need that led to this decision.
98
+ What is the problem we are trying to solve? Who is being impacted? (<40 words)
99
+
100
+ Question: In the end, state explicitly the question that needs to be answered. E.g: "Which platform should I use when implementing an AI agent?"]
101
+
102
+ ## Decision Outcome
103
+
104
+ **[Chosen Option Title]**
105
+ [Very short description of what is the decision, aligned with the titles on the Considered Options section]
106
+
107
+ [Short description of implementation details for the chosen path]
108
+
109
+ ### Details
110
+
111
+ [Optional section with implementation specifics, applicability boundaries, rules, concise examples, or do/don't guidance. This is the answer to the question in the "Context and Problem Statement". (<1300 words)]
112
+
113
+ ## Considered Options
114
+ [this section is present ONLY if the user explicitely indicated that there were multiple options to choose from while making this decision and have a backing research document]
115
+
116
+ [Related research, if any]
117
+ - [Research document title](researches/001-example.md) - Brief description of what it informed
118
+
119
+ ## Conflicts
120
+
121
+ [If this Policy has conflicts with other scopes, this section is MANDATORY and needs to have an explanation why the conflict is accepted]
122
+
123
+ * Conflict with [Policy id] (e.g.: business-x-adr-policy-001)
124
+ * Summary: Brief description of the conflict
125
+ * Reason to accept: Brief description of why it was decided to accept this conflict, possibly overriding or diverging from the other decision/scopes
126
+
127
+ ## References
128
+
129
+ [optional section]
130
+ [useful links related to this implementation]
131
+ [links to the discussion (PRs, meetings etc)]
132
+ [links to related skills]
133
+ ```
134
+
135
+ **Examples:**
136
+ - Frontmatter examples:
137
+ - `valid-from: 2026-03-01`
138
+ - `apply-to: JavaScript projects`
139
+
140
+ **Policy ID Examples:**
141
+ - `business-x-adr-policy-001` (not `ADR-business-x-001` or `business-x-adr-1`)
142
+ - `business-x-edr-policy-042` (not `EDR-BUSINESS-X-042`)
143
+ - `business-x-bdr-policy-007`
144
+
145
+ ## References
146
+
147
+ - [_core-adr-policy-001 - Policies core](001-xdrs-core.md) - Framework elements: types, scopes, subjects, folder structure
148
+ - [001-review skill](skills/001-review/SKILL.md) - Skill for reviewing code changes against Policies
149
+ - [002-write-policy skill](skills/002-write-policy/SKILL.md) - Skill for creating a new Policy following this standard
150
+ - [_core-adr-policy-003 - Skill standards](003-skill-standards.md)
151
+ - [_core-adr-policy-004 - Article standards](004-article-standards.md)
152
+ - [_core-adr-policy-006 - Research standards](006-research-standards.md)
153
+ - [_core-adr-policy-008 - Policy standards - structured](008-xdr-standards-structured.md) - Extension for Policies that expose individually referenceable rules
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: _core-adr-003-skill-standards
3
- description: Defines skill package standards including structure, SKILL.md format, and co-location with XDRs. Use when creating or reviewing skills.
2
+ name: _core-adr-policy-003-skill-standards
3
+ description: Defines skill package standards including structure, SKILL.md format, and co-location with XDRS packages. Use when creating or reviewing skills.
4
4
  ---
5
5
 
6
- # _core-adr-003: Skill standards
6
+ # _core-adr-policy-003: Skill standards
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
@@ -15,9 +15,9 @@ How should skills be authored, structured, and organized within a project so tha
15
15
 
16
16
  ## Decision Outcome
17
17
 
18
- **agentskills-compatible skill packages, co-located with XDRs**
18
+ **agentskills-compatible skill packages, co-located with XDRS**
19
19
 
20
- Skills follow the [agentskills](https://agentskills.io/specification) open format and live inside the XDR subject folder under a `skills/` sub-directory. Each skill occupies its own numbered package folder, mirroring the XDR numbering convention.
20
+ Skills follow the [agentskills](https://agentskills.io/specification) open format and live inside the XDRS subject folder under a `skills/` sub-directory. Each skill occupies its own numbered package folder, mirroring the XDRS numbering convention.
21
21
 
22
22
  A skill may target a human operator, an AI agent, or both. Instructions must be written imperatively and at a level of detail that either a person or an agent can follow without additional context. This design allows a skill to start as a human-only procedure and evolve — incrementally — toward partial or full AI automation without restructuring the document.
23
23
 
@@ -31,20 +31,20 @@ Skills exist on a spectrum from fully manual (human-only) to fully automated (ag
31
31
 
32
32
  Write instructions so that each step is unambiguous and self-contained. Avoid implicit knowledge that only a human or only an AI would have.
33
33
 
34
- **Relation with XDRs, Research, and Articles**
35
- Skills are procedures, XDRs are guardrails and decisions, Research documents capture the explored option space and findings behind a decision, and Articles are synthetic views that combine information from multiple artifacts.
36
- Always create links back and forth between skills <-> XDRs when the relationship is direct, and link to related Research or Articles when they provide important context.
34
+ **Relation with Policies, Research, and Articles**
35
+ Skills are procedures, Policies are guardrails and decisions, Research documents capture the explored option space and findings behind a decision, and Articles are synthetic views that combine information from multiple artifacts.
36
+ Always create links back and forth between skills <-> Policies when the relationship is direct, and link to related Research or Articles when they provide important context.
37
37
  - Skills are task-based artifacts. They should have a clear starting trigger, an expected end result, and enough detail for a human or agent to verify that the task finished correctly.
38
- - A skill is not policy by itself. If following a skill is mandatory, that obligation must come from an XDR or another explicit policy that references the skill.
39
- - When a skill reads, operationalizes, or enforces XDRs, it MUST evaluate the XDR metadata first. `valid-from:` determines the convergence date for adoption, `apply-to:` determines whether the decision fits the current task context, and the decision text itself determines any remaining boundaries. All documents present in the collection are considered active. Skills must not treat out-of-window or out-of-scope XDRs as current requirements.
40
- - Skills and XDRs have a many-to-many relationship: one skill may operationalize multiple XDRs, and one XDR may be executed through multiple skills in different contexts.
38
+ - A skill is not policy by itself. If following a skill is mandatory, that obligation must come from a Policy or another explicit policy that references the skill.
39
+ - When a skill reads, operationalizes, or enforces Policies, it MUST evaluate the Policy metadata first. `valid-from:` determines the convergence date for adoption, `apply-to:` determines whether the decision fits the current task context, and the decision text itself determines any remaining boundaries. All documents present in the collection are considered active. Skills must not treat out-of-window or out-of-scope Policies as current requirements.
40
+ - Skills and Policies have a many-to-many relationship: one skill may operationalize multiple Policies, and one Policy may be executed through multiple skills in different contexts.
41
41
 
42
- Place a skill under the XDR type that matches the nature of the activity the skill performs:
42
+ Place a skill under the XDRS type that matches the nature of the activity the skill performs:
43
43
  - **EDR skills** - engineering workflows, tool usage, coding procedures, implementation how-tos (e.g. how to design a webpage, how to run a CI pipeline, how to debug a service)
44
44
  - **ADR skills** - architectural evaluation, pattern compliance checks, technology selection guidance (e.g. how to review an architecture diagram, how to assess API design)
45
45
  - **BDR skills** - business process execution, market analysis, operations procedures, business rules
46
46
 
47
- The `[subject]` component in the folder path MUST be one of the allowed subjects for the chosen type. The required list of allowed subjects per type is defined in `_core-adr-001`.
47
+ The `[subject]` component in the folder path MUST be one of the allowed subjects for the chosen type. The required list of allowed subjects per type is defined in `_core-adr-policy-001`.
48
48
 
49
49
  Quick test:
50
50
  - "Is the skill about *how to implement or operate* something?" → EDR.
@@ -81,7 +81,7 @@ Examples:
81
81
 
82
82
  ```
83
83
  ---
84
- name: 001-skill-name # required: must match the parent directory name exactly; max 64 chars
84
+ name: [scope]-[type]-skill-[number]-[skill-name] # required: full identifier including scope and type; max 64 chars
85
85
  description: > # required: what the skill does AND when to activate it; max 1024 chars
86
86
  Concise explanation of the skill and the situations in which an agent should load it.
87
87
  license: <license> # optional
@@ -110,7 +110,8 @@ Known gotchas and how to handle them.
110
110
  ```
111
111
 
112
112
  Rules:
113
- - The `name` field must match the parent directory name exactly (e.g., directory `001-code-review` uses `name: 001-code-review`). This preserves agentskills spec compliance while encoding the ordering number.
113
+ - The `name` field MUST use the format `[scope]-[type]-skill-[number]-[skill-name]` (e.g., `_core-adr-skill-001-code-review`). This aligns skill identifiers with the Policy document identifier format, making every XDRS element consistently identifiable by scope and type.
114
+ - The directory name MUST follow the format `[number]-[skill-name]` (e.g., `001-code-review`), which keeps the filesystem hierarchy simple while the `name:` field carries the full identifier.
114
115
  - `## Overview` SHOULD state the task objective, expected outcome, and relevant prerequisites or tools when they matter.
115
116
  - `## Instructions` SHOULD include verification steps or acceptance criteria at the end of the task, or at the end of major phases when partial validation matters.
116
117
  - For simple structure, flow, layout, or relationship indications, `SKILL.md` SHOULD prefer plain Markdown, tables, or ASCII art instead of external assets.
@@ -131,16 +132,16 @@ skills-ref validate .xdrs/[scope]/[type]/[subject]/skills/[number]-[skill-name]
131
132
 
132
133
  ## Considered Options
133
134
 
134
- * (REJECTED) **Top-level `skills/` directory separate from XDRs** - Decouples skills from the decisions that govern them.
135
- * Reason: Breaks the natural association between a decision (XDR) and the skill that implements it; makes navigation harder.
136
- * (CHOSEN) **agentskills-compatible packages co-located with XDRs** - Standardized format with scoped discovery and clear ownership.
137
- * Reason: Reuses proven agentskills tooling, aligns with the existing XDR scope/subject hierarchy, and keeps skills close to the decisions they implement.
135
+ * (REJECTED) **Top-level `skills/` directory separate from XDRS** - Decouples skills from the decisions that govern them.
136
+ * Reason: Breaks the natural association between a decision (Policy) and the skill that implements it; makes navigation harder.
137
+ * (CHOSEN) **agentskills-compatible packages co-located with XDRS** - Standardized format with scoped discovery and clear ownership.
138
+ * Reason: Reuses proven agentskills tooling, aligns with the existing XDRS scope/subject hierarchy, and keeps skills close to the decisions they implement.
138
139
 
139
140
  ## References
140
141
 
141
142
  - [agentskills specification](https://agentskills.io/specification)
142
143
  - [agentskills/agentskills repository](https://github.com/agentskills/agentskills)
143
144
  - [skills-ref validation library](https://github.com/agentskills/agentskills/tree/main/skills-ref)
144
- - [_core-adr-001 - XDRs core](001-xdrs-core.md)
145
- - [_core-adr-004 - Article standards](004-article-standards.md)
146
- - [_core-adr-006 - Research standards](006-research-standards.md)
145
+ - [_core-adr-policy-001 - XDRS core](001-xdrs-core.md)
146
+ - [_core-adr-policy-004 - Article standards](004-article-standards.md)
147
+ - [_core-adr-policy-006 - Research standards](006-research-standards.md)
@@ -1,38 +1,38 @@
1
1
  ---
2
- name: _core-adr-004-article-standards
3
- description: Defines article document standards for synthesizing and linking XDRs, research, and skills. Use when creating or reviewing articles.
2
+ name: _core-adr-policy-004-article-standards
3
+ description: Defines article document standards for synthesizing and linking Policies, research, and skills. Use when creating or reviewing articles.
4
4
  ---
5
5
 
6
- # _core-adr-004: Article standards
6
+ # _core-adr-policy-004: Article standards
7
7
 
8
8
  ## Context and Problem Statement
9
9
 
10
- As the number of XDRs, Research documents, and Skills grows, navigating and understanding related decisions across subjects and types becomes difficult. Without a structured format for synthetic documentation, teams create ad-hoc documents that drift from the actual decisions and supporting evidence over time.
10
+ As the number of Policies, Research documents, and Skills grows, navigating and understanding related decisions across subjects and types becomes difficult. Without a structured format for synthetic documentation, teams create ad-hoc documents that drift from the actual decisions and supporting evidence over time.
11
11
 
12
- How should articles be structured and organized to provide useful views over XDRs, Research, and Skills without replacing them as the source of truth?
12
+ How should articles be structured and organized to provide useful views over Policies, Research, and Skills without replacing them as the source of truth?
13
13
 
14
14
  ## Decision Outcome
15
15
 
16
- **Subject-level synthetic documents co-located with XDRs**
16
+ **Subject-level synthetic documents co-located with Policies**
17
17
 
18
- Articles are Markdown documents placed inside a subject folder alongside decision records. Placing articles within a subject keeps them close to the decisions, research, and skills they reference.
18
+ Articles are Markdown documents placed inside a subject folder alongside policies. Placing articles within a subject keeps them close to the decisions, research, and skills they reference.
19
19
 
20
20
  ### Details
21
21
 
22
- - Articles are views, not decisions. They summarize and synthesize content from XDRs, Research, and Skills but are NOT the source of truth. When there is a conflict between an article and a Decision Record, the Decision Record takes precedence.
23
- - Articles are not limited to synthesizing XDRs. They may also document application features, APIs, general project information, reference tables, diagrams, FAQs and other elements useful to their intended audience.
24
- - Articles must reference the XDRs, Research documents, and Skills they synthesize. Never duplicate decision content; link back to the authoritative sources.
22
+ - Articles are views, not decisions. They summarize and synthesize content from Policies, Research, and Skills but are NOT the source of truth. When there is a conflict between an article and a Policy, the Policy takes precedence.
23
+ - Articles are not limited to synthesizing Policies. They may also document application features, APIs, general project information, reference tables, diagrams, FAQs and other elements useful to their intended audience.
24
+ - Articles must reference the Policies, Research documents, and Skills they synthesize. Never duplicate decision content; link back to the authoritative sources.
25
25
  - Articles may serve as indexes, combining related artifacts on a specific topic into a single navigable document.
26
26
  - In more complex cases, an article may be an index of links to other articles, grouping related documentation into a single entry point that guides readers across a set of related topics.
27
- - When an article tells readers which decisions to follow, it SHOULD check `valid-from:` first to determine the convergence date, `apply-to:` second to determine context fit, and the decision text itself last. All documents present in the collection are considered active; articles must not present out-of-window or out-of-scope XDRs as current rules for the discussed context.
28
- - Articles must remain consistent with the XDRs, Research documents, and Skills they reference. When a referenced artifact changes, the article must be reviewed and updated.
29
- - Place an article in the subject folder that best matches its topic using the required list of subjects per type defined in `_core-adr-001`. If an article spans more than one subject, place it in `principles`.
27
+ - When an article tells readers which decisions to follow, it SHOULD check `valid-from:` first to determine the convergence date, `apply-to:` second to determine context fit, and the decision text itself last. All documents present in the collection are considered active; articles must not present out-of-window or out-of-scope Policies as current rules for the discussed context.
28
+ - Articles must remain consistent with the Policies, Research documents, and Skills they reference. When a referenced artifact changes, the article must be reviewed and updated.
29
+ - Place an article in the subject folder that best matches its topic using the required list of subjects per type defined in `_core-adr-policy-001`. If an article spans more than one subject, place it in `principles`.
30
30
  - For simple structure, flow, layout, or relationship indications, articles SHOULD prefer plain Markdown, tables, or ASCII art instead of external assets.
31
31
  - Any non-Markdown files referenced by an article (schemas, JSON examples, images, diagrams, binaries, or any other data files) SHOULD be used only when they are materially necessary and MUST live in `articles/.assets/` next to the article files.
32
32
  - Sub-directories inside this `.assets/` folder are allowed only when it already has more than 10 files. Otherwise, keep files flat.
33
33
  - Always use lowercase file names.
34
34
  - Never use emojis in article content.
35
- - Articles should be kept under 5000 words. Move or point to detailed contents referenced in XDRs decisions, researches, plans or skills.
35
+ - Articles should be kept under 5000 words. Move or point to detailed contents referenced in Policy decisions, researches, plans or skills.
36
36
 
37
37
  **Folder layout**
38
38
 
@@ -62,7 +62,7 @@ Examples:
62
62
  All articles MUST follow this template:
63
63
 
64
64
  ```markdown
65
- # [scope]-article-[number]: [Short Title]
65
+ # [scope]-[type]-article-[number]: [Short Title]
66
66
 
67
67
  ## Overview
68
68
 
@@ -70,24 +70,24 @@ All articles MUST follow this template:
70
70
 
71
71
  ## Content
72
72
 
73
- [Synthetic text combining and explaining the topic. Use links to Decision Records, Research, and Skills
73
+ [Synthetic text combining and explaining the topic. Use links to Policies, Research, and Skills
74
74
  when referencing an information from those documents.]
75
75
 
76
76
  ## References
77
77
 
78
- - [XDR id or Skill name](relative/path/to/file.md) - Brief description of relevance
78
+ - [Policy id or Skill name](relative/path/to/file.md) - Brief description of relevance
79
79
  ```
80
80
 
81
81
  ## Considered Options
82
82
 
83
83
  * (REJECTED) **Separate documentation repository** - Removes drift risk but decouples docs from decisions.
84
- * Reason: Increases maintenance burden and makes it easy for articles to go stale relative to the XDRs they reference.
85
- * (CHOSEN) **Subject-level articles folder co-located with XDRs** - Keeps articles alongside the decision records and skills they reference, with `principles` as the fallback for cross-subject articles.
86
- * Reason: Easy to discover, consistent with where skills are placed, and clearly distinct from the decision records themselves.
84
+ * Reason: Increases maintenance burden and makes it easy for articles to go stale relative to the Policies they reference.
85
+ * (CHOSEN) **Subject-level articles folder co-located with Policies** - Keeps articles alongside the policies and skills they reference, with `principles` as the fallback for cross-subject articles.
86
+ * Reason: Easy to discover, consistent with where skills are placed, and clearly distinct from the policies themselves.
87
87
 
88
88
  ## References
89
89
 
90
- - [_core-adr-001 - XDRs core](001-xdrs-core.md)
91
- - [_core-adr-003 - Skill standards](003-skill-standards.md)
92
- - [_core-adr-006 - Research standards](006-research-standards.md)
90
+ - [_core-adr-policy-001 - Policies core](001-xdrs-core.md)
91
+ - [_core-adr-policy-003 - Skill standards](003-skill-standards.md)
92
+ - [_core-adr-policy-006 - Research standards](006-research-standards.md)
93
93
  - [004-write-article skill](skills/004-write-article/SKILL.md) - Step-by-step instructions for creating a new article