@esquadrao/cli 0.0.0-stage → 1.6.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/LICENSE +21 -0
- package/README.md +366 -2
- package/assets/fonts/Anton-Regular.ttf +0 -0
- package/assets/fonts/BebasNeue-Regular.ttf +0 -0
- package/assets/fonts/OFL.txt +93 -0
- package/assets/fonts/Poppins-Bold.ttf +0 -0
- package/assets/fonts/README.md +13 -0
- package/bin/cli.js +126 -0
- package/package.json +58 -4
- package/scripts/ast_slice.js +73 -0
- package/scripts/cutout.py +197 -0
- package/scripts/dag_validator.js +78 -0
- package/scripts/lint.js +43 -0
- package/scripts/merkle_verify.js +83 -0
- package/scripts/wcag_check.js +77 -0
- package/skill-audit/SKILL.md +42 -0
- package/skill-audit/references/merkle-ledger-spec.md +27 -0
- package/skill-audit/references/receipt-ed25519-verification.md +17 -0
- package/skill-audit/references/time-travel-replay.md +10 -0
- package/skill-code-reviewer/SKILL.md +40 -0
- package/skill-context/SKILL.md +44 -0
- package/skill-context/references/ast-virtualization.md +10 -0
- package/skill-context/references/openapi-contract-synthesis.md +10 -0
- package/skill-engineering-manager/SKILL.md +40 -0
- package/skill-media-producer/SKILL.md +328 -0
- package/skill-media-producer/references/caption-templates.md +194 -0
- package/skill-media-producer/references/composicoes-especiais.md +99 -0
- package/skill-media-producer/references/configuracao-inicial.md +239 -0
- package/skill-media-producer/references/corte-podcast-3-niveis.md +179 -0
- package/skill-media-producer/references/llm-agent-guide.md +231 -0
- package/skill-orchestrate/SKILL.md +49 -0
- package/skill-orchestrate/references/mission-lifecycle.md +36 -0
- package/skill-orchestrate/references/swarm-coordination.md +33 -0
- package/skill-pipeline/SKILL.md +42 -0
- package/skill-pipeline/references/auto-healing-patterns.md +17 -0
- package/skill-pipeline/references/dag-decomposition-rules.md +18 -0
- package/skill-pipeline/references/topological-waves.md +16 -0
- package/skill-product-manager/SKILL.md +40 -0
- package/skill-qa-engineer/SKILL.md +40 -0
- package/skill-review/SKILL.md +46 -0
- package/skill-review/references/anti-slop-patterns.md +17 -0
- package/skill-review/references/dual-blind-adjudication.md +15 -0
- package/skill-review/references/voice-calibration.md +10 -0
- package/skill-security-engineer/SKILL.md +40 -0
- package/skill-software-architect/SKILL.md +40 -0
- package/skill-software-engineer/SKILL.md +40 -0
- package/skill-sre-engineer/SKILL.md +40 -0
- package/skill-system-analyst/SKILL.md +40 -0
- package/skill-tech-lead/SKILL.md +40 -0
- package/skill-technical-writer/SKILL.md +40 -0
- package/skill-ui/SKILL.md +45 -0
- package/skill-ui/references/design-tokens-spec.md +19 -0
- package/skill-ui/references/visual-tdd-methodology.md +10 -0
- package/skill-ui/references/wcag-target-sizes.md +9 -0
- package/src/captionTemplates.js +285 -0
- package/src/commands/onboard.js +618 -0
- package/src/commands/role.js +119 -0
- package/src/commands/setup.js +174 -0
- package/src/commands/studio.js +1822 -0
- package/src/roles/authority.js +129 -0
- package/src/roles/codeReviewer.js +65 -0
- package/src/roles/engineeringManager.js +53 -0
- package/src/roles/index.js +80 -0
- package/src/roles/mediaProducer.js +223 -0
- package/src/roles/productManager.js +50 -0
- package/src/roles/qaEngineer.js +54 -0
- package/src/roles/securityEngineer.js +53 -0
- package/src/roles/softwareArchitect.js +58 -0
- package/src/roles/softwareEngineer.js +76 -0
- package/src/roles/sreEngineer.js +60 -0
- package/src/roles/systemAnalyst.js +45 -0
- package/src/roles/techLead.js +46 -0
- package/src/roles/technicalWriter.js +46 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-qa-engineer
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Validate operational criteria, execute end-to-end acceptance gates, and certify releases."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# QA Engineer
|
|
9
|
+
|
|
10
|
+
Execute comprehensive acceptance verification against all declared operational criteria before production sign-off.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Final release gate verification before shipping a milestone or PR.
|
|
15
|
+
- Validating that all success criteria declared by product management are satisfied.
|
|
16
|
+
- Ensuring test coverage, performance benchmarks, and zero regressions.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Modifying application source code (strictly read-only role).
|
|
21
|
+
- Synthesizing initial requirements contracts (`skill-product-manager`).
|
|
22
|
+
- Token context compression (`skill-context`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via `esquadrao role`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. View QA role capabilities
|
|
30
|
+
esquadrao role info qa-engineer
|
|
31
|
+
|
|
32
|
+
# 2. Generate release acceptance prompt
|
|
33
|
+
esquadrao role prompt qa-engineer "Evaluate test suite results against release criteria"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Strictly read-only role; cannot mutate project source files.
|
|
39
|
+
- Deliver definitive, binary verdicts: `APPROVED` or `REJECTED`.
|
|
40
|
+
- Every approved criterion must reference concrete automated test output or observed execution evidence.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-review
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Perform adversarial dual-blind code review, anti-slop pattern linting, and voice calibration."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Agent Review
|
|
9
|
+
|
|
10
|
+
Perform dual-blind peer review, filter out AI code slop, and enforce rigorous engineering standards.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Pre-merge verification of git branches or patches.
|
|
15
|
+
- Detecting AI boilerplate, dead code, and speculative abstractions.
|
|
16
|
+
- Calibrating technical tone and adherence to project conventions.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Merkle block verification (`skill-audit`).
|
|
21
|
+
- Generating AST outlines (`skill-context`).
|
|
22
|
+
- Scheduling multi-wave jobs (`skill-pipeline`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via git and local test runners:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. Review changed diff
|
|
30
|
+
git diff main...HEAD
|
|
31
|
+
|
|
32
|
+
# 2. Run test suites and linting
|
|
33
|
+
npm run lint
|
|
34
|
+
npm test
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## UX & Operational Rules
|
|
38
|
+
|
|
39
|
+
- Reviews must cite specific file and line numbers.
|
|
40
|
+
- Reject boilerplate such as unused interfaces, empty catch blocks, or decorative comments.
|
|
41
|
+
|
|
42
|
+
## References
|
|
43
|
+
|
|
44
|
+
- Anti-slop patterns: [references/anti-slop-patterns.md](references/anti-slop-patterns.md)
|
|
45
|
+
- Dual-blind adjudication: [references/dual-blind-adjudication.md](references/dual-blind-adjudication.md)
|
|
46
|
+
- Voice calibration: [references/voice-calibration.md](references/voice-calibration.md)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Anti-Slop Patterns Specification
|
|
2
|
+
|
|
3
|
+
Identifies and removes unnecessary abstractions and defensive boilerplate in AI-generated code.
|
|
4
|
+
|
|
5
|
+
## Slop Indicators
|
|
6
|
+
|
|
7
|
+
1. **Premature Abstraction**:
|
|
8
|
+
- Single-use interfaces, abstract base classes with only one child, factory functions wrapping simple constructors.
|
|
9
|
+
2. **Defensive Ghost Logic**:
|
|
10
|
+
- Checking for null/undefined on values already validated or guaranteed by types.
|
|
11
|
+
- Catch blocks that catch generic errors and swallow them or log redundant warnings.
|
|
12
|
+
3. **Comment Slop**:
|
|
13
|
+
- Comments repeating the obvious code line (e.g. `// increment i by 1`).
|
|
14
|
+
- Placeholder TODOs without clear ownership or tracking.
|
|
15
|
+
|
|
16
|
+
## Standard
|
|
17
|
+
Write the minimum code that satisfies the requirement. Delete before adding.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Dual-Blind Adjudication Specification
|
|
2
|
+
|
|
3
|
+
Methodology for impartial adversarial review of code and design proposals.
|
|
4
|
+
|
|
5
|
+
## Adjudication Protocol
|
|
6
|
+
|
|
7
|
+
1. **Independent Evaluation**: Reviewer assesses the pull request or diff without author context or commit narrative.
|
|
8
|
+
2. **Adversarial Probing**: Actively search for:
|
|
9
|
+
- Untested edge conditions (null, boundary numbers, network timeouts).
|
|
10
|
+
- Leaked credentials or unescaped user inputs.
|
|
11
|
+
- Resource leaks (unclosed streams, uncleared timers).
|
|
12
|
+
3. **Verdict Categories**:
|
|
13
|
+
- `APPROVED`: Patch passes all constraints and tests.
|
|
14
|
+
- `NEEDS_REVISION`: Actionable defects found with concrete reproduction steps.
|
|
15
|
+
- `REJECTED`: Fundamental architectural regression.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Voice Calibration Specification
|
|
2
|
+
|
|
3
|
+
Enforces direct, affirmative, and concise technical communication.
|
|
4
|
+
|
|
5
|
+
## Tone Guidelines
|
|
6
|
+
|
|
7
|
+
- **Direct Answers First**: State the conclusion or result in the opening sentence.
|
|
8
|
+
- **Affirmative Phrasing**: State facts clearly without unnecessary contrast framing ("X, not Y").
|
|
9
|
+
- **Eliminate Stock Fillers**: Avoid words like "delve", "leverage", "crucial", or "it is worth noting".
|
|
10
|
+
- **Evidence-Based Claims**: Assert that something is functional only when tool output or tests prove it.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-security-engineer
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Conduct adversarial security audits, threat modeling, vulnerability assessments, and boundary validation."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Security Engineer
|
|
9
|
+
|
|
10
|
+
Examine system designs adversarially to identify vulnerabilities, privilege leaks, and untrusted boundaries.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Pre-implementation critique of architecture specifications.
|
|
15
|
+
- Threat modeling against injection, SSRF, token leakage, or path traversal.
|
|
16
|
+
- Verifying fail-closed behavior at trust boundaries.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Authoring feature code (`skill-software-engineer`).
|
|
21
|
+
- Planning team roadmaps (`skill-engineering-manager`).
|
|
22
|
+
- Color contrast ratio audits (`skill-ui`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via `esquadrao role`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. View security engineer role profile
|
|
30
|
+
esquadrao role info security-engineer
|
|
31
|
+
|
|
32
|
+
# 2. Generate adversarial audit prompt
|
|
33
|
+
esquadrao role prompt security-engineer "Evaluate token storage in local credentials file"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Strictly read-only role; cannot modify production code.
|
|
39
|
+
- Categorize all findings by severity (`INFO`, `MINOR`, `MAJOR`, `BLOCKER`).
|
|
40
|
+
- Any `BLOCKER` finding triggers an immediate veto until mitigated.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-software-architect
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Decompose complex systems, define strict interface boundaries, establish invariants, and author implementation contracts."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Principal Software Architect
|
|
9
|
+
|
|
10
|
+
Design robust software systems, define immutable boundaries, and enforce implementation contracts.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- High-level system design and multi-component decomposition.
|
|
15
|
+
- Authoring implementation contracts with strict `allowed_changes` and `invariants`.
|
|
16
|
+
- Establishing deterministic rollback criteria before high-risk changes.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Routine bug fixing or single-file line edits (`skill-software-engineer`).
|
|
21
|
+
- Performing visual accessibility audits (`skill-ui`).
|
|
22
|
+
- Cryptographic Merkle chain audits (`skill-audit`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via `esquadrao role`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. View architectural role capabilities
|
|
30
|
+
esquadrao role info software-architect
|
|
31
|
+
|
|
32
|
+
# 2. Generate prompt for technical specification design
|
|
33
|
+
esquadrao role prompt software-architect "Design zero-dependency RPC client"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Require models with explicit reasoning capabilities.
|
|
39
|
+
- Always provide explicit, concrete file paths in `allowed_changes` (never wildcards or globs).
|
|
40
|
+
- Define measurable invariants and observable rollback conditions for every architectural change.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-software-engineer
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Implement production code within strictly authorized scope, author focused unit tests, and deliver clean atomic patches."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Senior Software Engineer
|
|
9
|
+
|
|
10
|
+
Deliver production code, minimal working diffs, and accompanying unit tests with zero unnecessary dependencies.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Writing feature code, bug fixes, and atomic refactoring units.
|
|
15
|
+
- Creating native unit tests that prove correctness without heavyweight frameworks.
|
|
16
|
+
- Integrating verified APIs and CLI entry points.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Independent review of own code (enforce anti-self-review with `skill-code-reviewer`).
|
|
21
|
+
- Authoring release-level marketing documents (`skill-technical-writer`).
|
|
22
|
+
- Architectural vetoes (`skill-tech-lead`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via `esquadrao role`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. View role configuration
|
|
30
|
+
esquadrao role info software-engineer
|
|
31
|
+
|
|
32
|
+
# 2. Generate calibrated implementation prompt
|
|
33
|
+
esquadrao role prompt software-engineer "Implement zero-dependency AST slicer in Node.js"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Lazy Senior Philosophy: native stdlib first, shortest working diff wins, no unrequested dependencies.
|
|
39
|
+
- Confine all file modifications strictly to authorized paths.
|
|
40
|
+
- Leave at least one runnable automated test behind for every non-trivial change.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-sre-engineer
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Perform deep root-cause analysis on failing test runs, runtime crashes, and synthesize targeted fix contracts."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Site Reliability Engineer
|
|
9
|
+
|
|
10
|
+
Diagnose test failures, analyze crash traces, and establish deterministic fix contracts.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Analyzing persistent test failures or unexpected runtime exceptions.
|
|
15
|
+
- Formulating structured root-cause analysis (RCA) documents.
|
|
16
|
+
- Generating targeted fix contracts with explicit boundary invariants.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Generating unreviewed speculative code patches (`skill-software-engineer`).
|
|
21
|
+
- Auditing UI touch target sizes (`skill-ui`).
|
|
22
|
+
- Defining business requirements (`skill-product-manager`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via `esquadrao role`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. View SRE role configuration
|
|
30
|
+
esquadrao role info sre-engineer
|
|
31
|
+
|
|
32
|
+
# 2. Generate debugging prompt
|
|
33
|
+
esquadrao role prompt sre-engineer "Diagnose AssertionError in merkle_verify.js: hash mismatch"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Require reasoning models capable of deductive fault isolation.
|
|
39
|
+
- Focus diagnosis on underlying causes rather than masking symptoms with catch-all blocks.
|
|
40
|
+
- Output explicit invariant lists that must be proven before declaring an issue fixed.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-system-analyst
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Navigate codebases, extract module dependency graphs, map architectural boundaries, and identify touchpoints."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Systems Analyst
|
|
9
|
+
|
|
10
|
+
Explore repository architecture, map structural dependencies, and isolate relevant components.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Initial repository reconnaissance on unfamiliar codebases.
|
|
15
|
+
- Identifying entry points, routes, and touched modules for a given task.
|
|
16
|
+
- Generating repository maps and dependency graphs without modifying state.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Modifying or writing production code (strictly read-only role).
|
|
21
|
+
- Running speculative test mutations.
|
|
22
|
+
- Authoring release documentation (`skill-technical-writer`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via `esquadrao role`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. Inspect role capabilities
|
|
30
|
+
esquadrao role info system-analyst
|
|
31
|
+
|
|
32
|
+
# 2. Generate calibrated reconnaissance prompt
|
|
33
|
+
esquadrao role prompt system-analyst "Map authentication flows in src/"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Strictly read-only: mutating commands and file writes are forbidden.
|
|
39
|
+
- Output concise summaries citing exact file paths and module dependencies.
|
|
40
|
+
- Minimize token overhead by prioritizing AST outlines over full-file dumps.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-tech-lead
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Arbitrate architectural disagreements, evaluate trade-offs between competing proposals, and govern technical standards."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Technical Lead
|
|
9
|
+
|
|
10
|
+
Arbitrate architectural disputes, evaluate technical trade-offs, and maintain engineering velocity.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Resolving disputes between competing technical proposals.
|
|
15
|
+
- Evaluating long-term maintenance costs versus short-term delivery velocity.
|
|
16
|
+
- Establishing binding engineering standards and API conventions.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Direct feature code generation (`skill-software-engineer`).
|
|
21
|
+
- Performing adversarial security penetration audits (`skill-security-engineer`).
|
|
22
|
+
- AST token reduction (`skill-context`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via `esquadrao role`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. View tech lead specification
|
|
30
|
+
esquadrao role info tech-lead
|
|
31
|
+
|
|
32
|
+
# 2. Generate adjudication prompt
|
|
33
|
+
esquadrao role prompt tech-lead "Arbitrate between WebSockets vs SSE for agent notifications"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Base adjudications on empirical evidence, simplicity, and project constraints.
|
|
39
|
+
- State technical trade-offs clearly without bias towards speculative complexity.
|
|
40
|
+
- Reject unrequested abstractions and premature generalizations.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-technical-writer
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Author technical documentation, API specs, architectural decision records (ADRs), and user guides."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Technical Writer
|
|
9
|
+
|
|
10
|
+
Author clear, accurate, and concise developer documentation, API contracts, and release summaries.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Writing or updating `README.md`, developer guides, or API references.
|
|
15
|
+
- Documenting Architectural Decision Records (ADRs) and design trade-offs.
|
|
16
|
+
- Generating release notes and changelog entries from completed pull requests.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Implementing backend logic or tests (`skill-software-engineer`).
|
|
21
|
+
- Decomposing execution tasks into topological waves (`skill-pipeline`).
|
|
22
|
+
- Diagnosing crash logs (`skill-sre-engineer`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via `esquadrao role`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. View technical writer profile
|
|
30
|
+
esquadrao role info technical-writer
|
|
31
|
+
|
|
32
|
+
# 2. Generate documentation prompt
|
|
33
|
+
esquadrao role prompt technical-writer "Document new CLI commands and flags in README.md"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Keep explanations active, concise, and focused on practical developer workflows.
|
|
39
|
+
- Confine file writes to documentation directories (`docs/`, `*.md`).
|
|
40
|
+
- Ensure all command examples and code snippets are runnable and verified.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-ui
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: "Perform headless visual TDD, WCAG 2.1 accessibility audits, and design token validation."
|
|
5
|
+
allowed-tools: ["terminal"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Agent UI
|
|
9
|
+
|
|
10
|
+
Perform automated WCAG 2.1 accessibility auditing, interactive target size checks, and visual TDD.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Auditing color contrast ratios (WCAG 2.1 AA / AAA).
|
|
15
|
+
- Validating interactive touch target dimensions (minimum 44x44px).
|
|
16
|
+
- Checking semantic DOM hierarchies and design tokens.
|
|
17
|
+
|
|
18
|
+
## NOT for
|
|
19
|
+
|
|
20
|
+
- Merkle ledger verification (`skill-audit`).
|
|
21
|
+
- DAG wave scheduling (`skill-pipeline`).
|
|
22
|
+
- Token context compression (`skill-context`).
|
|
23
|
+
|
|
24
|
+
## Workflow & CLI
|
|
25
|
+
|
|
26
|
+
Execute via local script:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 1. Audit color contrast and touch target size
|
|
30
|
+
node scripts/wcag_check.js --fg="#000000" --bg="#ffffff" --width=48 --height=48
|
|
31
|
+
|
|
32
|
+
# 2. Output WCAG audit in JSON format
|
|
33
|
+
node scripts/wcag_check.js --fg="#767676" --bg="#ffffff" --json
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## UX & Operational Rules
|
|
37
|
+
|
|
38
|
+
- Normal text requires at least 4.5:1 contrast ratio for WCAG AA compliance.
|
|
39
|
+
- Interactive elements must maintain at least 44x44px bounding boxes.
|
|
40
|
+
|
|
41
|
+
## References
|
|
42
|
+
|
|
43
|
+
- Design tokens specification: [references/design-tokens-spec.md](references/design-tokens-spec.md)
|
|
44
|
+
- Visual TDD methodology: [references/visual-tdd-methodology.md](references/visual-tdd-methodology.md)
|
|
45
|
+
- WCAG target sizes: [references/wcag-target-sizes.md](references/wcag-target-sizes.md)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Design Tokens Specification
|
|
2
|
+
|
|
3
|
+
Hierarchical structure for consistent, accessible UI design tokens.
|
|
4
|
+
|
|
5
|
+
## Token Categories
|
|
6
|
+
|
|
7
|
+
1. **Colors**:
|
|
8
|
+
- `color-surface-bg`: Background surface color.
|
|
9
|
+
- `color-surface-fg`: Foreground high-contrast text color.
|
|
10
|
+
- `color-interactive-primary`: Accent and primary button color.
|
|
11
|
+
2. **Spacing & Sizing**:
|
|
12
|
+
- `space-xs`: 4px
|
|
13
|
+
- `space-sm`: 8px
|
|
14
|
+
- `space-md`: 16px
|
|
15
|
+
- `space-lg`: 24px
|
|
16
|
+
- `target-min`: 44px (minimum touch target)
|
|
17
|
+
3. **Typography**:
|
|
18
|
+
- `font-size-base`: 16px (rem 1.0)
|
|
19
|
+
- `line-height-base`: 1.5
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Visual TDD Methodology
|
|
2
|
+
|
|
3
|
+
Test-driven design flow verifying headless accessibility and visual rendering.
|
|
4
|
+
|
|
5
|
+
## Development Cycle
|
|
6
|
+
|
|
7
|
+
1. **Contract Definition**: Define required contrast ratios, target dimensions, and token variables.
|
|
8
|
+
2. **Failing Audit (RED)**: Run `scripts/wcag_check.js` against preliminary styles; verify failure flags.
|
|
9
|
+
3. **Implementation (GREEN)**: Apply CSS values meeting token constraints (e.g. `min-width: 44px; min-height: 44px`).
|
|
10
|
+
4. **Refactoring**: Consolidate repetitive utility rules into reusable component styles while maintaining GREEN check.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# WCAG 2.1 Touch Target Sizing
|
|
2
|
+
|
|
3
|
+
Success Criterion 2.5.5 (Target Size) requirements for mobile and desktop interfaces.
|
|
4
|
+
|
|
5
|
+
## Minimum Dimensions
|
|
6
|
+
|
|
7
|
+
- Primary touch targets must measure at least **44 by 44 CSS pixels**.
|
|
8
|
+
- In-line text links within paragraphs are exempt provided line height prevents accidental activation.
|
|
9
|
+
- Surrounding touch padding may count toward the 44px boundary.
|