@williambeto/ai-workflow 2.3.0 → 2.3.2
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/AGENTS.md +27 -0
- package/CHANGELOG.md +30 -0
- package/README.md +14 -10
- package/dist-assets/agents/astra.md +74 -45
- package/dist-assets/agents/atlas.md +110 -152
- package/dist-assets/agents/nexus.md +64 -19
- package/dist-assets/agents/orion.md +72 -27
- package/dist-assets/agents/phoenix.md +64 -19
- package/dist-assets/agents/sage.md +67 -36
- package/dist-assets/commands/atlas.md +66 -6
- package/dist-assets/commands/audit.md +62 -4
- package/dist-assets/commands/deploy.md +66 -5
- package/dist-assets/commands/discover.md +72 -4
- package/dist-assets/commands/implement.md +66 -18
- package/dist-assets/commands/optimize-tokens.md +60 -4
- package/dist-assets/commands/plan.md +64 -4
- package/dist-assets/commands/release.md +76 -5
- package/dist-assets/commands/run.md +62 -16
- package/dist-assets/commands/spec-create.md +66 -4
- package/dist-assets/commands/spec-implement.md +68 -4
- package/dist-assets/commands/spec-review.md +63 -4
- package/dist-assets/commands/update-memory.md +62 -4
- package/dist-assets/commands/validate.md +70 -6
- package/dist-assets/skills/architecture/SKILL.md +62 -7
- package/dist-assets/skills/backend-development/SKILL.md +62 -7
- package/dist-assets/skills/deployment/SKILL.md +62 -7
- package/dist-assets/skills/design-principles/SKILL.md +59 -7
- package/dist-assets/skills/documentation/SKILL.md +61 -7
- package/dist-assets/skills/frontend-development/SKILL.md +62 -7
- package/dist-assets/skills/full-stack-development/SKILL.md +62 -7
- package/dist-assets/skills/optimize-tokens/SKILL.md +61 -7
- package/dist-assets/skills/pr-workflow/SKILL.md +65 -7
- package/dist-assets/skills/product-discovery/SKILL.md +81 -7
- package/dist-assets/skills/product-planning/SKILL.md +62 -7
- package/dist-assets/skills/project-memory/SKILL.md +55 -22
- package/dist-assets/skills/prompt-engineer/SKILL.md +59 -7
- package/dist-assets/skills/qa-workflow/SKILL.md +72 -7
- package/dist-assets/skills/refactoring/SKILL.md +68 -7
- package/dist-assets/skills/release-workflow/SKILL.md +72 -7
- package/dist-assets/skills/spec-driven-development/SKILL.md +75 -7
- package/dist-assets/skills/technical-leadership/SKILL.md +61 -7
- package/dist-assets/skills/ui-ux-design/SKILL.md +60 -7
- package/docs/compatibility/provider-usage.md +46 -0
- package/docs/compatibility/runtime-matrix.md +31 -0
- package/docs/getting-started/DESKTOP_PROMPT.md +52 -0
- package/docs/getting-started/quickstart.md +17 -0
- package/docs/getting-started/upgrading-to-v2.md +62 -0
- package/package.json +10 -3
- package/src/commands/execute.js +10 -1
- package/src/core/delegation-controller.js +72 -13
- package/src/core/execution-planner.js +2 -3
- package/src/core/request-classifier.js +15 -5
- package/src/core/request-router.js +289 -0
- package/src/core/runtime/opencode-adapter.js +38 -5
- package/docs/releases/v2.3.0-release-decision.md +0 -35
|
@@ -1,10 +1,68 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: update-memory
|
|
3
|
-
description:
|
|
3
|
+
description: Update durably discoverable project memory with decisions and lessons
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Update Memory Command PromptContract
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Role
|
|
9
|
+
Coordinates project memory maintenance under Nexus.
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
## Objective
|
|
12
|
+
Update discoverable project memory with key decisions, conventions, and lessons learned.
|
|
13
|
+
|
|
14
|
+
## Trusted context
|
|
15
|
+
- Project memory configuration files
|
|
16
|
+
- Git history
|
|
17
|
+
- Past revalidation logs
|
|
18
|
+
|
|
19
|
+
## User input / arguments
|
|
20
|
+
- Natural-language decision details
|
|
21
|
+
- Target memory files
|
|
22
|
+
|
|
23
|
+
## Preconditions
|
|
24
|
+
- Active branch is writable (not on protected main if writing directly)
|
|
25
|
+
|
|
26
|
+
## Constraints
|
|
27
|
+
- Do not overwrite historical correction logs.
|
|
28
|
+
- Keep memory entries concise and relevant.
|
|
29
|
+
- Do not claim updates without modified file evidence.
|
|
30
|
+
|
|
31
|
+
## Allowed tools
|
|
32
|
+
- read/write memory files
|
|
33
|
+
- update ADR logs
|
|
34
|
+
- validate config schema
|
|
35
|
+
|
|
36
|
+
## Forbidden actions
|
|
37
|
+
- editing source code files
|
|
38
|
+
- bypassing configuration schemas
|
|
39
|
+
|
|
40
|
+
## Workflow steps
|
|
41
|
+
1. Parse new decision details.
|
|
42
|
+
2. Update memory files (.agents/config or target file).
|
|
43
|
+
3. Validate config files against structural schema.
|
|
44
|
+
4. Log memory updates to ledger.
|
|
45
|
+
|
|
46
|
+
## Safety gates
|
|
47
|
+
- Verify configuration file integrity before writing.
|
|
48
|
+
|
|
49
|
+
## Validation requirements
|
|
50
|
+
- Verify modified files conform to configuration schemas.
|
|
51
|
+
|
|
52
|
+
## Expected output schema
|
|
53
|
+
Output must include:
|
|
54
|
+
- Memory files updated
|
|
55
|
+
- Decision entries added
|
|
56
|
+
- Schema check results
|
|
57
|
+
- Decision: COMPLETED | FAILED
|
|
58
|
+
|
|
59
|
+
## Evidence required
|
|
60
|
+
- configuration file diffs
|
|
61
|
+
- schema validation logs
|
|
62
|
+
|
|
63
|
+
## Failure behavior
|
|
64
|
+
- Log memory update failure to ledger, restore backup, and exit.
|
|
65
|
+
|
|
66
|
+
## Stop conditions
|
|
67
|
+
- configuration file corruption detected
|
|
68
|
+
- required input missing
|
|
@@ -1,12 +1,76 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
name: validate
|
|
3
|
+
description: Run codebase validations and compile evidence reports
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Validate
|
|
6
|
+
# Validate Command PromptContract
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Role
|
|
9
|
+
Coordinates verification, audits, and quality gate checks under Sage.
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
## Objective
|
|
12
|
+
Execute validation checks and compile an evidence report showing quality status.
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
## Trusted context
|
|
15
|
+
- Codebase source files
|
|
16
|
+
- Test suites configurations
|
|
17
|
+
- Git diff status
|
|
18
|
+
|
|
19
|
+
## User input / arguments
|
|
20
|
+
- Validation scope or profile settings
|
|
21
|
+
|
|
22
|
+
## Preconditions
|
|
23
|
+
- Read access to codebase files and tests
|
|
24
|
+
|
|
25
|
+
## Constraints
|
|
26
|
+
- Do not modify source code during validation.
|
|
27
|
+
- All validation commands must exit 0.
|
|
28
|
+
- Do not claim validation success without evidence log.
|
|
29
|
+
|
|
30
|
+
## Allowed tools
|
|
31
|
+
- execute test commands
|
|
32
|
+
- run code linters
|
|
33
|
+
- check schema compliance
|
|
34
|
+
- compile validation report
|
|
35
|
+
|
|
36
|
+
## Forbidden actions
|
|
37
|
+
- editing source files
|
|
38
|
+
- bypassing quality check failures
|
|
39
|
+
- force committing files
|
|
40
|
+
|
|
41
|
+
## Workflow steps
|
|
42
|
+
1. Identify all changed files and classify risk level.
|
|
43
|
+
2. Determine validation strategy (unit, E2E, schema checks).
|
|
44
|
+
3. Execute validation commands.
|
|
45
|
+
4. Capture command outputs, exit codes, and findings.
|
|
46
|
+
5. Compile validation report.
|
|
47
|
+
|
|
48
|
+
## Safety gates
|
|
49
|
+
- Enforce strict read-only execution.
|
|
50
|
+
|
|
51
|
+
## Validation requirements
|
|
52
|
+
- Execute all checks matching validation checklist.
|
|
53
|
+
|
|
54
|
+
## Expected output schema
|
|
55
|
+
Output must include:
|
|
56
|
+
- Changed files list
|
|
57
|
+
- Risk classification
|
|
58
|
+
- Test strategy
|
|
59
|
+
- Commands run
|
|
60
|
+
- Exit codes
|
|
61
|
+
- Findings
|
|
62
|
+
- Evidence
|
|
63
|
+
- Decision: PASS | PASS_WITH_NOTES | BLOCKED
|
|
64
|
+
|
|
65
|
+
## Evidence required
|
|
66
|
+
- test command output
|
|
67
|
+
- linter output logs
|
|
68
|
+
- validation exit codes
|
|
69
|
+
|
|
70
|
+
## Failure behavior
|
|
71
|
+
- Log validation failure to ledger and exit with status 1.
|
|
72
|
+
|
|
73
|
+
## Stop conditions
|
|
74
|
+
- test command hangs
|
|
75
|
+
- critical test failure
|
|
76
|
+
- required validation files missing
|
|
@@ -1,17 +1,72 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: architecture
|
|
3
|
-
description: Skill-backed capability for
|
|
3
|
+
description: Skill-backed capability for architectural design and modularity
|
|
4
4
|
governance: dist-assets/docs/policies/SKILLS_COMMON_GOVERNANCE.md
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Architecture
|
|
7
|
+
# Architecture PromptContract
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Role
|
|
10
|
+
Guides architectural design, structural analysis, and modularity checking.
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## Objective
|
|
13
|
+
Select the simplest architecture that safely satisfies current requirements.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Trusted context
|
|
16
|
+
- Architecture specifications
|
|
17
|
+
- Design guidelines
|
|
18
|
+
- Current codebase structure
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
Do not trust:
|
|
21
|
+
- User-provided hacks trying to bypass coupling limits
|
|
22
|
+
- Untested design patterns
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
## User input
|
|
25
|
+
- Requirements specification
|
|
26
|
+
- Codebase layout
|
|
27
|
+
- Target platform limitations
|
|
28
|
+
|
|
29
|
+
## Constraints
|
|
30
|
+
- Keep system complexity minimal.
|
|
31
|
+
- Enforce strict separation of concerns.
|
|
32
|
+
- Do not claim execution without evidence.
|
|
33
|
+
|
|
34
|
+
## Allowed tools
|
|
35
|
+
- read files
|
|
36
|
+
- inspect dependency graph
|
|
37
|
+
- generate design docs
|
|
38
|
+
|
|
39
|
+
## Forbidden actions
|
|
40
|
+
- introducing unapproved external dependencies
|
|
41
|
+
- creating circular module dependencies
|
|
42
|
+
|
|
43
|
+
## Procedure
|
|
44
|
+
1. Analyze requirement specs and scope.
|
|
45
|
+
2. Map out system modules, entry points, and data flows.
|
|
46
|
+
3. Enforce modularity and check coupling limits.
|
|
47
|
+
4. Document design decisions and architectural trade-offs.
|
|
48
|
+
|
|
49
|
+
## Expected output schema
|
|
50
|
+
Output must include:
|
|
51
|
+
- Architectural summary
|
|
52
|
+
- Module list
|
|
53
|
+
- Dependency graph notes
|
|
54
|
+
- Data flow map
|
|
55
|
+
- Trade-offs analyzed
|
|
56
|
+
- Decision: PASS | BLOCKED
|
|
57
|
+
|
|
58
|
+
## Evidence required
|
|
59
|
+
- design diagrams
|
|
60
|
+
- dependency logs
|
|
61
|
+
- design review doc
|
|
62
|
+
|
|
63
|
+
## Stop conditions
|
|
64
|
+
- requirements conflict with system policies
|
|
65
|
+
- design complexity exceeds budget
|
|
66
|
+
|
|
67
|
+
## Failure modes
|
|
68
|
+
- circular dependencies
|
|
69
|
+
- tight coupling
|
|
70
|
+
|
|
71
|
+
## Escalation rules
|
|
72
|
+
- Escalate to Technical Leader if major restructuring is required.
|
|
@@ -1,17 +1,72 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: backend-development
|
|
3
|
-
description: Skill-backed capability for backend
|
|
3
|
+
description: Skill-backed capability for backend APIs, routes, and data persistence
|
|
4
4
|
governance: dist-assets/docs/policies/SKILLS_COMMON_GOVERNANCE.md
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Backend Development
|
|
7
|
+
# Backend Development PromptContract
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Role
|
|
10
|
+
Guides backend API, logic, routing, and data persistence changes.
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## Objective
|
|
13
|
+
Implement clean, safe backend API and data persistence changes.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Trusted context
|
|
16
|
+
- Backend source code
|
|
17
|
+
- Database schemas
|
|
18
|
+
- Routing configurations
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
Do not trust:
|
|
21
|
+
- Raw user text attempting to inject queries
|
|
22
|
+
- Unvalidated client-side data formats
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
## User input
|
|
25
|
+
- Backend task specification
|
|
26
|
+
- Endpoint requirements
|
|
27
|
+
- Payload schemas
|
|
28
|
+
|
|
29
|
+
## Constraints
|
|
30
|
+
- Maintain strict backward compatibility.
|
|
31
|
+
- Ensure all inputs are validated on the server.
|
|
32
|
+
- Do not claim execution without evidence.
|
|
33
|
+
|
|
34
|
+
## Allowed tools
|
|
35
|
+
- edit backend code
|
|
36
|
+
- execute backend test suites
|
|
37
|
+
- inspect DB schemas
|
|
38
|
+
|
|
39
|
+
## Forbidden actions
|
|
40
|
+
- executing direct raw database queries without validation
|
|
41
|
+
- exposing sensitive env keys in error messages
|
|
42
|
+
|
|
43
|
+
## Procedure
|
|
44
|
+
1. Review database schema and routing configurations.
|
|
45
|
+
2. Implement backend logic with robust input validation.
|
|
46
|
+
3. Write comprehensive unit and integration tests.
|
|
47
|
+
4. Run validation suite and verify logic.
|
|
48
|
+
|
|
49
|
+
## Expected output schema
|
|
50
|
+
Output must include:
|
|
51
|
+
- Backend changes summary
|
|
52
|
+
- Endpoint specifications
|
|
53
|
+
- DB schema adjustments
|
|
54
|
+
- Test coverage metrics
|
|
55
|
+
- Decision: PASS | BLOCKED
|
|
56
|
+
|
|
57
|
+
## Evidence required
|
|
58
|
+
- API test logs
|
|
59
|
+
- endpoint responses
|
|
60
|
+
- schema diffs
|
|
61
|
+
|
|
62
|
+
## Stop conditions
|
|
63
|
+
- security vulnerability detected
|
|
64
|
+
- test suite fails
|
|
65
|
+
- input validation fails
|
|
66
|
+
|
|
67
|
+
## Failure modes
|
|
68
|
+
- performance bottlenecks
|
|
69
|
+
- connection timeout
|
|
70
|
+
|
|
71
|
+
## Escalation rules
|
|
72
|
+
- Escalate to Technical Leader if breaking changes are required.
|
|
@@ -1,17 +1,72 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: deployment
|
|
3
|
-
description: Skill-backed capability for deployment
|
|
3
|
+
description: Skill-backed capability for deployment planning, environments, and validation
|
|
4
4
|
governance: dist-assets/docs/policies/SKILLS_COMMON_GOVERNANCE.md
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Deployment
|
|
7
|
+
# Deployment PromptContract
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Role
|
|
10
|
+
Guides deployment planning, environments configuration, and post-deploy checks.
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## Objective
|
|
13
|
+
Plan and verify deployment readiness of the package safely.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Trusted context
|
|
16
|
+
- Environment variables
|
|
17
|
+
- Deployment configurations
|
|
18
|
+
- Release verification results
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
Do not trust:
|
|
21
|
+
- Manual state claims without logs
|
|
22
|
+
- Unverified third-party deployment configurations
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
## User input
|
|
25
|
+
- Deployment target environment
|
|
26
|
+
- Environment configurations
|
|
27
|
+
- Staging parameters
|
|
28
|
+
|
|
29
|
+
## Constraints
|
|
30
|
+
- Never deploy unvalidated code.
|
|
31
|
+
- Ensure all env configurations match specs.
|
|
32
|
+
- Do not claim execution without evidence.
|
|
33
|
+
|
|
34
|
+
## Allowed tools
|
|
35
|
+
- check environment
|
|
36
|
+
- run smoke tests
|
|
37
|
+
- read config files
|
|
38
|
+
|
|
39
|
+
## Forbidden actions
|
|
40
|
+
- deploying directly to production without staging validation
|
|
41
|
+
- exposing private keys in logs
|
|
42
|
+
|
|
43
|
+
## Procedure
|
|
44
|
+
1. Validate target environment config.
|
|
45
|
+
2. Run pre-deploy verification scripts.
|
|
46
|
+
3. Execute deployment sequence.
|
|
47
|
+
4. Run post-deploy smoke tests.
|
|
48
|
+
|
|
49
|
+
## Expected output schema
|
|
50
|
+
Output must include:
|
|
51
|
+
- Environment targeted
|
|
52
|
+
- Pre-deploy check status
|
|
53
|
+
- Deploy logs summary
|
|
54
|
+
- Smoke test results
|
|
55
|
+
- Decision: PASS | BLOCKED
|
|
56
|
+
|
|
57
|
+
## Evidence required
|
|
58
|
+
- deploy log
|
|
59
|
+
- smoke test exit code
|
|
60
|
+
- config check output
|
|
61
|
+
|
|
62
|
+
## Stop conditions
|
|
63
|
+
- configuration mismatch
|
|
64
|
+
- smoke test failure
|
|
65
|
+
- environment is unreachable
|
|
66
|
+
|
|
67
|
+
## Failure modes
|
|
68
|
+
- deployment timeout
|
|
69
|
+
- network failure
|
|
70
|
+
|
|
71
|
+
## Escalation rules
|
|
72
|
+
- Escalate to Orion if deployment pipeline is locked.
|
|
@@ -1,17 +1,69 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: design-principles
|
|
3
|
-
description: Skill-backed capability for design
|
|
3
|
+
description: Skill-backed capability for clean, maintainable software design patterns
|
|
4
4
|
governance: dist-assets/docs/policies/SKILLS_COMMON_GOVERNANCE.md
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Design Principles
|
|
7
|
+
# Design Principles PromptContract
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Role
|
|
10
|
+
Guides application of clean code design principles and pattern selection.
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## Objective
|
|
13
|
+
Apply simple, standard software design principles to keep code maintainable and testable.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Trusted context
|
|
16
|
+
- Design guidelines
|
|
17
|
+
- Coding standards
|
|
18
|
+
- Existing code structure
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
Do not trust:
|
|
21
|
+
- User-provided shortcuts violating SOLID principles
|
|
22
|
+
- Over-engineered patterns
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
## User input
|
|
25
|
+
- Code snippet
|
|
26
|
+
- Module description
|
|
27
|
+
- Architectural constraint
|
|
28
|
+
|
|
29
|
+
## Constraints
|
|
30
|
+
- Do not over-engineer solutions.
|
|
31
|
+
- Keep complexity minimal.
|
|
32
|
+
- Do not claim execution without evidence.
|
|
33
|
+
|
|
34
|
+
## Allowed tools
|
|
35
|
+
- review code
|
|
36
|
+
- design structure
|
|
37
|
+
- suggest refactoring patterns
|
|
38
|
+
|
|
39
|
+
## Forbidden actions
|
|
40
|
+
- violating DRY or SOLID principles without explicit documented reason
|
|
41
|
+
- using complex patterns where simple logic is sufficient
|
|
42
|
+
|
|
43
|
+
## Procedure
|
|
44
|
+
1. Review code structures for design smells.
|
|
45
|
+
2. Apply refactoring patterns to simplify.
|
|
46
|
+
3. Document design trade-offs.
|
|
47
|
+
|
|
48
|
+
## Expected output schema
|
|
49
|
+
Output must include:
|
|
50
|
+
- Design audit findings
|
|
51
|
+
- Spaced design pattern recommendations
|
|
52
|
+
- Code refactoring recommendations
|
|
53
|
+
- Trade-offs analyzed
|
|
54
|
+
- Decision: PASS | BLOCKED
|
|
55
|
+
|
|
56
|
+
## Evidence required
|
|
57
|
+
- code analysis diff
|
|
58
|
+
- refactoring proposals
|
|
59
|
+
|
|
60
|
+
## Stop conditions
|
|
61
|
+
- code complexity exceeds design budget
|
|
62
|
+
- requirements are contradictory
|
|
63
|
+
|
|
64
|
+
## Failure modes
|
|
65
|
+
- God object creation
|
|
66
|
+
- tight coupling
|
|
67
|
+
|
|
68
|
+
## Escalation rules
|
|
69
|
+
- Escalate to Technical Leader if major restructuring is required.
|
|
@@ -1,17 +1,71 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: documentation
|
|
3
|
-
description: Skill-backed capability for documentation
|
|
3
|
+
description: Skill-backed capability for writing and verifying technical documentation
|
|
4
4
|
governance: dist-assets/docs/policies/SKILLS_COMMON_GOVERNANCE.md
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Documentation
|
|
7
|
+
# Documentation PromptContract
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Role
|
|
10
|
+
Guides creation, structure, and link verification of technical documentation.
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## Objective
|
|
13
|
+
Ensure documentation is clear, accurate, complete, and up-to-date.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Trusted context
|
|
16
|
+
- Current codebase source
|
|
17
|
+
- Existing guides and readmes
|
|
18
|
+
- API schemas and templates
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
Do not trust:
|
|
21
|
+
- Speculative feature descriptions
|
|
22
|
+
- Hardcoded config references
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
## User input
|
|
25
|
+
- Documentation task request
|
|
26
|
+
- Draft markdown document
|
|
27
|
+
- target file paths
|
|
28
|
+
|
|
29
|
+
## Constraints
|
|
30
|
+
- Ensure all markdown links are valid.
|
|
31
|
+
- Avoid all generic placeholders.
|
|
32
|
+
- Do not claim execution without evidence.
|
|
33
|
+
|
|
34
|
+
## Allowed tools
|
|
35
|
+
- write markdown files
|
|
36
|
+
- execute link validation commands
|
|
37
|
+
- check formatting lint
|
|
38
|
+
|
|
39
|
+
## Forbidden actions
|
|
40
|
+
- leaving incomplete placeholder pages
|
|
41
|
+
- writing broken markdown syntax
|
|
42
|
+
|
|
43
|
+
## Procedure
|
|
44
|
+
1. Identify target audience and scope of documentation.
|
|
45
|
+
2. Write clear, structured markdown content.
|
|
46
|
+
3. Verify all file and external links are valid.
|
|
47
|
+
4. Run markdown lint validator.
|
|
48
|
+
|
|
49
|
+
## Expected output schema
|
|
50
|
+
Output must include:
|
|
51
|
+
- Pages created or updated
|
|
52
|
+
- Structure review findings
|
|
53
|
+
- Link validation status
|
|
54
|
+
- Markdown lint output
|
|
55
|
+
- Decision: PASS | BLOCKED
|
|
56
|
+
|
|
57
|
+
## Evidence required
|
|
58
|
+
- link validator logs
|
|
59
|
+
- markdown lint outputs
|
|
60
|
+
- file tree diffs
|
|
61
|
+
|
|
62
|
+
## Stop conditions
|
|
63
|
+
- documentation lacks required context
|
|
64
|
+
- unresolvable broken links
|
|
65
|
+
|
|
66
|
+
## Failure modes
|
|
67
|
+
- outdated documentation
|
|
68
|
+
- broken links
|
|
69
|
+
|
|
70
|
+
## Escalation rules
|
|
71
|
+
- Escalate to Docs Engineer if design patterns lack documentation.
|
|
@@ -1,17 +1,72 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-development
|
|
3
|
-
description: Skill-backed capability for frontend
|
|
3
|
+
description: Skill-backed capability for frontend UI components and styles
|
|
4
4
|
governance: dist-assets/docs/policies/SKILLS_COMMON_GOVERNANCE.md
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Frontend Development
|
|
7
|
+
# Frontend Development PromptContract
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Role
|
|
10
|
+
Guides frontend UI, layout composition, accessibility, and styles.
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## Objective
|
|
13
|
+
Implement clean, performant, accessible, and responsive frontend UI components.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Trusted context
|
|
16
|
+
- Frontend component files
|
|
17
|
+
- Styling guides (CSS, design tokens)
|
|
18
|
+
- Router configs
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
Do not trust:
|
|
21
|
+
- User styles bypassing color/sizing tokens
|
|
22
|
+
- Unvalidated third-party scripts
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
## User input
|
|
25
|
+
- Frontend task specification
|
|
26
|
+
- Layout specifications
|
|
27
|
+
- Mockup data
|
|
28
|
+
|
|
29
|
+
## Constraints
|
|
30
|
+
- Follow accessibility (WCAG/ARIA) guidelines.
|
|
31
|
+
- Support responsive layouts.
|
|
32
|
+
- Do not claim execution without evidence.
|
|
33
|
+
|
|
34
|
+
## Allowed tools
|
|
35
|
+
- edit frontend code
|
|
36
|
+
- execute visual tests
|
|
37
|
+
- run linter
|
|
38
|
+
|
|
39
|
+
## Forbidden actions
|
|
40
|
+
- using non-standard styling tokens
|
|
41
|
+
- committing undocumented state logic
|
|
42
|
+
|
|
43
|
+
## Procedure
|
|
44
|
+
1. Analyze UI mockup and component hierarchy.
|
|
45
|
+
2. Implement components using strict design spacing tokens.
|
|
46
|
+
3. Add ARIA accessibility attributes.
|
|
47
|
+
4. Run frontend tests and verify visuals.
|
|
48
|
+
|
|
49
|
+
## Expected output schema
|
|
50
|
+
Output must include:
|
|
51
|
+
- Components modified
|
|
52
|
+
- Spacing and color tokens used
|
|
53
|
+
- Accessibility review results
|
|
54
|
+
- Test run results
|
|
55
|
+
- Decision: PASS | BLOCKED
|
|
56
|
+
|
|
57
|
+
## Evidence required
|
|
58
|
+
- layout checks
|
|
59
|
+
- visual test log
|
|
60
|
+
- test exit codes
|
|
61
|
+
|
|
62
|
+
## Stop conditions
|
|
63
|
+
- visual regression detected
|
|
64
|
+
- accessibility check fails
|
|
65
|
+
- hydration errors
|
|
66
|
+
|
|
67
|
+
## Failure modes
|
|
68
|
+
- layout breakages
|
|
69
|
+
- runtime javascript errors
|
|
70
|
+
|
|
71
|
+
## Escalation rules
|
|
72
|
+
- Escalate to UI-UX Engineer.
|