UB Quality
Critical Contract
Apply the embedded baseline in this SKILL.md immediately whenever
ub-quality is loaded.
For work that depends on deeper quality rules, load the relevant references by
the trigger table in this skill before producing the output. Do not skip a
triggered reference because the task looks small or the local style differs.
For every touched eligible vertical separator block, separators must align into one column. Use separator-column alignment (key : value), not value-column alignment (key: value).
This applies across code, configs, comments, docstrings, markup attributes, and documentation blocks when the structure is eligible.
Treat embedded language blocks such as <style> and <script> as native CSS and JavaScript formatting surfaces, not as generic HTML text.
Only syntax breakage or a verified tooling or runtime constraint may justify leaving an eligible touched block unaligned.
Compliant:
grid : ''
solar : ''
textMuted : ''
Non-compliant:
grid: ''
solar: ''
textMuted: ''
When To Use
Use this skill alongside the primary implementation, review, or workflow skill
for:
- New code generation
- Code edits and refactors
- Code review responses
- Repo scans, architecture explanations, and maintainability feedback
- Documentation, config, comment, and formatting normalization in touched regions
- User-facing responses that need clearer structure or comparison formatting
Apply this skill whenever you create, modify, review, refactor, or normalize
code or documents and the task benefits from shared quality or readability
rules.
Do Not Treat As Optional
- Do not treat formatting and alignment as optional cleanup.
- If this skill is loaded, its formatting and alignment rules apply to all touched eligible blocks.
- Do not skip alignment because nearby code is unaligned, because a shorter style looks more familiar, or because the block is in documentation rather than code.
- Do not normalize unrelated blocks outside the touched logical scope unless broader normalization was explicitly requested.
Reference Loading Contract
ub-quality itself remains the always-loaded baseline. Deeper references are
not optional; they are loaded by trigger so the right contract is applied at
the right time without treating every task as if every quality subdomain is
active.
MUST load and apply:
references/design-patterns.md when making architecture, implementation,
refactoring, abstraction, dependency, or maintainability decisions.
references/formatting-alignment.md before creating or modifying code,
configs, examples, comments, docstrings, markup attributes, documentation
tables, or any other touched content with eligible separator blocks.
references/documentation-structure-refactoring.md before creating,
editing, reviewing, reorganizing, or refactoring documentation, comments,
file structure, public call surfaces, or large source files.
references/important-tags-and-doc-generation.md before creating or
modifying generated documents, comment tags, TODO-like markers, or any
content that may contain special preservation tags.
references/response-readability.md before substantial user-facing plans,
reviews, explanations, comparisons, or any answer where structure materially
affects scanability.
references/freshness-portability.md when deciding whether guidance is
repository policy, a strong house default, advisory freshness guidance, or a
portability concern.
If more than one trigger applies, load every relevant reference before
producing the dependent output.
Non-Compliance
The following are non-compliant when a touched block is eligible for alignment:
- An eligible vertical separator block whose separators do not form one column.
- Value-column alignment in an eligible block.
- Leaving embedded CSS/JS blocks unformatted as native language blocks when the touched content is eligible for alignment.
- Skipping alignment because of convenience, omission, or surrounding local style.
- Normalizing unrelated blocks outside the touched logical scope.
Decision Analysis Baseline
For planning, design, architecture, implementation direction, and other
choice-bearing guidance:
- Surface
2+ plausible approaches by default.
- Prefer a curated set of
2-4 options instead of exhaustive enumeration.
- Include concise pros/cons for each option and identify the recommended path.
- If only one path is materially meaningful, say that explicitly and explain
why the alternatives are not meaningfully different instead of fabricating a
fake option set.
- Leave sibling skills free to add domain-specific tradeoff dimensions when
they add real value.
Readability Baseline
For user-facing responses across chat, planning, reviews, specs, and
explanations:
- Lead with the answer, recommendation, or key point.
- Use informative headings for substantial responses.
- Keep paragraphs short and visually separated.
- Use bullets for collections and numbered steps for sequence.
- Keep list items parallel in grammar and intent.
- Use tables only for true multi-attribute comparisons that stay compact.
- Avoid dense text blocks when structure would improve scanning.
- Keep short answers compact and avoid ceremonial formatting.
Table rule:
- Prefer compact tables only when they materially improve side-by-side
comparison.
- Usually keep tables to
2-4 columns with short headers and brief cells.
- Do not force sentence-length prose into table cells.
- When a table becomes too wide, dense, or renderer-fragile, convert it to a
safer fallback structure instead of trying to preserve the grid.
Core Workflow
- Inspect the task scope and touched files.
- Apply the embedded baseline immediately.
- Load and apply every reference triggered by the task before producing
dependent output.
- Apply the decision-analysis baseline for planning, design, architecture,
implementation direction, and other choice-bearing guidance.
- Apply the readability baseline for user-facing responses and choose tables
versus safer fallback structures accordingly.
- Choose the simplest approach that preserves behavior and constraints.
- Apply formatting, documentation, and structure rules only in touched logical blocks.
- Validate behavior and explain any intentional exceptions allowed by the triggered references.
Skill Coordination
- Apply this skill together with the most relevant language/framework skill when available.
- Treat this skill as a companion baseline, not as a replacement for the
primary implementation or workflow skill.
- Treat syntax, runtime, and framework correctness as primary constraints.
- Do not treat formatter preference or familiar house style as a valid reason to violate the alignment contract.
- Prefer code and naming to carry mechanics, then use docs and comments for
contract, rationale, and non-obvious constraints.
Policy Versus Defaults
- In this repository, the alignment contract and triggered-reference workflow are repository policy when
ub-quality is loaded.
- Many language/framework recommendations coordinated through sibling skills are strong defaults, not universal portability requirements.
- Treat volatile setup recipes as freshness-review candidates first, not as automatic blockers, unless the repository explicitly promotes them to policy.
Output Requirements
When generating or modifying code:
- Include concise pros/cons and a recommendation for meaningful implementation
choices.
- Keep solutions simple and avoid overengineering.
- Preserve existing behavior unless change is explicitly requested.
- Call out any intentionally retained technical debt or deferred cleanup.
- Favor high-signal documentation over broad narration, especially in shared
guidance and heavily reused code.
- Make user-facing explanations easy to scan before deep reading.
- Match the structure to the information shape instead of defaulting to dense
prose or oversized tables.
Completion Gate
Before finalizing:
- Check every touched eligible separator block.
- Treat touched
<style> and <script> content as native CSS and JavaScript surfaces.
- Expand dense multiline-capable structures (for example literals, argument lists, and config/data blocks) into one-item-per-line form when required by
references/formatting-alignment.md, then align eligible entries.
- Align separators into one column using the longest-left-token rule from
references/formatting-alignment.md.
- Confirm no unrelated blocks were normalized.
- If any eligible block remains unaligned, the edit is incomplete unless a named exception from
references/formatting-alignment.md applies.
- Ensure special comment tags and
AGENT_TODO handling policy are respected.
- Expose the answer or recommendation early in user-facing responses.
- Use headings, bullets, steps, tables, or fallback blocks only when they
improve scanability for the information shape.
- Confirm list items stay parallel and concise.
- Confirm any table adds clarity rather than width or density problems.
- If a comparison table became too wide or text-heavy, convert it to a stacked
fallback structure instead of forcing the grid.
- Keep brief answers brief.
1---2name: ub-quality3description: Use this skill alongside the primary implementation, review, or workflow skill when the user wants code review, repo scanning, maintainability or architecture feedback, implementation planning, documentation cleanup, readable comparisons, or a clearer structured answer. Apply it when shared formatting, alignment, and response-structure rules must be enforced across touched code or documents. Do not use it as the primary owner of language, framework, runtime, or workflow decisions.4---5
6# UB Quality
7
8## Critical Contract
9
10Apply the embedded baseline in this `SKILL.md` immediately whenever
11`ub-quality` is loaded.
12
13For work that depends on deeper quality rules, load the relevant references by
14the trigger table in this skill before producing the output. Do not skip a
15triggered reference because the task looks small or the local style differs.
16
17For every touched eligible vertical separator block, separators must align into one column. Use separator-column alignment (`key : value`), not value-column alignment (`key: value`).
18
19This applies across code, configs, comments, docstrings, markup attributes, and documentation blocks when the structure is eligible.
20
21Treat embedded language blocks such as `<style>` and `<script>` as native CSS and JavaScript formatting surfaces, not as generic HTML text.
22
23Only syntax breakage or a verified tooling or runtime constraint may justify leaving an eligible touched block unaligned.
24
25Compliant:
26
27```text
28grid : ''
29solar : ''
30textMuted : ''
31```
32
33Non-compliant:
34
35```text
36grid: ''
37solar: ''
38textMuted: ''
39```
40
41## When To Use
42
43Use this skill alongside the primary implementation, review, or workflow skill
44for:
45
46- New code generation
47- Code edits and refactors
48- Code review responses
49- Repo scans, architecture explanations, and maintainability feedback
50- Documentation, config, comment, and formatting normalization in touched regions
51- User-facing responses that need clearer structure or comparison formatting
52
53Apply this skill whenever you create, modify, review, refactor, or normalize
54code or documents and the task benefits from shared quality or readability
55rules.
56
57## Do Not Treat As Optional
58
59- Do not treat formatting and alignment as optional cleanup.
60- If this skill is loaded, its formatting and alignment rules apply to all touched eligible blocks.
61- Do not skip alignment because nearby code is unaligned, because a shorter style looks more familiar, or because the block is in documentation rather than code.
62- Do not normalize unrelated blocks outside the touched logical scope unless broader normalization was explicitly requested.
63
64## Reference Loading Contract
65
66`ub-quality` itself remains the always-loaded baseline. Deeper references are
67not optional; they are loaded by trigger so the right contract is applied at
68the right time without treating every task as if every quality subdomain is
69active.
70
71MUST load and apply:
72
73- `references/design-patterns.md` when making architecture, implementation,
74 refactoring, abstraction, dependency, or maintainability decisions.
75- `references/formatting-alignment.md` before creating or modifying code,
76 configs, examples, comments, docstrings, markup attributes, documentation
77 tables, or any other touched content with eligible separator blocks.
78- `references/documentation-structure-refactoring.md` before creating,
79 editing, reviewing, reorganizing, or refactoring documentation, comments,
80 file structure, public call surfaces, or large source files.
81- `references/important-tags-and-doc-generation.md` before creating or
82 modifying generated documents, comment tags, TODO-like markers, or any
83 content that may contain special preservation tags.
84- `references/response-readability.md` before substantial user-facing plans,
85 reviews, explanations, comparisons, or any answer where structure materially
86 affects scanability.
87- `references/freshness-portability.md` when deciding whether guidance is
88 repository policy, a strong house default, advisory freshness guidance, or a
89 portability concern.
90
91If more than one trigger applies, load every relevant reference before
92producing the dependent output.
93
94## Non-Compliance
95
96The following are non-compliant when a touched block is eligible for alignment:
97
98- An eligible vertical separator block whose separators do not form one column.
99- Value-column alignment in an eligible block.
100- Leaving embedded CSS/JS blocks unformatted as native language blocks when the touched content is eligible for alignment.
101- Skipping alignment because of convenience, omission, or surrounding local style.
102- Normalizing unrelated blocks outside the touched logical scope.
103
104## Decision Analysis Baseline
105
106For planning, design, architecture, implementation direction, and other
107choice-bearing guidance:
108
109- Surface `2+` plausible approaches by default.
110- Prefer a curated set of `2-4` options instead of exhaustive enumeration.
111- Include concise pros/cons for each option and identify the recommended path.
112- If only one path is materially meaningful, say that explicitly and explain
113 why the alternatives are not meaningfully different instead of fabricating a
114 fake option set.
115- Leave sibling skills free to add domain-specific tradeoff dimensions when
116 they add real value.
117
118## Readability Baseline
119
120For user-facing responses across chat, planning, reviews, specs, and
121explanations:
122
123- Lead with the answer, recommendation, or key point.
124- Use informative headings for substantial responses.
125- Keep paragraphs short and visually separated.
126- Use bullets for collections and numbered steps for sequence.
127- Keep list items parallel in grammar and intent.
128- Use tables only for true multi-attribute comparisons that stay compact.
129- Avoid dense text blocks when structure would improve scanning.
130- Keep short answers compact and avoid ceremonial formatting.
131
132Table rule:
133
134- Prefer compact tables only when they materially improve side-by-side
135 comparison.
136- Usually keep tables to `2-4` columns with short headers and brief cells.
137- Do not force sentence-length prose into table cells.
138- When a table becomes too wide, dense, or renderer-fragile, convert it to a
139 safer fallback structure instead of trying to preserve the grid.
140
141## Core Workflow
142
1431. Inspect the task scope and touched files.
1442. Apply the embedded baseline immediately.
1453. Load and apply every reference triggered by the task before producing
146 dependent output.
1474. Apply the decision-analysis baseline for planning, design, architecture,
148 implementation direction, and other choice-bearing guidance.
1495. Apply the readability baseline for user-facing responses and choose tables
150 versus safer fallback structures accordingly.
1516. Choose the simplest approach that preserves behavior and constraints.
1527. Apply formatting, documentation, and structure rules only in touched logical blocks.
1538. Validate behavior and explain any intentional exceptions allowed by the triggered references.
154
155## Skill Coordination
156
157- Apply this skill together with the most relevant language/framework skill when available.
158- Treat this skill as a companion baseline, not as a replacement for the
159 primary implementation or workflow skill.
160- Treat syntax, runtime, and framework correctness as primary constraints.
161- Do not treat formatter preference or familiar house style as a valid reason to violate the alignment contract.
162- Prefer code and naming to carry mechanics, then use docs and comments for
163 contract, rationale, and non-obvious constraints.
164
165## Policy Versus Defaults
166
167- In this repository, the alignment contract and triggered-reference workflow are repository policy when `ub-quality` is loaded.
168- Many language/framework recommendations coordinated through sibling skills are strong defaults, not universal portability requirements.
169- Treat volatile setup recipes as freshness-review candidates first, not as automatic blockers, unless the repository explicitly promotes them to policy.
170
171## Output Requirements
172
173When generating or modifying code:
174
1751. Include concise pros/cons and a recommendation for meaningful implementation
176 choices.
1772. Keep solutions simple and avoid overengineering.
1783. Preserve existing behavior unless change is explicitly requested.
1794. Call out any intentionally retained technical debt or deferred cleanup.
1805. Favor high-signal documentation over broad narration, especially in shared
181 guidance and heavily reused code.
1826. Make user-facing explanations easy to scan before deep reading.
1837. Match the structure to the information shape instead of defaulting to dense
184 prose or oversized tables.
185
186## Completion Gate
187
188Before finalizing:
189
190- Check every touched eligible separator block.
191- Treat touched `<style>` and `<script>` content as native CSS and JavaScript surfaces.
192- Expand dense multiline-capable structures (for example literals, argument lists, and config/data blocks) into one-item-per-line form when required by `references/formatting-alignment.md`, then align eligible entries.
193- Align separators into one column using the longest-left-token rule from `references/formatting-alignment.md`.
194- Confirm no unrelated blocks were normalized.
195- If any eligible block remains unaligned, the edit is incomplete unless a named exception from `references/formatting-alignment.md` applies.
196- Ensure special comment tags and `AGENT_TODO` handling policy are respected.
197- Expose the answer or recommendation early in user-facing responses.
198- Use headings, bullets, steps, tables, or fallback blocks only when they
199 improve scanability for the information shape.
200- Confirm list items stay parallel and concise.
201- Confirm any table adds clarity rather than width or density problems.
202- If a comparison table became too wide or text-heavy, convert it to a stacked
203 fallback structure instead of forcing the grid.
204- Keep brief answers brief.