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,7 +1,7 @@
1
1
  ---
2
- name: 003-write-skill
2
+ name: _core-adr-skill-003-write-skill
3
3
  description: >
4
- Creates a new skill package following XDR skill standards: determines type, scope, subject, and number;
4
+ Creates a new skill package following XDRS skill standards: determines type, scope, subject, and number;
5
5
  then writes a focused SKILL.md with correct frontmatter, phased instructions, examples, and edge cases.
6
6
  Activate this skill when the user asks to create, add, or write a new skill, agent skill, or SKILL.md file.
7
7
  metadata:
@@ -11,7 +11,7 @@ metadata:
11
11
 
12
12
  ## Overview
13
13
 
14
- Guides the creation of a well-structured skill package by following `_core-adr-003` skill standards, consulting `xdr-standards` for every core element definition, checking existing skills to avoid duplication, and producing a complete SKILL.md ready to activate in VS Code.
14
+ Guides the creation of a well-structured skill package by following `_core-adr-policy-003` skill standards, consulting `xdrs-core` for every core element definition, checking existing skills to avoid duplication, and producing a complete SKILL.md ready to activate in VS Code.
15
15
 
16
16
  ## Instructions
17
17
 
@@ -38,21 +38,21 @@ Quick test:
38
38
  **Scope** — use `_local` unless the user explicitly names another scope.
39
39
  - If the user names a scope other than `_local`, check the workspace root `.filedist` file. If any file under `.xdrs/[scope]/` appears in `.filedist`, the scope is external and new documents MUST NOT be created there. Inform the user and ask them to choose a non-external scope.
40
40
 
41
- **Subject** — pick the most specific match for the chosen type (required list per type is in `_core-adr-001`):
41
+ **Subject** — pick the most specific match for the chosen type (required list per type is in `_core-adr-policy-001`):
42
42
  - ADR subjects: `principles`, `application`, `data`, `integration`, `platform`, `controls`, `operations`
43
43
  - BDR subjects: `principles`, `marketing`, `product`, `controls`, `operations`, `organization`, `finance`, `sustainability`
44
44
  - EDR subjects: `principles`, `application`, `infra`, `observability`, `devops`, `governance`
45
45
 
46
46
  **Skill number** — scan `.xdrs/[scope]/[type]/[subject]/skills/` for the highest existing number and increment by 1. Never reuse numbers from deleted skills.
47
47
 
48
- **Skill name** — `[number]-[short-kebab-case-description]`, max 64 characters total.
48
+ **Skill name** — `[scope]-[type]-skill-[number]-[short-kebab-case-description]`, max 64 characters total. The directory name is `[number]-[short-kebab-case-description]`.
49
49
 
50
- ### Phase 3: Research Existing Skills and Related XDRs
50
+ ### Phase 3: Research Existing Skills and Related Policies
51
51
 
52
52
  1. List `.xdrs/[scope]/[type]/[subject]/skills/` for existing skills. If one already covers the goal, extend or reference it instead of creating a duplicate.
53
- 2. Read all XDRs relevant to the skill's domain to collect rules and cross-references.
54
- 3. Evaluate XDR metadata before operationalizing those rules. All documents present in the collection are considered active. `valid-from:` determines the convergence date for adoption, `apply-to:` determines whether the decision fits the intended task context, and the decision text defines any remaining boundaries. Keep out-of-window or out-of-scope XDRs as background only.
55
- 4. Decide whether the skill is merely guidance or is being referenced by an XDR as a mandatory procedure. Do not encode policy in the skill unless it comes from a referenced XDR.
53
+ 2. Read all Policies relevant to the skill's domain to collect rules and cross-references.
54
+ 3. Evaluate Policy metadata before operationalizing those rules. All documents present in the collection are considered active. `valid-from:` determines the convergence date for adoption, `apply-to:` determines whether the decision fits the intended task context, and the decision text defines any remaining boundaries. Keep out-of-window or out-of-scope Policies as background only.
55
+ 4. Decide whether the skill is merely guidance or is being referenced by a Policy as a mandatory procedure. Do not encode policy in the skill unless it comes from a referenced Policy.
56
56
 
57
57
  ### Phase 4: Write the SKILL.md
58
58
 
@@ -60,7 +60,7 @@ Use the mandatory agentskills format:
60
60
 
61
61
  ```
62
62
  ---
63
- name: [number]-[skill-name]
63
+ name: [scope]-[type]-skill-[number]-[skill-name]
64
64
  description: >
65
65
  [What the skill does AND exactly when an agent should activate it. Max 1024 chars.]
66
66
  metadata:
@@ -87,7 +87,7 @@ metadata:
87
87
 
88
88
  ## References
89
89
 
90
- [Links to related XDRs and skills.]
90
+ [Links to related Policies and skills.]
91
91
  ```
92
92
 
93
93
  Rules:
@@ -95,9 +95,9 @@ Rules:
95
95
  - The `description` field must state both *what* the skill does and *when* to activate it.
96
96
  - Keep the skill task-oriented. It should have a clear starting trigger and a concrete ending result.
97
97
  - Mention tools or prerequisites when they are required to complete the task reliably.
98
- - Do not duplicate content from referenced XDRs — link instead.
99
- - Do not present the skill itself as policy; mandatory behavior must come from referenced XDRs or other policy artifacts.
100
- - When the skill depends on XDRs, make the activation logic and instructions consistent with the XDR metadata so the skill does not operationalize inactive or out-of-scope decisions.
98
+ - Do not duplicate content from referenced Policies — link instead.
99
+ - Do not present the skill itself as policy; mandatory behavior must come from referenced Policies or other policy artifacts.
100
+ - When the skill depends on Policies, make the activation logic and instructions consistent with the Policy metadata so the skill does not operationalize inactive or out-of-scope decisions.
101
101
  - Prefer plain Markdown, tables, Mermaid.js (sequence, state, activity, entity diagrams), or ASCII art for simple structure, flow, layout, or relationship indications.
102
102
  - If `SKILL.md` genuinely needs local images or supporting files, store them in `.xdrs/[scope]/[type]/[subject]/skills/[number]-[skill-name]/.assets/` and link them using a same-folder relative path (e.g., `.assets/image.png`).
103
103
  - Use relative paths for all links; never use absolute paths starting with `/`.
@@ -123,7 +123,7 @@ If any check fails, revise before continuing.
123
123
  mkdir -p .github/skills/[number]-[skill-name]
124
124
  ln -s ../../.xdrs/[scope]/[type]/[subject]/skills/[number]-[skill-name] .github/skills/[number]-[skill-name]
125
125
  ```
126
- 3. Evaluate whether the scope index at `.xdrs/[scope]/index.md` should be updated to reflect the new skill. If the scope index does not exist, create it following article standards and the scope index rules in `_core-adr-001`.
126
+ 3. Evaluate whether the scope index at `.xdrs/[scope]/index.md` should be updated to reflect the new skill. If the scope index does not exist, create it following article standards and the scope index rules in `_core-adr-policy-001`.
127
127
 
128
128
  ### Constraints
129
129
 
@@ -158,6 +158,6 @@ If any check fails, revise before continuing.
158
158
 
159
159
  ## References
160
160
 
161
- - [_core-adr-003 - Skill standards](../../003-skill-standards.md)
162
- - [_core-adr-001 - XDRs core](../../001-xdrs-core.md)
163
- - [002-write-xdr skill](../002-write-xdr/SKILL.md)
161
+ - [_core-adr-policy-003 - Skill standards](../../003-skill-standards.md)
162
+ - [_core-adr-policy-001 - XDRs core](../../001-xdrs-core.md)
163
+ - [002-write-policy skill](../002-write-policy/SKILL.md)
@@ -1,7 +1,7 @@
1
1
  ---
2
- name: 004-write-article
2
+ name: _core-adr-skill-004-write-article
3
3
  description: >
4
- Creates a new article document following XDR article standards: selects scope, type, subject, and number; then writes a focused synthetic text that combines and links multiple XDRs, Research documents, and Skills around a topic. Activate this skill when the user asks to create, add, or write a new article, guide, or overview document within an XDR project.
4
+ Creates a new article document following XDRS article standards: selects scope, type, subject, and number; then writes a focused synthetic text that combines and links multiple Policies, Research documents, and Skills around a topic. Activate this skill when the user asks to create, add, or write a new article, guide, or overview document within an XDRS project.
5
5
  metadata:
6
6
  author: flaviostutz
7
7
  version: "1.0"
@@ -9,7 +9,7 @@ metadata:
9
9
 
10
10
  ## Overview
11
11
 
12
- Guides the creation of a well-structured article by following `_core-adr-004`, consulting `xdr-standards` for every core element definition, researching the XDRs, Research documents, and Skills to synthesize, and producing a concise document that serves as a navigable view without duplicating decision content.
12
+ Guides the creation of a well-structured article by following `_core-adr-policy-004`, consulting `policy-standards` for every core element definition, researching the Policies, Research documents, and Skills to synthesize, and producing a concise document that serves as a navigable view without duplicating decision content.
13
13
 
14
14
  ## Instructions
15
15
 
@@ -20,11 +20,11 @@ Before reading any standards, ask the user clarifying questions to gather the in
20
20
  Mandatory questions (ask only if not already provided by the user):
21
21
  - **Topic**: What is the article about? (skip if the user already stated it)
22
22
  - **Audience**: Who is the intended reader? (e.g., new developers, product managers, external contributors) MUST always be asked explicitly; never infer from context.
23
- - **Scope**: Which XDR scope should contain the article? (default is `_local`; confirm or ask only if context is ambiguous)
23
+ - **Scope**: Which XDRS scope should contain the article? (default is `_local`; confirm or ask only if context is ambiguous)
24
24
 
25
25
  Optional questions (ask only when genuinely unclear):
26
26
  - **Type**: Should the article primarily synthesize ADRs, BDRs, or EDRs? Ask only when the topic spans multiple types.
27
- - **Existing XDRs**: Are there specific Decision Records or Skills you want the article to reference or synthesize?
27
+ - **Existing XDRS elements**: Are there specific Policies or Skills you want the article to reference or synthesize?
28
28
 
29
29
  Do NOT proceed to Phase 1 until you have at minimum a clear **topic** and **audience**.
30
30
 
@@ -43,13 +43,13 @@ Consult `001-xdrs-core` while making each choice in this phase. The summaries be
43
43
  **Scope** — use `_local` unless the user explicitly names another scope.
44
44
  - If the user names a scope other than `_local`, check the workspace root `.filedist` file. If any file under `.xdrs/[scope]/` appears in `.filedist`, the scope is external and new documents MUST NOT be created there. Inform the user and ask them to choose a non-external scope.
45
45
 
46
- **Type** — match the type of the XDRs the article primarily synthesizes (`adrs`, `bdrs`, or `edrs`).
47
- If the topic spans multiple types, use `adrs`. Use the same rules as `002-write-xdr` Phase 2:
46
+ **Type** — match the type of the XDRS elements the article primarily synthesizes (`adrs`, `bdrs`, or `edrs`).
47
+ If the topic spans multiple types, use `adrs`. Use the same rules as `002-write-policy` Phase 2:
48
48
  - **BDR**: business process, product policy, strategic rule, operational procedure
49
49
  - **ADR**: system context, integration pattern, overarching architectural choice
50
50
  - **EDR**: specific tool/library, coding practice, testing strategy, project structure, pipelines
51
51
 
52
- **Subject** — pick the subject that best matches the article's topic (required list per type is in `_core-adr-001`).
52
+ **Subject** — pick the subject that best matches the article's topic (required list per type is in `_core-adr-policy-001`).
53
53
  If the article spans more than one subject, place it in `principles`.
54
54
 
55
55
  ### Phase 3: Assign a Number and Name
@@ -60,19 +60,19 @@ If the article spans more than one subject, place it in `principles`.
60
60
  - Good: `onboarding-guide`, `checkout-flow-overview`, `api-design-principles`
61
61
  - Avoid: `summary`, `notes`, `misc`
62
62
 
63
- ### Phase 4: Research XDRs and Skills to Synthesize
63
+ ### Phase 4: Research Policies and Skills to Synthesize
64
64
 
65
- 1. Read all XDRs, Research documents, and Skills relevant to the article topic across all scopes listed in the XDR root `index.md`.
66
- 2. Evaluate XDR metadata before synthesizing guidance. All documents present in the collection are considered active. Use `valid-from:` to determine the convergence date for adoption, `apply-to:` to determine whether the decision fits the audience or context being discussed, and the decision text itself for any remaining applicability boundaries.
65
+ 1. Read all Policies, Research documents, and Skills relevant to the article topic across all scopes listed in the Policy root `index.md`.
66
+ 2. Evaluate Policy metadata before synthesizing guidance. All documents present in the collection are considered active. Use `valid-from:` to determine the convergence date for adoption, `apply-to:` to determine whether the decision fits the audience or context being discussed, and the decision text itself for any remaining applicability boundaries.
67
67
  3. Identify the key points a reader needs to understand the topic end-to-end.
68
- 4. Collect XDR IDs and file paths for cross-references. Never copy decision text verbatim; link to it.
68
+ 4. Collect Policy IDs and file paths for cross-references. Never copy decision text verbatim; link to it.
69
69
 
70
70
  ### Phase 5: Write the Article
71
71
 
72
72
  Use the mandatory template from `004-article-standards`:
73
73
 
74
74
  ```
75
- # [scope]-article-[number]: [Short Title]
75
+ # [scope]-[type]-article-[number]: [Short Title]
76
76
 
77
77
  ## Overview
78
78
 
@@ -80,34 +80,34 @@ Use the mandatory template from `004-article-standards`:
80
80
 
81
81
  ## Content
82
82
 
83
- [Synthetic text combining and explaining the topic. Use links to Decision Records, Research documents, and Skills
83
+ [Synthetic text combining and explaining the topic. Use links to Policies, Research documents, and Skills
84
84
  when referencing information from those documents. Keep under 1950 words total.]
85
85
 
86
86
  ## References
87
87
 
88
- - [XDR id or Skill name](relative/path/to/file.md) - Brief description of relevance
88
+ - [Policy id or Skill name](relative/path/to/file.md) - Brief description of relevance
89
89
  ```
90
90
 
91
91
  Rules to apply while drafting:
92
92
 
93
93
  - Write for the stated audience; avoid jargon unexplained elsewhere.
94
- - Every factual claim must link back to the authoritative XDR or Skill.
95
- - If the article advises readers what to do, clearly separate active/applicable XDRs from background, historical, or out-of-scope ones.
94
+ - Every factual claim must link back to the authoritative Policy or Skill.
95
+ - If the article advises readers what to do, clearly separate active/applicable Policies from background, historical, or out-of-scope ones.
96
96
  - Never reproduce decision text verbatim; summarize and link.
97
97
  - Prefer plain Markdown, tables, Mermaid.js (sequence, state, activity, entity diagrams), or ASCII art for simple structure, flow, layout, or relationship indications.
98
98
  - If the article genuinely needs local images or supporting files, store them in `.xdrs/[scope]/[type]/[subject]/articles/.assets/` and link them using a same-folder relative path (e.g., `.assets/image.png`).
99
99
  - Use relative paths for all links; never use absolute paths starting with `/`.
100
- - Keep the article under 1950 words; move detailed content to XDRs or Skills.
100
+ - Keep the article under 1950 words; move detailed content to Policies or Skills.
101
101
  - Use lowercase file names. Never use emojis.
102
- - If a conflict exists between the article and a Decision Record, note it and defer to the XDR.
102
+ - If a conflict exists between the article and a Policy, note it and defer to the Policy.
103
103
 
104
104
  ### Phase 6: Place and Register
105
105
 
106
106
  1. Save the file at `.xdrs/[scope]/[type]/[subject]/articles/[number]-[short-title].md`.
107
107
  2. Add a link to the article in the canonical index for that scope+type (`.xdrs/[scope]/[type]/index.md`).
108
- 3. Add back-references in the XDRs, Research documents, and Skills that the article synthesizes, under their `## References`
108
+ 3. Add back-references in the Policies, Research documents, and Skills that the article synthesizes, under their `## References`
109
109
  section.
110
- 4. Evaluate whether the scope index at `.xdrs/[scope]/index.md` should be updated to reflect the new article. If the scope index does not exist, create it following article standards and the scope index rules in `_core-adr-001`.
110
+ 4. Evaluate whether the scope index at `.xdrs/[scope]/index.md` should be updated to reflect the new article. If the scope index does not exist, create it following article standards and the scope index rules in `_core-adr-policy-001`.
111
111
 
112
112
  ## Examples
113
113
 
@@ -118,20 +118,20 @@ Rules to apply while drafting:
118
118
  2. Topic: how skills work. Audience: developers new to the project.
119
119
  3. Scope: `_local`, type: `adrs`, subject: `principles`.
120
120
  4. Scan `.xdrs/_local/adrs/principles/articles/` — no articles exist → number is `001`.
121
- 5. Research `_core-adr-003`, `_core-adr-006`, and the existing skill SKILL.md files.
121
+ 5. Research `_core-adr-policy-003`, `_core-adr-policy-006`, and the existing skill SKILL.md files.
122
122
  6. Write `.xdrs/_local/adrs/principles/articles/001-skills-overview.md` following the template, linking
123
- to `_core-adr-003` and the individual skill files.
123
+ to `_core-adr-policy-003` and the individual skill files.
124
124
  7. Update `.xdrs/_local/adrs/index.md` with a link to the new article.
125
- 8. Add a reference to the article in `_core-adr-003` under `## References`.
125
+ 8. Add a reference to the article in `_core-adr-policy-003` under `## References`.
126
126
 
127
127
  ## Edge Cases
128
128
 
129
- - **Article vs. XDR confusion** — if the user asks for a document that makes a decision, write an XDR
130
- (use the `002-write-xdr` skill), not an article.
129
+ - **Article vs. Policy confusion** — if the user asks for a document that makes a decision, write a Policy
130
+ (use the `002-write-policy` skill), not an article.
131
131
  - **Cross-subject topic** — place the article in `principles`, not in any single subject folder.
132
132
  - **No existing articles folder** — create it; it is optional in the folder layout.
133
- - **Conflicting information found** — note the conflict in the article and always defer to the XDR.
134
- - **Article would exceed 1950 words** — move detailed content to a new Research, Skill, or XDR and link back.
133
+ - **Conflicting information found** — note the conflict in the article and always defer to the Policy.
134
+ - **Article would exceed 1950 words** — move detailed content to a new Research, Skill, or Policy and link back.
135
135
 
136
136
  ## Constraints
137
137
 
@@ -139,10 +139,10 @@ Rules to apply while drafting:
139
139
  - MUST follow the article template and placement rules from `004-article-standards`.
140
140
  - MUST keep scope `_local` unless the user explicitly states otherwise.
141
141
  - MUST NOT create documents in external scopes (scopes whose files appear in the workspace root `.filedist`).
142
- - MUST defer to active and applicable XDRs when article synthesis conflicts with them.
142
+ - MUST defer to active and applicable Policies when article synthesis conflicts with them.
143
143
 
144
144
  ## References
145
145
 
146
- - [_core-adr-004 - Article standards](../../004-article-standards.md)
147
- - [_core-adr-006 - Research standards](../../006-research-standards.md)
148
- - [_core-adr-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)
148
+ - [_core-adr-policy-001 - XDRS core](../../001-xdrs-core.md)
@@ -1,7 +1,7 @@
1
1
  ---
2
- name: 005-write-research
2
+ name: _core-adr-skill-005-write-research
3
3
  description: >
4
- Creates a new research document following XDR research standards: selects scope, type, subject, and number;
4
+ Creates a new research document following XDRS research standards: selects scope, type, subject, and number;
5
5
  then writes an IMRAD-based study with enough evidence and method detail to stand on its own as a technical paper.
6
6
  Activate this skill when the user asks to create, add, or write a research document that backs a decision.
7
7
  metadata:
@@ -11,7 +11,7 @@ metadata:
11
11
 
12
12
  ## Overview
13
13
 
14
- Guides the creation of a well-structured research document by following `_core-adr-006`, consulting `xdr-standards` for every core element definition, checking related XDRs and existing research to avoid duplication, and producing an IMRAD-based study that reads as a standalone technical paper. Treat each section goal in the research template as an acceptance criterion, not as optional wording. Do not assume missing direction, evidence, or intended follow-up; ask the user explicitly before proceeding when those points are not already concrete.
14
+ Guides the creation of a well-structured research document by following `_core-adr-policy-006`, consulting `xdrs-core` for every core element definition, checking related Policies and existing research to avoid duplication, and producing an IMRAD-based study that reads as a standalone technical paper. Treat each section goal in the research template as an acceptance criterion, not as optional wording. Do not assume missing direction, evidence, or intended follow-up; ask the user explicitly before proceeding when those points are not already concrete.
15
15
 
16
16
  This skill is interactive by design. Ask clarifying questions to the user at each phase where direction, evidence, or scope is unclear. Ask sequentially — one focused set of questions at a time — and wait for the user's answers before advancing to the next phase. Never front-load all questions at once if not all are yet relevant.
17
17
 
@@ -23,7 +23,7 @@ This skill is interactive by design. Ask clarifying questions to the user at eac
23
23
  2. Read `.xdrs/_core/adrs/principles/001-xdrs-core.md` in full before defining the research document's core elements. Treat it as the canonical source for how to choose and write type, scope, subject, numbering expectations, naming constraints, and folder placement.
24
24
  3. Ask the user to confirm the intended direction of the research before planning the document: what decision, question, or option space the study should support, what boundaries or exclusions apply, and what kind of outcome they expect. Wait for the answers before proceeding.
25
25
  4. Ask the user what evidence already exists and what evidence-gathering methods are acceptable if the current evidence is incomplete. Do not invent facts, sources, or confidence that the user did not provide. Wait for the answers before proceeding.
26
- 5. Ask the user what the proposed next step is after the research, such as writing a new XDR, updating an existing XDR, informing a discussion, or documenting trade-offs for later. Use that answer to shape the framing without turning the research into the final decision. Wait for the answers before proceeding.
26
+ 5. Ask the user what the proposed next step is after the research, such as writing/updating an existing Policy, informing a discussion, or documenting trade-offs for later. Use that answer to shape the framing without turning the research into the final decision. Wait for the answers before proceeding.
27
27
  6. Identify the problem or question being explored, the relevant system or domain context, the likely technical audience, and why the subject matters in practice.
28
28
  7. Internalize the goal of each required section before drafting: `Abstract` gives a quick technical reader the question, method, main result, and takeaway, `Introduction` frames the investigated problem and context, `Methods` makes the important parts reproducible, `Results` records raw findings with minimal interpretation, `Discussion` interprets the findings, `Conclusion` summarizes the practical takeaway and boundaries, and `References` makes sources traceable.
29
29
  8. Collect the main constraints, known facts, important experiences, gaps, and assumptions that belong in the introduction.
@@ -38,19 +38,19 @@ Consult `001-xdrs-core` while making each choice in this phase. The summaries be
38
38
  **Scope** — use `_local` unless the user explicitly names another scope.
39
39
  - If the user names a scope other than `_local`, check the workspace root `.filedist` file. If any file under `.xdrs/[scope]/` appears in `.filedist`, the scope is external and new documents MUST NOT be created there. Inform the user and ask them to choose a non-external scope.
40
40
 
41
- **Type** — match the type of decision this research supports (`adrs`, `bdrs`, or `edrs`). Use the same rules as `002-write-xdr` Phase 2:
41
+ **Type** — match the type of decision this research supports (`adrs`, `bdrs`, or `edrs`). Use the same rules as `002-write-policy` Phase 2:
42
42
  - **BDR**: business process, product policy, strategic rule, operational procedure
43
43
  - **ADR**: system context, integration pattern, overarching architectural choice
44
44
  - **EDR**: specific tool/library, coding practice, testing strategy, project structure, pipelines
45
45
 
46
- **Subject** — pick the most specific subject that matches the problem domain (required list per type is in `_core-adr-001`).
46
+ **Subject** — pick the most specific subject that matches the problem domain (required list per type is in `_core-adr-policy-001`).
47
47
 
48
48
  **Research number** — scan `.xdrs/[scope]/[type]/[subject]/researches/` for the highest existing number and increment by 1. Never reuse numbers from deleted research documents.
49
49
 
50
50
  ### Phase 3: Research Existing Artifacts
51
51
 
52
- 1. Read relevant XDRs across all scopes listed in the XDR root `index.md`.
53
- 2. Evaluate XDR metadata before treating any decision as current context. All documents present in the collection are considered active. `valid-from:` determines the convergence date for adoption, `apply-to:` determines whether the decision fits the intended task context, and the decision text defines any remaining boundaries. Keep out-of-window or out-of-scope XDRs as background only.
52
+ 1. Read relevant Policies across all scopes listed in the Policy root `index.md`.
53
+ 2. Evaluate Policy metadata before treating any decision as current context. All documents present in the collection are considered active. `valid-from:` determines the convergence date for adoption, `apply-to:` determines whether the decision fits the intended task context, and the decision text defines any remaining boundaries. Keep out-of-window or out-of-scope Policies as background only.
54
54
  3. Read existing research documents in the same or overlapping subjects to avoid duplicating the same study.
55
55
  4. Read related skills or articles if they contain context, implementation limits, or terminology that must be reflected.
56
56
  5. Collect links that should appear in the final `## References` section.
@@ -88,7 +88,7 @@ If the results contain competing interpretations or the intended audience for th
88
88
  Use the mandatory template from `006-research-standards`:
89
89
 
90
90
  ```markdown
91
- # [scope]-research-[number]: [Short Title]
91
+ # [scope]-[type]-research-[number]: [Short Title]
92
92
 
93
93
  ## Abstract
94
94
 
@@ -123,16 +123,16 @@ Use figures, tables, or bullets when useful. If multiple options solve the same
123
123
 
124
124
  [A list of all cited literature, websites, tutorials, documentation, discussions, and related artifacts. Goal: make all cited sources and supporting artifacts traceable.]
125
125
 
126
- - [Related XDR or artifact](relative/path.md) - Why it matters
127
- - [Another related XDR if this research informed multiple decisions](relative/path.md) - Why it matters
126
+ - [Related Policy or artifact](relative/path.md) - Why it matters
127
+ - [Another related Policy if this research informed multiple decisions](relative/path.md) - Why it matters
128
128
  ```
129
129
 
130
130
  Rules:
131
131
  - Treat the goal sentence of each section as a hard check on what belongs in that section.
132
132
  - Focus on exploring and evidencing the problem space; do not turn the document into the final decision.
133
- - Write as a standalone technical paper for readers who do not know the XDR process.
133
+ - Write as a standalone technical paper for readers who do not know the XDRS process.
134
134
  - Keep mentions of future ADRs, decision lifecycle, repository process, or artifact management out of the body unless they are materially necessary to understand the research question.
135
- - Keep traceability to related XDRs, skills, articles, discussions, and external sources primarily in `## References`.
135
+ - Keep traceability to related Policies, skills, articles, discussions, and external sources primarily in `## References`.
136
136
  - Use good-enough evidence. Experienced professional judgment is allowed, but the conclusions still need support that other colleagues can inspect and learn from.
137
137
  - Ensure the methods and test conditions are reproducible enough for an experienced professional to rerun or evolve the critical parts later.
138
138
  - Prefer plain Markdown, tables, Mermaid.js (sequence, state, activity, entity diagrams), bullet points, or ASCII art for simple explanations and comparisons, especially in the introduction and results.
@@ -150,7 +150,7 @@ Before the final review, verify each section against its specific goal:
150
150
  4. **Results goal**: Are the findings concrete and minimally interpreted, with comparisons and pros/cons when multiple options exist?
151
151
  5. **Discussion goal**: Does it interpret the findings rather than repeat the results?
152
152
  6. **Conclusion goal**: Does it summarize the main findings, practical takeaway, applicability boundaries, and open questions without introducing new evidence?
153
- 7. **References goal**: Are cited sources and related artifacts traceable, including related XDRs, skills, articles, and research where relevant?
153
+ 7. **References goal**: Are cited sources and related artifacts traceable, including related Policies, skills, articles, and research where relevant?
154
154
 
155
155
  If any section fails its goal, revise that section before continuing.
156
156
 
@@ -236,7 +236,7 @@ Before writing files, verify:
236
236
  4. **Evidence quality**: Are the results concrete enough to support the discussion and conclusion?
237
237
  5. **Standalone focus**: Does the text read as a technical paper rather than commentary about future ADRs, repository process, or artifact management?
238
238
  6. **Ratio fit**: Does the document stay within section word limits and pass the Python ratio check, or does the introduction explicitly justify the deviation?
239
- 7. **References**: Are all related XDRs, research docs, skills, articles, and external sources linked when relevant?
239
+ 7. **References**: Are all related Policies, research docs, skills, articles, and external sources linked when relevant?
240
240
 
241
241
  If any check fails, revise before continuing.
242
242
 
@@ -244,34 +244,34 @@ If any check fails, revise before continuing.
244
244
 
245
245
  1. Create the research file at `.xdrs/[scope]/[type]/[subject]/researches/[number]-[short-title].md`.
246
246
  2. Add an entry to `.xdrs/[scope]/[type]/index.md`.
247
- 3. Add back-references from the related XDR, article, or skill when the relationship is important for discovery.
248
- 4. Evaluate whether the scope index at `.xdrs/[scope]/index.md` should be updated to reflect the new research. If the scope index does not exist, create it following article standards and the scope index rules in `_core-adr-001`.
247
+ 3. Add back-references from the related Policy, article, or skill when the relationship is important for discovery.
248
+ 4. Evaluate whether the scope index at `.xdrs/[scope]/index.md` should be updated to reflect the new research. If the scope index does not exist, create it following article standards and the scope index rules in `_core-adr-policy-001`.
249
249
 
250
250
  ## Examples
251
251
 
252
- **Input**: "Create research comparing package distribution options for our XDR scopes"
252
+ **Input**: "Create research comparing package distribution options for our Policy scopes"
253
253
 
254
254
  **Expected actions:**
255
255
  1. Read `006-research-standards.md`.
256
256
  2. Choose type `adrs` and subject `principles`.
257
257
  3. Scan `.xdrs/_local/adrs/principles/researches/` for the next number.
258
- 4. Read related XDRs about packaging and versioning.
258
+ 4. Read related Policies about packaging and versioning.
259
259
  5. Write an IMRAD-based research document comparing options such as npm package, git submodule, and copy-paste distribution, with the comparison grounded in methods and results.
260
- 6. Add references to the resulting XDR if a decision is later created.
260
+ 6. Add references to the resulting Policy if a decision is later created.
261
261
 
262
262
  ## Edge Cases
263
263
 
264
- - If the user is really asking for a final decision, write an XDR instead of research.
264
+ - If the user is really asking for a final decision, write a Policy instead of research.
265
265
  - If only one viable option exists, still explain what was evaluated, what was ruled out, or what constraints removed the alternatives.
266
266
  - If the document grows too large, split independent problem threads into separate research files unless the introduction explicitly justifies a longer study.
267
- - If the supported decision does not exist yet, reference the decision topic or planned XDR title in the introduction and conclusion.
267
+ - If the supported decision does not exist yet, reference the decision topic or planned Policy title in the introduction and conclusion.
268
268
  - If the user's direction, evidence base, or intended next step is vague, ask follow-up questions and wait for clarification instead of choosing a path yourself.
269
269
 
270
270
  ## References
271
271
 
272
- - [_core-adr-006 - Research standards](../../006-research-standards.md)
273
- - [_core-adr-001 - XDRs core](../../001-xdrs-core.md)
274
- - [002-write-xdr skill](../002-write-xdr/SKILL.md)
272
+ - [_core-adr-policy-006 - Research standards](../../006-research-standards.md)
273
+ - [_core-adr-policy-001 - XDRS core](../../001-xdrs-core.md)
274
+ - [002-write-policy skill](../002-write-policy/SKILL.md)
275
275
 
276
276
  ## Constraints
277
277
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- name: 006-write-plan
2
+ name: _core-adr-skill-006-write-plan
3
3
  description: >
4
- Creates a new plan document following XDR plan standards: selects scope, type, subject, and number;
4
+ Creates a new plan document following XDRS plan standards: selects scope, type, subject, and number;
5
5
  then writes a focused execution plan with problem context, proposed solution, approach, milestones, and deliverables.
6
- Activate this skill when the user asks to create, add, or write a plan, project plan, or execution plan within an XDR project.
6
+ Activate this skill when the user asks to create, add, or write a plan, project plan, or execution plan within an XDRS project.
7
7
  metadata:
8
8
  author: flaviostutz
9
9
  version: "1.0"
@@ -11,7 +11,7 @@ metadata:
11
11
 
12
12
  ## Overview
13
13
 
14
- Guides the creation of a well-structured plan document by following `_core-adr-007`, consulting `xdr-standards` for every core element definition, researching related XDRs and existing plans, and producing a focused execution document that connects to the decisions, research, and skills it relates to.
14
+ Guides the creation of a well-structured plan document by following `_core-adr-policy-007`, consulting `xdrs-core` for every core element definition, researching related Policies and existing plans, and producing a focused execution document that connects to the decisions, research, and skills it relates to.
15
15
 
16
16
  ## Instructions
17
17
 
@@ -35,12 +35,12 @@ Consult `001-xdrs-core` while making each choice in this phase. The summaries be
35
35
  **Scope** — use `_local` unless the user explicitly names another scope.
36
36
  - If the user names a scope other than `_local`, check the workspace root `.filedist` file. If any file under `.xdrs/[scope]/` appears in `.filedist`, the scope is external and new documents MUST NOT be created there. Inform the user and ask them to choose a non-external scope.
37
37
 
38
- **Type** — match the type of the XDRs the plan primarily implements or relates to (`adrs`, `bdrs`, or `edrs`).
38
+ **Type** — match the type of the Policies the plan primarily implements or relates to (`adrs`, `bdrs`, or `edrs`).
39
39
  - **BDR**: business process, product policy, strategic rule, operational procedure
40
40
  - **ADR**: system context, integration pattern, overarching architectural choice
41
41
  - **EDR**: specific tool/library, coding practice, testing strategy, project structure, pipelines
42
42
 
43
- **Subject** — pick the subject that best matches the plan's topic (required list per type is in `_core-adr-001`). If the plan spans more than one subject, place it in `principles`.
43
+ **Subject** — pick the subject that best matches the plan's topic (required list per type is in `_core-adr-policy-001`). If the plan spans more than one subject, place it in `principles`.
44
44
 
45
45
  ### Phase 3: Assign a Number and Name
46
46
 
@@ -52,8 +52,8 @@ Consult `001-xdrs-core` while making each choice in this phase. The summaries be
52
52
 
53
53
  ### Phase 4: Research Related Artifacts
54
54
 
55
- 1. Read all XDRs, Research documents, Skills, and existing Plans relevant to the plan topic across all scopes listed in the XDR root `index.md`.
56
- 2. Evaluate XDR metadata before treating any decision as current context. All documents present in the collection are considered active. `valid-from:` determines the convergence date for adoption, `apply-to:` determines whether the decision fits the intended context, and the decision text defines any remaining boundaries.
55
+ 1. Read all Policies, Research documents, Skills, and existing Plans relevant to the plan topic across all scopes listed in the Policy root `index.md`.
56
+ 2. Evaluate Policy metadata before treating any decision as current context. All documents present in the collection are considered active. `valid-from:` determines the convergence date for adoption, `apply-to:` determines whether the decision fits the intended context, and the decision text defines any remaining boundaries.
57
57
  3. Identify Decisions that this plan implements, Research that informs the planning, and any existing Plans that overlap.
58
58
  4. Collect artifact IDs and file paths for cross-references.
59
59
 
@@ -62,7 +62,7 @@ Consult `001-xdrs-core` while making each choice in this phase. The summaries be
62
62
  Use the mandatory template from `007-plan-standards`:
63
63
 
64
64
  ```markdown
65
- # [scope]-plan-[number]: [Short Title]
65
+ # [scope]-[type]-plan-[number]: [Short Title]
66
66
 
67
67
  ## Executive Summary
68
68
 
@@ -104,7 +104,7 @@ Expected end date: YYYY-MM-DD
104
104
 
105
105
  ## References
106
106
 
107
- - [Related XDR or artifact](relative/path.md) - Brief description of relevance
107
+ - [Related Policy or artifact](relative/path.md) - Brief description of relevance
108
108
  ```
109
109
 
110
110
  Rules to apply while drafting:
@@ -123,8 +123,8 @@ Rules to apply while drafting:
123
123
 
124
124
  1. Save the file at `.xdrs/[scope]/[type]/[subject]/plans/[number]-[short-title].md`.
125
125
  2. Add a link to the plan in the canonical index for that scope+type (`.xdrs/[scope]/[type]/index.md`).
126
- 3. Add back-references in the XDRs, Research documents, and Skills that the plan relates to, under their `## References` section.
127
- 4. Evaluate whether the scope index at `.xdrs/[scope]/index.md` should be updated to reflect the new plan. If the scope index does not exist, create it following article standards and the scope index rules in `_core-adr-001`.
126
+ 3. Add back-references in the Policies, Research documents, and Skills that the plan relates to, under their `## References` section.
127
+ 4. Evaluate whether the scope index at `.xdrs/[scope]/index.md` should be updated to reflect the new plan. If the scope index does not exist, create it following article standards and the scope index rules in `_core-adr-policy-001`.
128
128
 
129
129
  ### Phase 7: Verify with Lint
130
130
 
@@ -142,7 +142,7 @@ Rules to apply while drafting:
142
142
  1. Read `007-plan-standards.md`.
143
143
  2. Topic: API v2 migration. Scope: `_local`.
144
144
  3. Type: `adrs` (architectural). Subject: `integration` or `application`.
145
- 4. Research related XDRs about API design and integration patterns.
145
+ 4. Research related Policies about API design and integration patterns.
146
146
  5. Draft the plan with clear problem, solution, milestones, and expected end date.
147
147
  6. Save, register in canonical index, and lint.
148
148
 
@@ -151,13 +151,13 @@ Rules to apply while drafting:
151
151
  - If a plan is too large (more than 2 years), split it into multiple smaller plans. Each plan should be independently actionable and produce its own deliverables.
152
152
  - If a plan spawns sub-plans during implementation, each sub-plan is a separate plan document in the appropriate subject folder. Link them in the References section.
153
153
  - If a plan is fully implemented, delete it and confirm that all lasting outputs (Decisions, Skills, Articles, etc.) are properly linked and indexed.
154
- - If the user asks for a plan that is really just a decision, guide them to create an XDR instead.
154
+ - If the user asks for a plan that is really just a decision, guide them to create a Policy instead.
155
155
 
156
156
  ## References
157
157
 
158
- - [_core-adr-001 - XDRs core](../../001-xdrs-core.md)
159
- - [_core-adr-007 - Plan standards](../../007-plan-standards.md)
160
- - [_core-adr-002 - XDR standards](../../002-xdr-standards.md)
158
+ - [_core-adr-policy-001 - XDRS core](../../001-xdrs-core.md)
159
+ - [_core-adr-policy-007 - Plan standards](../../007-plan-standards.md)
160
+ - [_core-adr-policy-002 - Policy standards](../../002-policy-standards.md)
161
161
 
162
162
  ## Constraints
163
163
 
@@ -1,8 +1,8 @@
1
1
  ---
2
- name: 007-write-presentation
2
+ name: _core-adr-skill-007-write-presentation
3
3
  description: >
4
- Creates a Marp slide presentation for an existing XDR document (decision, research, article, or plan).
5
- Activate this skill when the user asks to create slides, a presentation, or a slide deck for an XDR document.
4
+ Creates a Marp slide presentation for an existing XDRS document (policy, research, article, or plan).
5
+ Activate this skill when the user asks to create slides, a presentation, or a slide deck for an XDRS document.
6
6
  metadata:
7
7
  author: flaviostutz
8
8
  version: "1.0"
@@ -10,7 +10,7 @@ metadata:
10
10
 
11
11
  ## Overview
12
12
 
13
- Guides the creation of a Marp Markdown slide presentation that supports an existing XDR document. The skill ensures the slides follow presentation standards (`_core-adr-009`), are correctly placed in the `.assets/` folder, and maintain bidirectional links with the parent document.
13
+ Guides the creation of a Marp Markdown slide presentation that supports an existing XDRS document. The skill ensures the slides follow presentation standards (`_core-adr-policy-009`), are correctly placed in the `.assets/` folder, and maintain bidirectional links with the parent document.
14
14
 
15
15
  ## Instructions
16
16
 
@@ -18,7 +18,7 @@ Guides the creation of a Marp Markdown slide presentation that supports an exist
18
18
 
19
19
  1. Read `.xdrs/_core/adrs/principles/009-presentation-standards.md` in full to internalize all presentation rules.
20
20
  2. Read `.xdrs/_core/adrs/principles/001-xdrs-core.md` for `.assets/` placement rules and general framework structure.
21
- 3. Identify the parent document (decision, research, article, or plan) that the slides will support. The parent document must already exist. If no parent document exists, inform the user that slides cannot be standalone and suggest creating the parent document first.
21
+ 3. Identify the parent document (policy, research, article, or plan) that the slides will support. The parent document must already exist. If no parent document exists, inform the user that slides cannot be standalone and suggest creating the parent document first.
22
22
  4. If the user wants slides covering content from multiple documents, check whether an article already exists that synthesizes those documents. If not, suggest creating an article first (using the 004-write-article skill) and then creating slides for that article.
23
23
 
24
24
  ### Phase 2: Define the Presentation Scope
@@ -108,13 +108,13 @@ Rules:
108
108
 
109
109
  ### Phase 6: Update the Parent Document
110
110
 
111
- 1. Add a link to the slide file in the parent document. Place it in the `## References` section or, for XDRs, in the most appropriate section.
111
+ 1. Add a link to the slide file in the parent document. Place it in the `## References` section or, for Policies, in the most appropriate section.
112
112
  2. Use a descriptive link text such as "Presentation slides" pointing to the slide file in `.assets/`.
113
113
 
114
114
  ### Phase 7: Write Files
115
115
 
116
116
  1. Create the slide file at the correct `.assets/` location:
117
- - XDRs: `[xdrs-root]/[scope]/[type]/[subject]/.assets/[slide-file].md`
117
+ - Policies: `[xdrs-root]/[scope]/[type]/[subject]/.assets/[slide-file].md`
118
118
  - Articles: `[xdrs-root]/[scope]/[type]/[subject]/articles/.assets/[slide-file].md`
119
119
  - Research: `[xdrs-root]/[scope]/[type]/[subject]/researches/.assets/[slide-file].md`
120
120
  - Skills: `[xdrs-root]/[scope]/[type]/[subject]/skills/[number]-[skill-name]/.assets/[slide-file].md`
@@ -132,7 +132,7 @@ Rules:
132
132
 
133
133
  ### Constraints
134
134
 
135
- - MUST follow presentation standards from `_core-adr-009` exactly.
135
+ - MUST follow presentation standards from `_core-adr-policy-009` exactly.
136
136
  - MUST NOT create slides without an existing parent document.
137
137
  - MUST NOT create standalone slides that reference multiple documents without an article as the parent.
138
138
  - MUST maintain bidirectional links between slides and parent document.
@@ -144,7 +144,7 @@ Rules:
144
144
  ## Examples
145
145
 
146
146
  **Input**: "Create slides for our naming conventions decision"
147
- - Locate the parent XDR (e.g. `003-naming-conventions.md`)
147
+ - Locate the parent Policy (e.g. `003-naming-conventions.md`)
148
148
  - Ask: "Who is the target audience for these slides?"
149
149
  - Create: `.assets/003-naming-conventions-slides.md`
150
150
  - Update: Add link in `003-naming-conventions.md`
@@ -152,7 +152,7 @@ Rules:
152
152
  **Input**: "Create an executive presentation covering our security and data decisions"
153
153
  - Check if an article synthesizing security + data decisions exists
154
154
  - If not, suggest creating the article first
155
- - Create slides for the article, not the individual XDRs
155
+ - Create slides for the article, not the individual Policies
156
156
 
157
157
  ## Edge Cases
158
158
 
@@ -163,7 +163,7 @@ Rules:
163
163
 
164
164
  ## References
165
165
 
166
- - [_core-adr-009 - Presentation standards](../../009-presentation-standards.md)
167
- - [_core-adr-001 - XDRs core](../../001-xdrs-core.md)
168
- - [_core-adr-004 - Article standards](../../004-article-standards.md)
169
- - [_core-adr-003 - Skill standards](../../003-skill-standards.md)
166
+ - [_core-adr-policy-009 - Presentation standards](../../009-presentation-standards.md)
167
+ - [_core-adr-policy-001 - XDRS core](../../001-xdrs-core.md)
168
+ - [_core-adr-policy-004 - Article standards](../../004-article-standards.md)
169
+ - [_core-adr-policy-003 - Skill standards](../../003-skill-standards.md)