xdrs-core 0.52.2 → 0.53.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.
- package/.xdrs/_core/adrs/principles/001-xdrs-standards.md +3 -3
- package/.xdrs/_core/adrs/principles/002-policy-standards.md +1 -1
- package/.xdrs/_core/adrs/principles/003-skill-standards.md +12 -1
- package/.xdrs/_core/adrs/principles/006-research-standards.md +6 -6
- package/.xdrs/_core/adrs/principles/007-initiative-standards.md +9 -9
- package/.xdrs/_core/adrs/principles/008-policy-structured-standards.md +1 -1
- package/.xdrs/_core/adrs/principles/010-scope-governance.md +5 -5
- package/.xdrs/_core/adrs/principles/011-core-scope-type.md +1 -1
- package/.xdrs/_core/adrs/principles/022-scope-activation.md +12 -9
- package/.xdrs/_core/adrs/principles/skills/.assets/lint-verification.md +0 -1
- package/.xdrs/_core/adrs/principles/skills/compile-scope/SKILL.md +10 -8
- package/.xdrs/_core/adrs/principles/skills/review/SKILL.md +10 -8
- package/.xdrs/_core/adrs/principles/skills/write-article/SKILL.md +12 -10
- package/.xdrs/_core/adrs/principles/skills/write-initiative/SKILL.md +16 -14
- package/.xdrs/_core/adrs/principles/skills/write-policy/SKILL.md +12 -11
- package/.xdrs/_core/adrs/principles/skills/write-presentation/SKILL.md +5 -3
- package/.xdrs/_core/adrs/principles/skills/write-research/SKILL.md +17 -15
- package/.xdrs/_core/adrs/principles/skills/write-skill/SKILL.md +20 -12
- package/.xdrs/_core/adrs/principles/skills/write-xdrs-doc/SKILL.md +4 -2
- package/README.md +155 -59
- package/lib/lint.js +37 -73
- package/lib/lint.test.js +89 -47
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ description: >
|
|
|
5
5
|
Activate this skill when the user asks to create, add, or write a new Policy (ADR, BDR, or EDR).
|
|
6
6
|
metadata:
|
|
7
7
|
author: flaviostutz
|
|
8
|
-
version: "1.
|
|
9
|
-
updated: 2026-09-
|
|
8
|
+
version: "1.1.0"
|
|
9
|
+
updated: 2026-09-24
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
## Overview
|
|
@@ -27,7 +27,7 @@ Guides the creation of a well-structured Policy by following the standards in `_
|
|
|
27
27
|
|
|
28
28
|
#### Contents
|
|
29
29
|
|
|
30
|
-
- A new Policy file.
|
|
30
|
+
- A new Policy file (<1300 words; complex <2600).
|
|
31
31
|
|
|
32
32
|
#### Changes
|
|
33
33
|
|
|
@@ -43,6 +43,8 @@ Guides the creation of a well-structured Policy by following the standards in `_
|
|
|
43
43
|
|
|
44
44
|
## Instructions
|
|
45
45
|
|
|
46
|
+
Keep every question and intermediate message <100 words and the final summary <150 words.
|
|
47
|
+
|
|
46
48
|
### Phase 0: Scope Placement and Prerequisites Gate — MUST complete before writing
|
|
47
49
|
|
|
48
50
|
1. Run the scope placement analysis from the shared module at `.xdrs/_core/adrs/principles/skills/.assets/scope-placement.md` to determine and confirm the target scope.
|
|
@@ -137,22 +139,22 @@ Refer to `_core-adr-policy-008-policy-structured-standards` for full requirement
|
|
|
137
139
|
---
|
|
138
140
|
name: [scope]-[type]-[number]-[short-title]
|
|
139
141
|
description: [What this decision is about and when to use it]
|
|
140
|
-
apply-to: [Required. Contexts this decision applies to,
|
|
142
|
+
apply-to: [Required. Contexts this decision applies to, <40 words. Use "All scopes" when broadly applicable.]
|
|
141
143
|
valid-from: [Required. ISO date YYYY-MM-DD. Defaults to today's date when not specified by the user.]
|
|
142
144
|
---
|
|
143
145
|
|
|
144
146
|
# [scope]-[type]-[number]: [Short Title]
|
|
145
147
|
|
|
146
148
|
## Context and Problem Statement
|
|
147
|
-
[background, who is impacted, and the explicit question being answered -
|
|
149
|
+
[background, who is impacted, and the explicit question being answered - <40 words]
|
|
148
150
|
|
|
149
151
|
## Decision Outcome
|
|
150
152
|
|
|
151
153
|
**[Chosen Option Title]**
|
|
152
|
-
[One sentence: what is the decision -
|
|
154
|
+
[One sentence: what is the decision - <30 words]
|
|
153
155
|
|
|
154
156
|
### Details
|
|
155
|
-
[Rules, applicability boundaries, concise examples, and optional do/don't guidance —
|
|
157
|
+
[Rules, applicability boundaries, concise examples, and optional do/don't guidance — <1300 words]
|
|
156
158
|
|
|
157
159
|
## Considered Options (only if the user explicitly indicated multiple options)
|
|
158
160
|
|
|
@@ -164,7 +166,7 @@ valid-from: [Required. ISO date YYYY-MM-DD. Defaults to today's date when not sp
|
|
|
164
166
|
Mandatory rules to apply while drafting:
|
|
165
167
|
- Always include frontmatter `apply-to:`. Use `All scopes` when the decision applies broadly, or a more specific description when the decision is narrowly scoped.
|
|
166
168
|
- Always include frontmatter `valid-from:`. Use today's date in `YYYY-MM-DD` format when the user does not specify a date.
|
|
167
|
-
-
|
|
169
|
+
- Use `valid-from:` only with `YYYY-MM-DD` ISO format.
|
|
168
170
|
- When frontmatter metadata is present, write it so a reader can decide whether the Policy should be used for the current case without guessing. `valid-from:` sets a convergence date for adoption, `apply-to:` narrows the contexts where the decision applies, and the decision text defines any remaining boundaries.
|
|
169
171
|
- Use mandatory language ("must", "always", "never") only for hard requirements; use advisory language ("should", "recommended") for guidance.
|
|
170
172
|
- Do not duplicate content already in referenced Policies — link instead.
|
|
@@ -175,13 +177,12 @@ Mandatory rules to apply while drafting:
|
|
|
175
177
|
- If the Policy genuinely needs local images or supporting files, store them in `.xdrs/[scope]/[type]/[subject]/.assets/` and link them using a same-folder relative path (e.g., `.assets/image.png`).
|
|
176
178
|
- Use relative paths for all links; never use absolute paths starting with `/`.
|
|
177
179
|
- No emojis. Lowercase filenames.
|
|
178
|
-
- Target under 1300 words total; under 2600 words for complex decisions.
|
|
179
180
|
|
|
180
181
|
### Phase 7: Review the Draft
|
|
181
182
|
|
|
182
183
|
Check every item before finalizing:
|
|
183
184
|
|
|
184
|
-
1. **Length**: Is it
|
|
185
|
+
1. **Length**: Is it within the Policy file cap and every template section cap? Trim verbose explanations. Move detailed skills to a separate file and link.
|
|
185
186
|
2. **Frontmatter**: Are `apply-to:` and `valid-from:` both present? `apply-to:` must describe the applicable context (use `All scopes` when broadly applicable). `valid-from:` must be set (use today's date if the user did not specify one).
|
|
186
187
|
3. **Normative language**: Does every normative requirement in the Details and Decision Outcome sections use uppercase BCP 14 keywords per `_core-adr-policy-001`? Replace any lowercase `must`/`should`/`may` that express requirements, prohibitions, or permissions with MUST/MUST NOT, SHOULD/SHOULD NOT, or MAY/OPTIONAL respectively. Lowercase forms are only acceptable in Context sections, question statements, or when used with their ordinary English meaning.
|
|
187
188
|
4. **Originality**: Does every sentence add value that cannot be found in a generic web search? Remove obvious advice. Keep only the project-specific decision.
|
|
@@ -196,7 +197,7 @@ If any check fails, revise and re-run this phase before proceeding.
|
|
|
196
197
|
### Phase 8: Write Files
|
|
197
198
|
|
|
198
199
|
1. Create the Policy file at `[xdrs-root]/[scope]/[type]/[subject]/[number]-[short-title].md` (default root: `.xdrs/`).
|
|
199
|
-
2. Add an entry to `[xdrs-root]/[scope]/[type]/index.md` (create the file if it does not exist).
|
|
200
|
+
2. Add an entry to `[xdrs-root]/[scope]/[type]/index.md` (create the file if it does not exist); keep its description <15 words.
|
|
200
201
|
3. Add or verify the scope entry in the Policy root `index.md` (exactly one link per scope; when the scope index declares `extends-only: true`, append the tag `` `extends-only` `` right after the link and make sure the legend line is present, see `_core-adr-policy-022`).
|
|
201
202
|
4. If significant research was produced or already exists, link it from the Policy `## Considered Options` section.
|
|
202
203
|
5. If concise rules, examples, or do/don't bullets help readers apply the decision correctly, add them inside `### Details` without turning the Policy into a long procedure.
|
|
@@ -5,8 +5,8 @@ description: >
|
|
|
5
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
|
-
version: "1.
|
|
9
|
-
updated: 2026-09-
|
|
8
|
+
version: "1.1.0"
|
|
9
|
+
updated: 2026-09-24
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
## Overview
|
|
@@ -47,6 +47,8 @@ Guides the creation of a Marp Markdown slide presentation that supports an exist
|
|
|
47
47
|
|
|
48
48
|
## Instructions
|
|
49
49
|
|
|
50
|
+
Keep every question and intermediate message <100 words and the final summary <150 words.
|
|
51
|
+
|
|
50
52
|
### Phase 0: Prerequisites Gate — MUST complete before writing
|
|
51
53
|
|
|
52
54
|
Identify the target scope from the parent document's path or the user's request; use `_local` if none is specified. Then run the prerequisites gate from the shared module at `.xdrs/_core/adrs/principles/skills/.assets/prerequisites-gate.md`. Substitute `[DOCUMENT TYPE]` with `presentation`.
|
|
@@ -135,7 +137,7 @@ Rules:
|
|
|
135
137
|
- The first line of YAML frontmatter must be `marp: true`. Additional Marp keys (`theme`, `paginate`, `header`, `footer`) may be added after.
|
|
136
138
|
- Use `---` as the slide separator (standard Marp syntax).
|
|
137
139
|
- The last slide must contain links back to the parent document and any other related documents.
|
|
138
|
-
- Minimize text per slide. Prefer visual elements and short statements.
|
|
140
|
+
- Minimize text per slide: each slide <80 words. Prefer visual elements and short statements.
|
|
139
141
|
- Stress central questions, answers, doubts, decisions, and risks from the parent document.
|
|
140
142
|
- No emojis.
|
|
141
143
|
- Use relative paths for all links.
|
|
@@ -6,8 +6,8 @@ description: >
|
|
|
6
6
|
Activate this skill when the user asks to create, add, or write a research document that backs a decision.
|
|
7
7
|
metadata:
|
|
8
8
|
author: flaviostutz
|
|
9
|
-
version: "1.
|
|
10
|
-
updated: 2026-09-
|
|
9
|
+
version: "1.5.0"
|
|
10
|
+
updated: 2026-09-24
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
## Overview
|
|
@@ -30,7 +30,7 @@ This skill is interactive by design. Ask clarifying questions to the user at eac
|
|
|
30
30
|
|
|
31
31
|
#### Contents
|
|
32
32
|
|
|
33
|
-
- A standalone IMRAD research document.
|
|
33
|
+
- A standalone IMRAD research document (<5000 words).
|
|
34
34
|
|
|
35
35
|
#### Changes
|
|
36
36
|
|
|
@@ -50,6 +50,8 @@ This skill is interactive by design. Ask clarifying questions to the user at eac
|
|
|
50
50
|
|
|
51
51
|
## Instructions
|
|
52
52
|
|
|
53
|
+
Keep every question and intermediate message <100 words and the final summary <150 words.
|
|
54
|
+
|
|
53
55
|
### Phase 0: Scope Placement and Prerequisites Gate — MUST complete before writing
|
|
54
56
|
|
|
55
57
|
1. Run the scope placement analysis from the shared module at `.xdrs/_core/adrs/principles/skills/.assets/scope-placement.md` to determine and confirm the target scope.
|
|
@@ -129,39 +131,39 @@ Use the mandatory template from `006-research-standards`:
|
|
|
129
131
|
|
|
130
132
|
## Abstract
|
|
131
133
|
|
|
132
|
-
[Single paragraph summarizing the goal, methods, results, and conclusion. Goal: let a quick technical reader understand the question, method, main result, and takeaway.
|
|
134
|
+
[Single paragraph summarizing the goal, methods, results, and conclusion. Goal: let a quick technical reader understand the question, method, main result, and takeaway. <200 words.]
|
|
133
135
|
|
|
134
136
|
## Introduction
|
|
135
137
|
|
|
136
138
|
[Describe the problem, context, constraints, known facts, experiences, gaps, assumptions, and objectives.
|
|
137
|
-
Use visuals, bullets, graphs, or diagrams when helpful. Goal: explain the investigated problem, operating context, constraints, and why the subject matters.
|
|
139
|
+
Use visuals, bullets, graphs, or diagrams when helpful. Goal: explain the investigated problem, operating context, constraints, and why the subject matters. <700 words.]
|
|
138
140
|
|
|
139
141
|
Question: [Central question of the research]?
|
|
140
142
|
|
|
141
143
|
## Methods
|
|
142
144
|
|
|
143
145
|
[Explain how the study was conducted, including design, tools, data sources, and test conditions.
|
|
144
|
-
Include enough detail for an experienced professional to reproduce the relevant parts. Goal: make the important parts of the study reproducible.
|
|
146
|
+
Include enough detail for an experienced professional to reproduce the relevant parts. Goal: make the important parts of the study reproducible. <1200 words.]
|
|
145
147
|
|
|
146
148
|
## Results
|
|
147
149
|
|
|
148
150
|
[Report findings, data, trends, quantitative results, code artifacts, and option comparisons.
|
|
149
|
-
Use figures, tables, or bullets when useful. If multiple options solve the same problem, add comparison tables and explicit pros and cons for each option. Focus on raw findings, not interpretation. Goal: present the raw findings with minimal interpretation.
|
|
151
|
+
Use figures, tables, or bullets when useful. If multiple options solve the same problem, add comparison tables and explicit pros and cons for each option. Focus on raw findings, not interpretation. Goal: present the raw findings with minimal interpretation. <1800 words.]
|
|
150
152
|
|
|
151
153
|
## Discussion
|
|
152
154
|
|
|
153
|
-
[Interpret the results, explain significance, trade-offs, performance considerations, limitations, and implications. Goal: interpret the findings for technical readers. Keep this section technically engaged
|
|
155
|
+
[Interpret the results, explain significance, trade-offs, performance considerations, limitations, and implications. Goal: interpret the findings for technical readers. Keep this section technically engaged. <1000 words.]
|
|
154
156
|
|
|
155
157
|
## Conclusion
|
|
156
158
|
|
|
157
|
-
[Summarize the main findings, practical takeaway, applicability boundaries, and important open questions. Goal: summarize the main findings and what they mean in practice.
|
|
159
|
+
[Summarize the main findings, practical takeaway, applicability boundaries, and important open questions. Goal: summarize the main findings and what they mean in practice. <400 words.]
|
|
158
160
|
|
|
159
161
|
## References
|
|
160
162
|
|
|
161
163
|
[A list of all cited literature, websites, tutorials, documentation, discussions, and related artifacts. Goal: make all cited sources and supporting artifacts traceable.]
|
|
162
164
|
|
|
163
|
-
- [Related Policy or artifact](relative/path.md) - Why it matters
|
|
164
|
-
- [Another related Policy if this research informed multiple decisions](relative/path.md) - Why it matters
|
|
165
|
+
- [Related Policy or artifact](relative/path.md) - Why it matters (<15 words)
|
|
166
|
+
- [Another related Policy if this research informed multiple decisions](relative/path.md) - Why it matters (<15 words)
|
|
165
167
|
```
|
|
166
168
|
|
|
167
169
|
Rules:
|
|
@@ -175,13 +177,13 @@ Rules:
|
|
|
175
177
|
- For diagrams and non-Markdown assets, follow `_core-adr-policy-020`: prefer plain Markdown tables/lists and bullet points first, then ASCII art for very simple cases, then Mermaid.js (sequence, state, activity, entity diagrams) for complex ones, then draw.io when Mermaid is insufficient — save as Editable Vector (File → Save As → Editable Vector) and store as `.svg` in the sibling `.assets/` folder.
|
|
176
178
|
- If the research genuinely needs local images or supporting files, store them in `.xdrs/[scope]/[type]/[subject]/researches/.assets/` and link them using a same-folder relative path (e.g., `.assets/image.png`).
|
|
177
179
|
- Use relative paths for all links; never use absolute paths starting with `/`.
|
|
178
|
-
- Keep section
|
|
180
|
+
- Keep every section within its template cap; exceed the document cap only when the introduction explicitly states that a very detailed analysis is required.
|
|
179
181
|
|
|
180
182
|
### Phase 8: Check Section Goals
|
|
181
183
|
|
|
182
184
|
Before the final review, verify each section against its specific goal:
|
|
183
185
|
|
|
184
|
-
1. **Abstract goal**: Does it let a quick technical reader understand the question, method, main result, and takeaway, in one paragraph and
|
|
186
|
+
1. **Abstract goal**: Does it let a quick technical reader understand the question, method, main result, and takeaway, in one paragraph and within its cap?
|
|
185
187
|
2. **Introduction goal**: Does it explain the investigated problem and context, stay within scope, and end with `Question: ...?`?
|
|
186
188
|
3. **Methods goal**: Could an experienced professional reproduce the important parts that materially affect the conclusion?
|
|
187
189
|
4. **Results goal**: Are the findings concrete and minimally interpreted, with comparisons and pros/cons when multiple options exist?
|
|
@@ -279,8 +281,8 @@ If any check fails, revise before continuing.
|
|
|
279
281
|
### Phase 11: Write Files
|
|
280
282
|
|
|
281
283
|
1. Create the research file at `.xdrs/[scope]/[type]/[subject]/researches/[number]-[short-title].md`.
|
|
282
|
-
2. Add an entry to `.xdrs/[scope]/[type]/index.md
|
|
283
|
-
3. Add back-references from the related Policy, article, or skill when the relationship is important for discovery.
|
|
284
|
+
2. Add an entry to `.xdrs/[scope]/[type]/index.md`, with a description <15 words.
|
|
285
|
+
3. Add back-references (<15 words each) from the related Policy, article, or skill when the relationship is important for discovery.
|
|
284
286
|
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`.
|
|
285
287
|
|
|
286
288
|
### Phase 12: Verify with Lint
|
|
@@ -6,8 +6,8 @@ description: >
|
|
|
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:
|
|
8
8
|
author: flaviostutz
|
|
9
|
-
version: "1.
|
|
10
|
-
updated: 2026-09-
|
|
9
|
+
version: "1.1.0"
|
|
10
|
+
updated: 2026-09-24
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
## Overview
|
|
@@ -28,7 +28,7 @@ Guides the creation of a well-structured skill package by following `_core-adr-p
|
|
|
28
28
|
|
|
29
29
|
#### Contents
|
|
30
30
|
|
|
31
|
-
- A complete SKILL.md file
|
|
31
|
+
- A complete SKILL.md file (<7000 words)
|
|
32
32
|
|
|
33
33
|
#### Changes
|
|
34
34
|
|
|
@@ -48,6 +48,8 @@ Guides the creation of a well-structured skill package by following `_core-adr-p
|
|
|
48
48
|
|
|
49
49
|
## Instructions
|
|
50
50
|
|
|
51
|
+
Keep every question and intermediate message <100 words and the final summary <150 words.
|
|
52
|
+
|
|
51
53
|
### Phase 0: Scope Placement and Prerequisites Gate — MUST complete before writing
|
|
52
54
|
|
|
53
55
|
1. Run the scope placement analysis from the shared module at `.xdrs/_core/adrs/principles/skills/.assets/scope-placement.md` to determine and confirm the target scope.
|
|
@@ -109,29 +111,29 @@ metadata:
|
|
|
109
111
|
|
|
110
112
|
#### Required
|
|
111
113
|
|
|
112
|
-
[Bare-minimum bullets needed to invoke the skill, or a single "None" bullet. Each
|
|
114
|
+
[Bare-minimum bullets needed to invoke the skill, or a single "None" bullet. Each <10 words.]
|
|
113
115
|
|
|
114
116
|
#### Optional
|
|
115
117
|
|
|
116
|
-
[Extra helpful-context bullets, or a single "None" bullet. Each
|
|
118
|
+
[Extra helpful-context bullets, or a single "None" bullet. Each <10 words.]
|
|
117
119
|
|
|
118
120
|
### Outputs
|
|
119
121
|
|
|
120
122
|
#### Contents
|
|
121
123
|
|
|
122
|
-
[End-objective files/chat text produced, or a single "None" bullet. Each
|
|
124
|
+
[End-objective files/chat text produced, or a single "None" bullet. Each <10 words. Append "(<N words)" or "(uncapped: <reason>)" to natural-language items not capped in a template or step, e.g. "Release notes (<300 words)". Code and structured data get no marker.]
|
|
123
125
|
|
|
124
126
|
#### Changes
|
|
125
127
|
|
|
126
|
-
[End-objective external system mutations, or a single "None" bullet. Each
|
|
128
|
+
[End-objective external system mutations, or a single "None" bullet. Each <10 words.]
|
|
127
129
|
|
|
128
130
|
### Halt Conditions
|
|
129
131
|
|
|
130
|
-
[This skill's specific stop-before-completing triggers, or a single "None" bullet. Each
|
|
132
|
+
[This skill's specific stop-before-completing triggers, or a single "None" bullet. Each <10 words.]
|
|
131
133
|
|
|
132
134
|
### User Interaction
|
|
133
135
|
|
|
134
|
-
[Optional. Human-in-the-loop exchanges during execution: clarifying questions or approval gates, or a single "None" bullet. Each
|
|
136
|
+
[Optional. Human-in-the-loop exchanges during execution: clarifying questions or approval gates, or a single "None" bullet. Each <10 words. Omit the whole section if none apply.]
|
|
135
137
|
|
|
136
138
|
### Runtime Requirements
|
|
137
139
|
|
|
@@ -139,8 +141,10 @@ metadata:
|
|
|
139
141
|
|
|
140
142
|
## Instructions
|
|
141
143
|
|
|
144
|
+
[Blanket cap line, e.g. "Keep every question and intermediate message <100 words and the final summary <150 words."]
|
|
145
|
+
|
|
142
146
|
### Phase 1: …
|
|
143
|
-
[Step-by-step agent instructions organized into named phases. Use imperative language and include verification or acceptance criteria at the end of the task or major phases.]
|
|
147
|
+
[Step-by-step agent instructions organized into named phases. Use imperative language and include verification or acceptance criteria at the end of the task or major phases. State "<N words" in each step that produces natural-language content not covered by the blanket line or a template.]
|
|
144
148
|
|
|
145
149
|
## Examples
|
|
146
150
|
|
|
@@ -166,13 +170,14 @@ Rules:
|
|
|
166
170
|
- The `description` field must state both *what* the skill does and *when* to activate it.
|
|
167
171
|
- Keep the skill task-oriented. It should have a clear starting trigger and a concrete ending result.
|
|
168
172
|
- Mention tools or prerequisites when they are required to complete the task reliably.
|
|
173
|
+
- Declare a "<N words" cap, or "(uncapped: <reason>)", exactly once for every natural-language content the skill generates, per **Generated content caps** in `_core-adr-policy-003`.
|
|
169
174
|
- Do not duplicate content from referenced Policies — link instead.
|
|
170
175
|
- Do not present the skill itself as policy; mandatory behavior must come from referenced Policies or other policy artifacts.
|
|
171
176
|
- 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.
|
|
172
177
|
- For diagrams and non-Markdown assets, follow `_core-adr-policy-020`: prefer plain Markdown tables/lists first, then ASCII art for very simple cases, then Mermaid.js (sequence, state, activity, entity diagrams) for complex ones, then draw.io when Mermaid is insufficient — save as Editable Vector (File → Save As → Editable Vector) and store as `.svg` in the sibling `.assets/` folder.
|
|
173
178
|
- If `SKILL.md` genuinely needs local images or supporting files, store them in `.xdrs/[scope]/[type]/[subject]/skills/[skill-name]/.assets/` and link them using a same-folder relative path (e.g., `.assets/image.png`).
|
|
174
179
|
- Use relative paths for all links; never use absolute paths starting with `/`.
|
|
175
|
-
- No emojis. Lowercase filenames.
|
|
180
|
+
- No emojis. Lowercase filenames.
|
|
176
181
|
|
|
177
182
|
### Phase 5: Review the Draft
|
|
178
183
|
|
|
@@ -180,12 +185,13 @@ Before writing files, verify:
|
|
|
180
185
|
|
|
181
186
|
1. **Activation criteria**: Is it unambiguous when this skill loads vs. when it should not?
|
|
182
187
|
2. **Completeness**: Does every phase have actionable steps?
|
|
183
|
-
3. **Length**:
|
|
188
|
+
3. **Length**: Within the SKILL.md word cap? Trim verbose explanations.
|
|
184
189
|
4. **Duplication**: Does this overlap an existing skill? If yes, revise.
|
|
185
190
|
5. **References**: Are all related XDRs and skills linked, including the cases where the skill operationalizes multiple XDRs?
|
|
186
191
|
6. **Anti-Patterns**: Does the skill include at least 3 genuine, domain-specific `## Anti-Patterns` entries (not generic filler)?
|
|
187
192
|
7. **Required sections**: Does `## Overview` contain nested `### Inputs` (Required/Optional bullets), `### Outputs` (Contents/Changes bullets), and `### Halt Conditions` listing this skill's specific stop triggers — each bullet under 10 words or a single "None"?
|
|
188
193
|
8. **Meta-policy compliance**: Run the shared module at `.xdrs/_core/adrs/principles/skills/.assets/meta-policy-compliance.md`. Substitute `[DOCUMENT]` with `skill`.
|
|
194
|
+
9. **Output caps**: Does every natural-language content the skill generates (files, messages, questions, summaries, external posts) have exactly one "<N words" cap or "(uncapped: <reason>)" marker, with code and structured data unmarked?
|
|
189
195
|
|
|
190
196
|
If any check fails, revise before continuing.
|
|
191
197
|
|
|
@@ -213,6 +219,8 @@ Follow the lint verification steps in `.xdrs/_core/adrs/principles/skills/.asset
|
|
|
213
219
|
- MUST include a References section linking to `003-skill-standards`.
|
|
214
220
|
- MUST include nested `### Inputs`, `### Outputs`, and `### Halt Conditions` subsections inside `## Overview` with skill-specific content.
|
|
215
221
|
|
|
222
|
+
## Examples
|
|
223
|
+
|
|
216
224
|
**Input**: "Create a skill to help debug CI pipelines"
|
|
217
225
|
- Type: EDR (engineering workflow)
|
|
218
226
|
- Scope: `_local`
|
|
@@ -5,8 +5,8 @@ description: >
|
|
|
5
5
|
Activate this skill when the user asks to create or write any XDRS element.
|
|
6
6
|
metadata:
|
|
7
7
|
author: flaviostutz
|
|
8
|
-
version: "1.
|
|
9
|
-
updated: 2026-09-
|
|
8
|
+
version: "1.1.0"
|
|
9
|
+
updated: 2026-09-24
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
## Overview
|
|
@@ -47,6 +47,8 @@ Routes the request to the appropriate XDRS authoring skill based on the type of
|
|
|
47
47
|
|
|
48
48
|
## Instructions
|
|
49
49
|
|
|
50
|
+
Keep every question and intermediate message <100 words and the final summary <150 words.
|
|
51
|
+
|
|
50
52
|
### Phase 1: Infer Document Type
|
|
51
53
|
|
|
52
54
|
1. Infer the target document type from the user's request and context using the mapping below. Do not ask the user unless the type is genuinely ambiguous after reading the request.
|