contextos-agents 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/adapters/cursor/export.js +3 -27
- package/.agents/adapters/gemini/export.js +5 -7
- package/.agents/adapters/shared.js +14 -1
- package/.agents/adapters/zed/export.js +4 -16
- package/.agents/compiled/registry.v2.json +33 -33
- package/.agents/compiled/registry.v2.sha256 +1 -1
- package/.agents/compiler/manifest-compiler.js +8 -5
- package/.agents/core/skills/context-manager/EXAMPLES.md +5 -17
- package/.agents/core/skills/context-manager/SKILL.md +10 -100
- package/.agents/core/skills/context-manager/TROUBLESHOOTING.md +6 -6
- package/.agents/core/skills/context-manager/VALIDATION.json +115 -4
- package/.agents/core/skills/context-manager/references/context-rules.md +3 -57
- package/.agents/core/skills/context-manager/skill.yaml +1 -3
- package/.agents/core/skills/context-os/EXAMPLES.md +25 -15
- package/.agents/core/skills/context-os/SKILL.md +12 -135
- package/.agents/core/skills/context-os/TROUBLESHOOTING.md +11 -6
- package/.agents/core/skills/context-os/VALIDATION.json +115 -4
- package/.agents/core/skills/context-os/packs.yaml +10 -59
- package/.agents/core/skills/context-os/references/context-rules.md +27 -59
- package/.agents/core/skills/context-os/references/pipeline.md +14 -119
- package/.agents/core/skills/context-os/references/project-graph.md +11 -100
- package/.agents/core/skills/context-os/rules.yaml +8 -135
- package/.agents/core/skills/engineering-workflow/EXAMPLES.md +15 -50
- package/.agents/core/skills/engineering-workflow/SKILL.md +10 -10
- package/.agents/core/skills/engineering-workflow/TROUBLESHOOTING.md +11 -19
- package/.agents/core/skills/engineering-workflow/VALIDATION.json +115 -4
- package/.agents/core/skills/engineering-workflow/references/workflow.md +55 -317
- package/.agents/core/skills/gemini-precision/EXAMPLES.md +33 -53
- package/.agents/core/skills/gemini-precision/SKILL.md +11 -147
- package/.agents/core/skills/gemini-precision/TROUBLESHOOTING.md +12 -25
- package/.agents/core/skills/gemini-precision/VALIDATION.json +115 -4
- package/.agents/core/skills/gemini-precision/skill.yaml +1 -1
- package/.agents/core/skills/gstack-roles/EXAMPLES.md +5 -21
- package/.agents/core/skills/gstack-roles/SKILL.md +10 -12
- package/.agents/core/skills/gstack-roles/TROUBLESHOOTING.md +6 -12
- package/.agents/core/skills/gstack-roles/VALIDATION.json +115 -4
- package/.agents/core/skills/gstack-roles/references/roles.md +3 -147
- package/.agents/core/skills/ponytail-mindset/EXAMPLES.md +12 -45
- package/.agents/core/skills/ponytail-mindset/SKILL.md +10 -13
- package/.agents/core/skills/ponytail-mindset/TROUBLESHOOTING.md +10 -19
- package/.agents/core/skills/ponytail-mindset/VALIDATION.json +115 -4
- package/.agents/core/skills/ponytail-mindset/references/minimalism.md +58 -174
- package/.agents/core/skills/security/EXAMPLES.md +19 -55
- package/.agents/core/skills/security/SKILL.md +61 -137
- package/.agents/core/skills/security/TROUBLESHOOTING.md +13 -19
- package/.agents/core/skills/security/VALIDATION.json +115 -4
- package/.agents/core/skills/security/skill.yaml +1 -1
- package/.agents/generated/claude/skills/context-manager/EXAMPLES.md +5 -17
- package/.agents/generated/claude/skills/context-manager/SKILL.md +9 -96
- package/.agents/generated/claude/skills/context-manager/TROUBLESHOOTING.md +6 -6
- package/.agents/generated/claude/skills/context-manager/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/context-manager/references/context-rules.md +3 -57
- package/.agents/generated/claude/skills/context-os/EXAMPLES.md +25 -15
- package/.agents/generated/claude/skills/context-os/SKILL.md +11 -133
- package/.agents/generated/claude/skills/context-os/TROUBLESHOOTING.md +11 -6
- package/.agents/generated/claude/skills/context-os/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/context-os/packs.yaml +10 -59
- package/.agents/generated/claude/skills/context-os/references/context-rules.md +27 -59
- package/.agents/generated/claude/skills/context-os/references/pipeline.md +14 -119
- package/.agents/generated/claude/skills/context-os/references/project-graph.md +11 -100
- package/.agents/generated/claude/skills/context-os/rules.yaml +8 -135
- package/.agents/generated/claude/skills/engineering-workflow/EXAMPLES.md +15 -50
- package/.agents/generated/claude/skills/engineering-workflow/SKILL.md +9 -9
- package/.agents/generated/claude/skills/engineering-workflow/TROUBLESHOOTING.md +11 -19
- package/.agents/generated/claude/skills/engineering-workflow/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/engineering-workflow/references/workflow.md +55 -317
- package/.agents/generated/claude/skills/gemini-precision/EXAMPLES.md +33 -53
- package/.agents/generated/claude/skills/gemini-precision/SKILL.md +10 -143
- package/.agents/generated/claude/skills/gemini-precision/TROUBLESHOOTING.md +12 -25
- package/.agents/generated/claude/skills/gemini-precision/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/gstack-roles/EXAMPLES.md +5 -21
- package/.agents/generated/claude/skills/gstack-roles/SKILL.md +9 -11
- package/.agents/generated/claude/skills/gstack-roles/TROUBLESHOOTING.md +6 -12
- package/.agents/generated/claude/skills/gstack-roles/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/gstack-roles/references/roles.md +3 -147
- package/.agents/generated/claude/skills/ponytail-mindset/EXAMPLES.md +12 -45
- package/.agents/generated/claude/skills/ponytail-mindset/SKILL.md +9 -12
- package/.agents/generated/claude/skills/ponytail-mindset/TROUBLESHOOTING.md +10 -19
- package/.agents/generated/claude/skills/ponytail-mindset/VALIDATION.json +115 -4
- package/.agents/generated/claude/skills/ponytail-mindset/references/minimalism.md +58 -174
- package/.agents/generated/claude/skills/security/EXAMPLES.md +19 -55
- package/.agents/generated/claude/skills/security/SKILL.md +60 -134
- package/.agents/generated/claude/skills/security/TROUBLESHOOTING.md +13 -19
- package/.agents/generated/claude/skills/security/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/context-manager/EXAMPLES.md +5 -17
- package/.agents/generated/gemini/skills/context-manager/SKILL.md +10 -99
- package/.agents/generated/gemini/skills/context-manager/TROUBLESHOOTING.md +6 -6
- package/.agents/generated/gemini/skills/context-manager/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/context-manager/references/context-rules.md +3 -57
- package/.agents/generated/gemini/skills/context-os/EXAMPLES.md +25 -15
- package/.agents/generated/gemini/skills/context-os/SKILL.md +12 -135
- package/.agents/generated/gemini/skills/context-os/TROUBLESHOOTING.md +11 -6
- package/.agents/generated/gemini/skills/context-os/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/context-os/packs.yaml +10 -59
- package/.agents/generated/gemini/skills/context-os/references/context-rules.md +27 -59
- package/.agents/generated/gemini/skills/context-os/references/pipeline.md +14 -119
- package/.agents/generated/gemini/skills/context-os/references/project-graph.md +11 -100
- package/.agents/generated/gemini/skills/context-os/rules.yaml +8 -135
- package/.agents/generated/gemini/skills/engineering-workflow/EXAMPLES.md +15 -50
- package/.agents/generated/gemini/skills/engineering-workflow/SKILL.md +10 -11
- package/.agents/generated/gemini/skills/engineering-workflow/TROUBLESHOOTING.md +11 -19
- package/.agents/generated/gemini/skills/engineering-workflow/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/engineering-workflow/references/workflow.md +55 -317
- package/.agents/generated/gemini/skills/gemini-precision/EXAMPLES.md +33 -53
- package/.agents/generated/gemini/skills/gemini-precision/SKILL.md +11 -145
- package/.agents/generated/gemini/skills/gemini-precision/TROUBLESHOOTING.md +12 -25
- package/.agents/generated/gemini/skills/gemini-precision/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/gstack-roles/EXAMPLES.md +5 -21
- package/.agents/generated/gemini/skills/gstack-roles/SKILL.md +10 -13
- package/.agents/generated/gemini/skills/gstack-roles/TROUBLESHOOTING.md +6 -12
- package/.agents/generated/gemini/skills/gstack-roles/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/gstack-roles/references/roles.md +3 -147
- package/.agents/generated/gemini/skills/ponytail-mindset/EXAMPLES.md +12 -45
- package/.agents/generated/gemini/skills/ponytail-mindset/SKILL.md +10 -14
- package/.agents/generated/gemini/skills/ponytail-mindset/TROUBLESHOOTING.md +10 -19
- package/.agents/generated/gemini/skills/ponytail-mindset/VALIDATION.json +115 -4
- package/.agents/generated/gemini/skills/ponytail-mindset/references/minimalism.md +58 -174
- package/.agents/generated/gemini/skills/security/EXAMPLES.md +19 -55
- package/.agents/generated/gemini/skills/security/SKILL.md +61 -136
- package/.agents/generated/gemini/skills/security/TROUBLESHOOTING.md +13 -19
- package/.agents/generated/gemini/skills/security/VALIDATION.json +115 -4
- package/.agents/resolver/canonical-resolver.js +34 -21
- package/.agents/rules/rule-catalog.js +5 -5
- package/.agents/validate.js +9 -2
- package/.agents/validation-evidence.js +89 -0
- package/README.md +132 -197
- package/bin/index.js +1 -1
- package/catalog/skills/typescript/SKILL.md +16 -2
- package/package.json +90 -89
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
- **Fix**: Remove or redact the secret before committing. Fully implement the logic or replace the placeholder with an explicit tracked issue rather than committed code stubs.
|
|
14
|
-
|
|
15
|
-
## 3. Scope Creep and Excessive Blast Radius
|
|
16
|
-
|
|
17
|
-
- **Symptom**: Unrelated files reformatted or imports reordered across the repository.
|
|
18
|
-
- **Root Cause**: Full-file rewrite instead of targeted surgical replacement.
|
|
19
|
-
- **Fix**: Use targeted chunks that touch only the lines specified in the task plan. Avoid modifying unrelated styling or formatting.
|
|
20
|
-
|
|
21
|
-
## 4. Forbidden Long Dashes
|
|
22
|
-
|
|
23
|
-
- **Symptom**: Linter or compliance check flags unicode dashes in text.
|
|
24
|
-
- **Root Cause**: Using typography dashes (`\u2014` or `\u2013`) instead of standard ASCII hyphens.
|
|
25
|
-
- **Fix**: Replace all em-dashes and en-dashes with standard ASCII hyphens (` - `) or appropriate punctuation (parentheses, commas, colons).
|
|
1
|
+
# Gemini execution troubleshooting
|
|
2
|
+
|
|
3
|
+
- A test fails: inspect the assertion and actual caller behavior, fix the root
|
|
4
|
+
cause, and rerun relevant checks.
|
|
5
|
+
- A scan misses a stub: placeholder checks require --placeholders; scope checks
|
|
6
|
+
require --scope <file>. Use an actual staged candidate for a staged scan.
|
|
7
|
+
- Scope grows: inspect callers, explain necessary additions, preserve unrelated
|
|
8
|
+
formatting and local changes.
|
|
9
|
+
- Context drifts: keep a short persistent plan for substantial work and update
|
|
10
|
+
it as evidence changes.
|
|
11
|
+
- Typography preference differs: follow the user's or repository's style; this
|
|
12
|
+
skill does not define a universal ban on Unicode punctuation.
|
|
@@ -1,12 +1,123 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"x-contextos-evidence-contract": 1,
|
|
4
|
+
"title": "Scoped verification evidence",
|
|
5
|
+
"description": "Report shape and outcome consistency only; command execution and agent behavior require separate evidence.",
|
|
3
6
|
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"status",
|
|
10
|
+
"checks",
|
|
11
|
+
"limitations"
|
|
12
|
+
],
|
|
4
13
|
"properties": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
14
|
+
"status": {
|
|
15
|
+
"enum": [
|
|
16
|
+
"verified",
|
|
17
|
+
"partial",
|
|
18
|
+
"not_run"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"checks": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": [
|
|
27
|
+
"command",
|
|
28
|
+
"exitCode",
|
|
29
|
+
"scope"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"command": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1
|
|
35
|
+
},
|
|
36
|
+
"exitCode": {
|
|
37
|
+
"type": [
|
|
38
|
+
"integer",
|
|
39
|
+
"null"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"scope": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"limitations": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
}
|
|
7
55
|
}
|
|
8
56
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
57
|
+
"allOf": [
|
|
58
|
+
{
|
|
59
|
+
"if": {
|
|
60
|
+
"properties": {
|
|
61
|
+
"status": {
|
|
62
|
+
"const": "verified"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"then": {
|
|
67
|
+
"properties": {
|
|
68
|
+
"checks": {
|
|
69
|
+
"minItems": 1,
|
|
70
|
+
"items": {
|
|
71
|
+
"properties": {
|
|
72
|
+
"exitCode": {
|
|
73
|
+
"const": 0
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"if": {
|
|
83
|
+
"properties": {
|
|
84
|
+
"status": {
|
|
85
|
+
"enum": [
|
|
86
|
+
"partial",
|
|
87
|
+
"not_run"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"then": {
|
|
93
|
+
"properties": {
|
|
94
|
+
"limitations": {
|
|
95
|
+
"minItems": 1
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"if": {
|
|
102
|
+
"properties": {
|
|
103
|
+
"status": {
|
|
104
|
+
"const": "not_run"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"then": {
|
|
109
|
+
"properties": {
|
|
110
|
+
"checks": {
|
|
111
|
+
"items": {
|
|
112
|
+
"properties": {
|
|
113
|
+
"exitCode": {
|
|
114
|
+
"type": "null"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
11
122
|
]
|
|
12
123
|
}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
# gstack-roles
|
|
1
|
+
# gstack-roles compatibility examples
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use the canonical [engineering-workflow](../engineering-workflow/SKILL.md). An explicit resolver
|
|
4
|
+
request for gstack-roles redirects to engineering-workflow; the warning explains the mapping.
|
|
5
|
+
A directly loaded alias should follow the same canonical instructions.
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
User: "Should we migrate our monolithic PostgreSQL database to MongoDB?"
|
|
9
|
-
Agent: Gives a vague 5-paragraph summary listing pros and cons of both without making a recommendation.
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
### Best practice: ContextOS Standard (Architect Role Declaration)
|
|
13
|
-
|
|
14
|
-
```markdown
|
|
15
|
-
[DOMAIN: Architecture] [PHASE: Plan] [ROLE: Database Architect]
|
|
16
|
-
Skills loaded: database, system-design, decisions
|
|
17
|
-
|
|
18
|
-
### Recommendation: Stay with PostgreSQL. Do NOT migrate to MongoDB.
|
|
19
|
-
1. Data Integrity: Your domain model has high relational complexity (orders -> items -> shipments -> payments).
|
|
20
|
-
2. Transactional Consistency: MongoDB multi-document ACID transactions introduce significant latency overhead compared to Postgres native WAL.
|
|
21
|
-
3. JSON Support: PostgreSQL JSONB handles document storage and indexing natively if semi-structured flexibility is needed.
|
|
22
|
-
Decision: Draft ADR 0004-retain-postgresql-with-jsonb.md.
|
|
23
|
-
```
|
|
7
|
+
An authorization review can use correctness and security perspectives without role banners. Those perspectives do not create an independent reviewer.
|
|
@@ -2,32 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Deprecated compatibility identifier. Use [engineering-workflow](../engineering-workflow/SKILL.md) for the canonical instructions.
|
|
6
6
|
|
|
7
7
|
## When to Use
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
An existing configuration or user explicitly names gstack-roles.
|
|
10
10
|
|
|
11
11
|
## Rules & Patterns
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Read [references/roles.md](references/roles.md) for detailed procedures and examples only when needed.
|
|
13
|
+
Apply the canonical skill without loading a duplicate process. Existing authorization, proportional verification, and optional role declarations carry forward. The resolver redirects this identifier and reports an alias warning.
|
|
16
14
|
|
|
17
15
|
## Code Examples
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
Explicit gstack-roles selection resolves to engineering-workflow; inspect the resolver result rather than assuming both bodies were loaded.
|
|
20
18
|
|
|
21
19
|
## Validation Checklist
|
|
22
20
|
|
|
23
|
-
- [ ]
|
|
24
|
-
- [ ]
|
|
25
|
-
- [ ]
|
|
21
|
+
- [ ] Canonical guidance is used.
|
|
22
|
+
- [ ] Alias resolution adds no duplicate body.
|
|
23
|
+
- [ ] Evidence scope and limitations are stated.
|
|
26
24
|
|
|
27
25
|
## Common Mistakes
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
Treating this compatibility name as an independent engine or a mandatory ceremony.
|
|
30
28
|
|
|
31
29
|
## Integration Notes
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Keep legacy links available. Read [references/roles.md](references/roles.md) only for compatibility details.
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
# gstack-roles
|
|
1
|
+
# gstack-roles compatibility troubleshooting
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## 2. Mismatched Role Authority
|
|
10
|
-
|
|
11
|
-
- **Symptom**: Junior Developer persona trying to override Architectural Decisions without ADR review.
|
|
12
|
-
- **Root Cause**: Role boundary confusion.
|
|
13
|
-
- **Fix**: Respect hierarchy: Product Manager owns scope, Architect owns topology, Senior Dev owns implementation.
|
|
3
|
+
- Duplicate process: load the canonical engineering-workflow instructions once.
|
|
4
|
+
- Repeated approval or banners: preserve existing authorization and optional roles.
|
|
5
|
+
- Conflicting legacy guidance: use the canonical skill and update the stale link.
|
|
6
|
+
- Claimed automation: inspect actual CLI results and distinguish instructions
|
|
7
|
+
from runtime enforcement.
|
|
@@ -1,12 +1,123 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"x-contextos-evidence-contract": 1,
|
|
4
|
+
"title": "Scoped verification evidence",
|
|
5
|
+
"description": "Report shape and outcome consistency only; command execution and agent behavior require separate evidence.",
|
|
3
6
|
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"status",
|
|
10
|
+
"checks",
|
|
11
|
+
"limitations"
|
|
12
|
+
],
|
|
4
13
|
"properties": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
14
|
+
"status": {
|
|
15
|
+
"enum": [
|
|
16
|
+
"verified",
|
|
17
|
+
"partial",
|
|
18
|
+
"not_run"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"checks": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": [
|
|
27
|
+
"command",
|
|
28
|
+
"exitCode",
|
|
29
|
+
"scope"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"command": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1
|
|
35
|
+
},
|
|
36
|
+
"exitCode": {
|
|
37
|
+
"type": [
|
|
38
|
+
"integer",
|
|
39
|
+
"null"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"scope": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"limitations": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
}
|
|
7
55
|
}
|
|
8
56
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
57
|
+
"allOf": [
|
|
58
|
+
{
|
|
59
|
+
"if": {
|
|
60
|
+
"properties": {
|
|
61
|
+
"status": {
|
|
62
|
+
"const": "verified"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"then": {
|
|
67
|
+
"properties": {
|
|
68
|
+
"checks": {
|
|
69
|
+
"minItems": 1,
|
|
70
|
+
"items": {
|
|
71
|
+
"properties": {
|
|
72
|
+
"exitCode": {
|
|
73
|
+
"const": 0
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"if": {
|
|
83
|
+
"properties": {
|
|
84
|
+
"status": {
|
|
85
|
+
"enum": [
|
|
86
|
+
"partial",
|
|
87
|
+
"not_run"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"then": {
|
|
93
|
+
"properties": {
|
|
94
|
+
"limitations": {
|
|
95
|
+
"minItems": 1
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"if": {
|
|
102
|
+
"properties": {
|
|
103
|
+
"status": {
|
|
104
|
+
"const": "not_run"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"then": {
|
|
109
|
+
"properties": {
|
|
110
|
+
"checks": {
|
|
111
|
+
"items": {
|
|
112
|
+
"properties": {
|
|
113
|
+
"exitCode": {
|
|
114
|
+
"type": "null"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
11
122
|
]
|
|
12
123
|
}
|
|
@@ -1,149 +1,5 @@
|
|
|
1
|
+
# gstack-roles compatibility reference
|
|
1
2
|
|
|
2
|
-
|
|
3
|
+
Canonical guidance: [engineering-workflow](../../engineering-workflow/SKILL.md).
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Specialist persona orchestrator defining 23 domain roles (Product Manager, Architect, Senior Developer, QA Lead, Chief Security Officer, etc.). Enforces mindset transitions across engineering pipeline phases.
|
|
7
|
-
|
|
8
|
-
## When to Use
|
|
9
|
-
|
|
10
|
-
Activate on every task to declare explicit specialist role and mindset before beginning DEFINE, PLAN, BUILD, VERIFY, REVIEW, or SHIP phases.
|
|
11
|
-
|
|
12
|
-
## Rules & Patterns
|
|
13
|
-
|
|
14
|
-
Inspired by [Garry Tan's gstack](https://github.com/garrytan/gstack) - structured persona transitions across engineering phases.
|
|
15
|
-
|
|
16
|
-
## Core Principle
|
|
17
|
-
|
|
18
|
-
> Before starting ANY task, identify your current role. You are not a generic AI. You are a specialist. Think and act accordingly.
|
|
19
|
-
|
|
20
|
-
## Role Identification Protocol
|
|
21
|
-
|
|
22
|
-
At the start of each task or major phase switch, declare your role using the ContextOS standard format:
|
|
23
|
-
|
|
24
|
-
```text
|
|
25
|
-
[DOMAIN: <Domain>] [PHASE: <Phase>] [ROLE: <Role Name>]
|
|
26
|
-
Skills loaded: <skill-1>, <skill-2>
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
> **Anti-Spam Invariant**: Declare this role header **strictly once per phase**. Never prefix intermediate tool calls, file operations, or step updates with role tags.
|
|
30
|
-
|
|
31
|
-
Then execute ONLY within the constraints of that role.
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## The 23 Specialist Roles
|
|
36
|
-
|
|
37
|
-
### Strategy & Planning
|
|
38
|
-
|
|
39
|
-
| Role | Mandate | When to Activate |
|
|
40
|
-
| ------ | --------- | ----------------- |
|
|
41
|
-
| **CEO / Founder** | Rethink the problem. Find the 10-star product hiding inside the request. Challenge scope. | Feature planning, product decisions |
|
|
42
|
-
| **YC Office Hours** | Ask 6 forcing questions that reframe the product before writing code. Push back on framing. | Before any new feature starts |
|
|
43
|
-
| **Product Manager** | Define requirements as user stories. Prioritize ruthlessly. Ship the narrowest wedge first. | Requirement gathering |
|
|
44
|
-
| **Architect** | Lock in architecture, data flow, diagrams, edge cases. Force hidden assumptions into the open. | System design, tech stack decisions |
|
|
45
|
-
|
|
46
|
-
### Engineering
|
|
47
|
-
|
|
48
|
-
| Role | Mandate | When to Activate |
|
|
49
|
-
| ------ | --------- | ----------------- |
|
|
50
|
-
| **Engineering Manager** | Break work into atomic tasks. Review test plans. Run retrospectives. | Sprint planning, reviews |
|
|
51
|
-
| **Staff Engineer** | Find bugs that pass CI but blow up in production. Auto-fix the obvious. Flag gaps. | Code review |
|
|
52
|
-
| **Senior Developer** | Write production-quality code. Follow architecture decisions. Test everything. | Implementation |
|
|
53
|
-
| **Debugger** | Systematic root-cause debugging. Iron Law: no fixes without investigation. | Bug fixing |
|
|
54
|
-
| **Performance Engineer** | Baseline metrics. Core Web Vitals. Resource sizes. Compare before/after. | Optimization |
|
|
55
|
-
| **Developer Experience Lead** | Benchmark onboarding speed. Find friction. Design the magical moment. | DX review |
|
|
56
|
-
|
|
57
|
-
### Design
|
|
58
|
-
|
|
59
|
-
| Role | Mandate | When to Activate |
|
|
60
|
-
| ------ | --------- | ----------------- |
|
|
61
|
-
| **Senior Designer** | Rate each design dimension 0-10. Detect AI slop. Interactive: one question per design choice. | Design review, UI tasks |
|
|
62
|
-
| **Design Engineer** | Turn mockups into production HTML/CSS that actually works. 30KB, zero deps where possible. | Frontend implementation |
|
|
63
|
-
| **Design Explorer** | Generate 4-6 design variants. Open comparison. Iterate until user loves it. | Design ideation |
|
|
64
|
-
|
|
65
|
-
### Quality & Security
|
|
66
|
-
|
|
67
|
-
| Role | Mandate | When to Activate |
|
|
68
|
-
| ------ | --------- | ----------------- |
|
|
69
|
-
| **QA Lead** | Test the app, find bugs, fix with atomic commits, re-verify, write regression tests. | Before shipping |
|
|
70
|
-
| **QA Reporter** | Pure bug report only. No code changes. | Bug reporting |
|
|
71
|
-
| **Chief Security Officer** | OWASP Top 10 + STRIDE threat model. Zero-noise: 8/10+ confidence gate. Each finding needs exploit scenario. | Security audit |
|
|
72
|
-
|
|
73
|
-
### Operations & Release
|
|
74
|
-
|
|
75
|
-
| Role | Mandate | When to Activate |
|
|
76
|
-
| ------ | --------- | ----------------- |
|
|
77
|
-
| **Release Engineer** | Sync main, run tests, audit coverage, push, open PR. Bootstrap test frameworks if missing. | Before shipping |
|
|
78
|
-
| **SRE** | Post-deploy monitoring loop. Watch for console errors, performance regressions, failures. | After deploy |
|
|
79
|
-
| **Technical Writer** | Update all docs to match what shipped. Catch stale READMEs. Build Diataxis coverage map. | After feature ships |
|
|
80
|
-
|
|
81
|
-
### Research & Memory
|
|
82
|
-
|
|
83
|
-
| Role | Mandate | When to Activate |
|
|
84
|
-
| ------ | --------- | ----------------- |
|
|
85
|
-
| **Researcher** | Investigate root causes systematically. No fixes without understanding. Max 3 hypothesis cycles. | Unknown problems |
|
|
86
|
-
| **Memory Manager** | Manage learnings across sessions. Review, search, prune, export project patterns. | Session start/end |
|
|
87
|
-
| **Spec Author** | Turn vague intent into precise executable specs in 5 phases: why, scope, technical, draft, file. | Before planning |
|
|
88
|
-
| **Retro Facilitator** | Per-person breakdowns, shipping streaks, test health trends, growth opportunities. | End of sprint |
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## Sprint Lifecycle
|
|
93
|
-
|
|
94
|
-
Every change follows this lifecycle, with a specific role per phase:
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
THINK PLAN BUILD REVIEW TEST SHIP
|
|
98
|
-
[YC Hours] [Architect] [Sr Developer] [Staff Eng] [QA Lead] [Release Eng]
|
|
99
|
-
[CEO] [Eng Mgr] [Designer] [Sec Officer]
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Role-Switching Rules
|
|
103
|
-
|
|
104
|
-
1. **Use proportional phases.** Scope substantial work; routine edits can proceed directly.
|
|
105
|
-
2. **One role at a time.** Don't mix QA and implementation in the same response.
|
|
106
|
-
3. **Declare when helpful.** Role labels are optional communication aids.
|
|
107
|
-
4. **Escalate correctly.** If a QA finds an architectural problem → escalate to Architect role.
|
|
108
|
-
5. **The CEO always goes last on planning** - challenges scope reduction before committing.
|
|
109
|
-
|
|
110
|
-
## Example Usage
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
User: "Add a notifications feature"
|
|
114
|
-
|
|
115
|
-
[ROLE: YC Office Hours]
|
|
116
|
-
Before I plan this, 6 forcing questions:
|
|
117
|
-
1. What pain does the ABSENCE of notifications cause today?
|
|
118
|
-
2. Who specifically gets notified? What's the trigger?
|
|
119
|
-
...
|
|
120
|
-
|
|
121
|
-
[ROLE: CEO / Founder]
|
|
122
|
-
I'm going to push back on "notifications feature."
|
|
123
|
-
What you actually described is a user re-engagement system.
|
|
124
|
-
The narrowest wedge: one email on task completion.
|
|
125
|
-
Ship that tomorrow. The full vision is a 3-month project.
|
|
126
|
-
|
|
127
|
-
[ROLE: Architect]
|
|
128
|
-
For the narrow wedge:
|
|
129
|
-
- Event: task.completed → webhook → email queue (Redis)
|
|
130
|
-
- No real-time needed for MVP
|
|
131
|
-
- Schema: notifications(id, user_id, type, payload, sent_at)
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
## Code Examples
|
|
136
|
-
|
|
137
|
-
See `EXAMPLES.md` for detailed code examples.
|
|
138
|
-
|
|
139
|
-
## Validation Checklist
|
|
140
|
-
|
|
141
|
-
What to verify during the review phase before completing the task.
|
|
142
|
-
|
|
143
|
-
## Common Mistakes
|
|
144
|
-
|
|
145
|
-
Anti-patterns and things to explicitly avoid. See `TROUBLESHOOTING.md`.
|
|
146
|
-
|
|
147
|
-
## Integration Notes
|
|
148
|
-
|
|
149
|
-
How this skill interacts with other skills.
|
|
5
|
+
Useful review perspectives are product scope, architecture, implementation, QA, security, and release. Choose only those relevant to the inspected change. Role declarations are optional, and switching roles within one model is self-review. Ask for missing material decisions instead of a fixed six-question interview.
|
|
@@ -1,45 +1,12 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const diff = Date.now() - date.getTime();
|
|
14
|
-
// 30 lines of manual math, plurals, and string building
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Best practice: ContextOS Standard (Standard Library Native API)
|
|
20
|
-
|
|
21
|
-
```typescript
|
|
22
|
-
// GOOD: Native Intl API, zero bundle cost, handles all locales
|
|
23
|
-
export const formatRelativeTime = (date: Date, locale = 'en'): string => {
|
|
24
|
-
const diffDays = Math.round((date.getTime() - Date.now()) / (1000 * 60 * 60 * 24));
|
|
25
|
-
return new Intl.RelativeTimeFormat(locale, { numeric: 'auto' }).format(diffDays, 'day');
|
|
26
|
-
};
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Example 2: Component Library Reuse
|
|
32
|
-
|
|
33
|
-
### Anti-pattern: Hand-rolled Modal from Scratch
|
|
34
|
-
|
|
35
|
-
```text
|
|
36
|
-
BAD: Writing custom overlay DOM, manual scroll locking, manual focus trapping,
|
|
37
|
-
and custom keydown listeners. Burns 300+ lines of fragile code.
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Best practice: ContextOS Standard (Leverage Established Primitives)
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# GOOD: Install battle-tested primitive that handles ARIA, portals, and keyboard navigation
|
|
44
|
-
npx shadcn@latest add dialog
|
|
45
|
-
```
|
|
1
|
+
# Minimalism examples
|
|
2
|
+
|
|
3
|
+
- Formatting: use Intl.DateTimeFormat, Intl.RelativeTimeFormat, or the existing
|
|
4
|
+
formatter after verifying locale, timezone, invalid-date, and rounding needs.
|
|
5
|
+
A snippet's length is not a measured bundle or accuracy guarantee.
|
|
6
|
+
- UI: reuse the installed component library when it meets accessibility and
|
|
7
|
+
interaction requirements. Use a native control when it meets those requirements.
|
|
8
|
+
- Protected writes: see the executable updater in
|
|
9
|
+
[references/minimalism.md](references/minimalism.md). Copying arbitrary payload
|
|
10
|
+
fields into persistence does not satisfy minimalism or security.
|
|
11
|
+
- Refactoring: a small named function can be clearer than repeated inline logic,
|
|
12
|
+
even before its third use.
|
|
@@ -6,31 +6,28 @@ Reduce unnecessary code and dependencies without weakening correctness or securi
|
|
|
6
6
|
|
|
7
7
|
## When to Use
|
|
8
8
|
|
|
9
|
-
Substantive implementation and
|
|
9
|
+
Substantive implementation, refactoring, and reviews of complexity.
|
|
10
10
|
|
|
11
11
|
## Rules & Patterns
|
|
12
12
|
|
|
13
|
-
Before adding code,
|
|
13
|
+
Before adding code, consider YAGNI, project reuse, the standard library, native platform features, installed dependencies, a readable one-liner, then the minimum maintainable code. Preserve validation, authorization, parameterized queries, meaningful errors, and required checks. Single-use helpers are allowed when they clarify a concept or boundary.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
installed dependencies; a readable one-liner; the minimum maintainable code.
|
|
17
|
-
|
|
18
|
-
Read [references/minimalism.md](references/minimalism.md) for detailed procedures and examples only when needed.
|
|
15
|
+
Read [references/minimalism.md](references/minimalism.md) when a tradeoff needs detail.
|
|
19
16
|
|
|
20
17
|
## Code Examples
|
|
21
18
|
|
|
22
|
-
Reuse the
|
|
19
|
+
Reuse the installed date formatter. An update endpoint still validates its payload and checks ownership before writing.
|
|
23
20
|
|
|
24
21
|
## Validation Checklist
|
|
25
22
|
|
|
26
|
-
- [ ] The requested outcome
|
|
27
|
-
- [ ]
|
|
28
|
-
- [ ]
|
|
23
|
+
- [ ] The requested outcome and applicable failure cases are checked.
|
|
24
|
+
- [ ] Evidence names commands, results, scope, and limitations.
|
|
25
|
+
- [ ] Unrelated changes and existing authorization are preserved.
|
|
29
26
|
|
|
30
27
|
## Common Mistakes
|
|
31
28
|
|
|
32
|
-
|
|
29
|
+
Code-golf; deleting safety checks; choosing a new component library by default; duplicating access-control logic solely to obey a reuse count.
|
|
33
30
|
|
|
34
31
|
## Integration Notes
|
|
35
32
|
|
|
36
|
-
|
|
33
|
+
engineering-workflow chooses verification by risk; security defines protected boundaries. This skill chooses implementation size and readability.
|