contextos-agents 2.3.1 → 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 -207
- package/catalog/skills/typescript/SKILL.md +16 -2
- package/package.json +3 -2
|
@@ -1,174 +1,38 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gemini-precision
|
|
3
|
-
description:
|
|
4
|
-
High-precision engineering and execution guardrails optimized for Google Gemini models.
|
|
5
|
-
Enforces zero-assumption file inspection, complete non-lazy implementations, surgical
|
|
6
|
-
blast-radius containment, and mandatory proof-of-work execution.
|
|
3
|
+
description: "Execution guidance for Gemini: inspect code, preserve scope, and report relevant verification evidence."
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# gemini-precision
|
|
10
7
|
|
|
11
8
|
## Overview
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
Apply inspection and execution discipline when working with Gemini. Model-specific quality or performance gains require separate measured comparisons.
|
|
14
11
|
|
|
15
12
|
## When to Use
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- Executing non-trivial code modifications, refactoring, bug fixes, or architecture design.
|
|
20
|
-
- The user requires maximum rigor, reliability, and precision from Gemini.
|
|
21
|
-
- Handling complex multi-file changes where accidental side-effects must be zero.
|
|
14
|
+
Gemini implementation and debugging tasks, or an explicit request for this guidance.
|
|
22
15
|
|
|
23
16
|
## Rules & Patterns
|
|
24
17
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
**Never write code based on assumptions about the codebase.**
|
|
28
|
-
|
|
29
|
-
- Before modifying a function or creating an integration, **always inspect the actual files** using `view_file` or `grep_search`.
|
|
30
|
-
- Check the exact runtime, framework version, and installed dependencies (e.g. React 19 vs 18, Next.js 15 vs 14, Tailwind v4 vs v3, Zod vs Joi) in `package.json` or config files before generating code.
|
|
31
|
-
- Verify imported symbol names and parameter signatures directly from source files.
|
|
32
|
-
|
|
33
|
-
### 2. The Zero-Placeholder Invariant (Complete Code Only)
|
|
34
|
-
|
|
35
|
-
**Never produce lazy, incomplete, or stubbed output.**
|
|
36
|
-
|
|
37
|
-
- ❌ **Forbidden**:
|
|
38
|
-
- `// TODO: implement logic here`
|
|
39
|
-
- `// ... rest of existing code ...`
|
|
40
|
-
- `// ... existing imports ...`
|
|
41
|
-
- Mock stub returns when real integration is required
|
|
42
|
-
- ✅ **Mandatory**:
|
|
43
|
-
- Provide **100% complete, fully-implemented, compilable, and drop-in ready** code.
|
|
44
|
-
- When replacing a block of code, include all necessary imports, type definitions, and edge-case handling.
|
|
45
|
-
|
|
46
|
-
### 3. The Proof-of-Work Invariant (Verification Before Completion)
|
|
47
|
-
|
|
48
|
-
**Never claim a task is complete without tool-verified evidence.**
|
|
49
|
-
|
|
50
|
-
- When modifying code or configuration:
|
|
51
|
-
1. Run the project validator or compiler (`node .agents/ctx.js validate`, `tsc --noEmit`, etc.).
|
|
52
|
-
2. Run unit and integration tests (`npm test`, `pytest`, etc.).
|
|
53
|
-
3. Run linter and formatting checks (`npm run lint:md`, `eslint`, etc.).
|
|
54
|
-
4. Run staged security and quality scanner (`contextos scan --staged --enforce`).
|
|
55
|
-
- If a test or validation fails, do not guess: read the exact error trace, fix the root cause, and re-run until green.
|
|
56
|
-
|
|
57
|
-
### 4. Surgical Blast Radius Containment
|
|
58
|
-
|
|
59
|
-
**Modify ONLY what is strictly necessary.**
|
|
60
|
-
|
|
61
|
-
- Keep edits isolated to the exact lines, functions, and files specified in the plan.
|
|
62
|
-
- Do not reformat, reorder, or alter indentation of unrelated code blocks.
|
|
63
|
-
- Preserve existing comments, docstrings, and project conventions unless explicitly asked to change them.
|
|
64
|
-
|
|
65
|
-
### 5. Ponytail Minimalism (YAGNI)
|
|
66
|
-
|
|
67
|
-
- Prioritize native platform APIs (standard library, browser built-ins) over new npm/pip packages.
|
|
68
|
-
- Follow the "Rule of Three": inline on first use, duplicate cleanly on second, abstract only on third.
|
|
69
|
-
- Keep solutions obvious to a mid-level developer without requiring multi-layered wrapper classes.
|
|
70
|
-
|
|
71
|
-
### 6. Targeted Tool-Specific Modifications
|
|
18
|
+
Inspect affected source, callers, symbols, runtime versions, and project checks. Implement the authorized behavior completely; never substitute stubs for a required integration. Preserve unrelated code. Choose checks by risk using engineering-workflow. Keep a persistent plan for substantial multi-file work when useful, not for every three tool calls. Explain meaningful decisions; role banners are optional.
|
|
72
19
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
- For existing files requiring localized updates (< 50% change), always prefer surgical targeted replacement chunks over destructive full-file rewrites.
|
|
76
|
-
- Never discard unrelated file sections, existing comments, or helper utilities.
|
|
77
|
-
|
|
78
|
-
### 7. Persistent Context & Plan Tracking
|
|
79
|
-
|
|
80
|
-
**Prevent context drift during multi-step tasks.**
|
|
81
|
-
|
|
82
|
-
- When an operation requires more than 3 sequential steps, write and maintain a persistent plan or checklist on disk.
|
|
83
|
-
- Never rely exclusively on volatile conversational memory for tracking complex multi-file refactorings.
|
|
84
|
-
|
|
85
|
-
### 8. Progressive Step Narration (Transparent Pair Programming)
|
|
86
|
-
|
|
87
|
-
**Eliminate the "black box" by narrating technical decisions.**
|
|
88
|
-
|
|
89
|
-
- Avoid executing long, silent chains of tool calls without user visibility.
|
|
90
|
-
- Provide a concise 1-2 sentence transparent status update before key operations:
|
|
91
|
-
- State what was inspected or verified from the code.
|
|
92
|
-
- State the architectural decision made and the immediate next action.
|
|
93
|
-
- Keep narration crisp and actionable without excessive verbosity.
|
|
94
|
-
- **Zero-Spam Constraint**:
|
|
95
|
-
- ❌ **Forbidden**: Starting every intermediate step, tool call, or status update with domain/phase/role tags (e.g. `[DOMAIN: ...] [PHASE: ...] [ROLE: ...]`).
|
|
96
|
-
- ✅ **Mandatory**: Declare role and phase strictly once at the start of a phase. Intermediate step updates must be clean, natural language sentences describing technical actions directly.
|
|
97
|
-
- Do not narrate routine micro-inspections (single line reads or basic greps). Announce only meaningful task phases and decisions.
|
|
98
|
-
|
|
99
|
-
---
|
|
20
|
+
Read EXAMPLES.md for a runnable validation example and its limits.
|
|
100
21
|
|
|
101
22
|
## Code Examples
|
|
102
23
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
**❌ Bad (Lazy AI Output)**:
|
|
106
|
-
|
|
107
|
-
```javascript
|
|
108
|
-
// user.service.js
|
|
109
|
-
export async function updateUser(id, data) {
|
|
110
|
-
// ... existing auth check ...
|
|
111
|
-
// TODO: validate data with zod
|
|
112
|
-
return await db.user.update({ where: { id }, data });
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
**✅ Good (Gemini Precision Output)**:
|
|
117
|
-
|
|
118
|
-
```javascript
|
|
119
|
-
// user.service.js
|
|
120
|
-
import { z } from 'zod';
|
|
121
|
-
import { db } from '../lib/db.js';
|
|
122
|
-
import { ValidationError, UnauthorizedError } from '../errors/index.js';
|
|
123
|
-
|
|
124
|
-
const UpdateUserSchema = z.object({
|
|
125
|
-
name: z.string().min(1).max(100).optional(),
|
|
126
|
-
email: z.string().email().optional(),
|
|
127
|
-
}).strict();
|
|
128
|
-
|
|
129
|
-
export async function updateUser(id, data, session) {
|
|
130
|
-
if (!session?.userId || session.userId !== id) {
|
|
131
|
-
throw new UnauthorizedError('Access denied: cannot update another user');
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
const parsed = UpdateUserSchema.safeParse(data);
|
|
135
|
-
if (!parsed.success) {
|
|
136
|
-
throw new ValidationError('Invalid update payload', parsed.error.format());
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return await db.user.update({
|
|
140
|
-
where: { id },
|
|
141
|
-
data: parsed.data,
|
|
142
|
-
select: { id: true, name: true, email: true, updatedAt: true }
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
---
|
|
24
|
+
A validated calculation can be verified in isolation. It does not prove a payment was persisted or executed.
|
|
148
25
|
|
|
149
26
|
## Validation Checklist
|
|
150
27
|
|
|
151
|
-
- [ ]
|
|
152
|
-
- [ ]
|
|
153
|
-
- [ ]
|
|
154
|
-
- [ ] Confined changes to the minimal required blast radius.
|
|
155
|
-
- [ ] Preserved existing code via targeted edits rather than full-file overwrites.
|
|
156
|
-
- [ ] Persisted multi-step task state and milestones to disk.
|
|
157
|
-
- [ ] Narrated progress with concise, transparent step-by-step updates.
|
|
158
|
-
- [ ] Reported final status with verifiable evidence.
|
|
159
|
-
|
|
160
|
-
---
|
|
28
|
+
- [ ] The requested outcome and applicable failure cases are checked.
|
|
29
|
+
- [ ] Evidence names commands, results, scope, and limitations.
|
|
30
|
+
- [ ] Unrelated changes and existing authorization are preserved.
|
|
161
31
|
|
|
162
32
|
## Common Mistakes
|
|
163
33
|
|
|
164
|
-
|
|
165
|
-
- **Premature completion**: Declaring "fixed" without running the test suite.
|
|
166
|
-
- **Uncontrolled refactoring**: Rewriting adjacent components while fixing a 1-line bug.
|
|
167
|
-
|
|
168
|
-
---
|
|
34
|
+
Guessing imports; declaring success without relevant evidence; repeated role banners; running every project gate for a typo; presenting model-specific gains without measurement.
|
|
169
35
|
|
|
170
36
|
## Integration Notes
|
|
171
37
|
|
|
172
|
-
-
|
|
173
|
-
- Enforces the 7-rung ladder of `ponytail-mindset`.
|
|
174
|
-
- Acts as the baseline behavioral guardrail across all Gemini and Antigravity operations.
|
|
38
|
+
engineering-workflow owns the lifecycle, ponytail-mindset owns complexity choices, and security owns protected boundaries. This guidance supplements those skills for Gemini.
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
schemaVersion: 2
|
|
2
2
|
name: gemini-precision
|
|
3
3
|
type: instruction-only
|
|
4
|
-
description:
|
|
4
|
+
description: "Execution guidance for Gemini: inspect code, preserve scope, and report relevant verification evidence."
|
|
5
5
|
version: 1.0.0
|
|
6
6
|
resources:
|
|
7
7
|
- EXAMPLES.md
|
|
@@ -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.
|
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gstack-roles
|
|
3
|
-
description: Compatibility alias for engineering-workflow with optional specialist review perspectives.
|
|
3
|
+
description: "Compatibility alias for engineering-workflow with optional specialist review perspectives."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# gstack-roles
|
|
7
7
|
|
|
8
8
|
## Overview
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Deprecated compatibility identifier. Use [engineering-workflow](../engineering-workflow/SKILL.md) for the canonical instructions.
|
|
11
11
|
|
|
12
12
|
## When to Use
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
An existing configuration or user explicitly names gstack-roles.
|
|
15
15
|
|
|
16
16
|
## Rules & Patterns
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Read [references/roles.md](references/roles.md) for detailed procedures and examples only when needed.
|
|
18
|
+
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.
|
|
21
19
|
|
|
22
20
|
## Code Examples
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
Explicit gstack-roles selection resolves to engineering-workflow; inspect the resolver result rather than assuming both bodies were loaded.
|
|
25
23
|
|
|
26
24
|
## Validation Checklist
|
|
27
25
|
|
|
28
|
-
- [ ]
|
|
29
|
-
- [ ]
|
|
30
|
-
- [ ]
|
|
26
|
+
- [ ] Canonical guidance is used.
|
|
27
|
+
- [ ] Alias resolution adds no duplicate body.
|
|
28
|
+
- [ ] Evidence scope and limitations are stated.
|
|
31
29
|
|
|
32
30
|
## Common Mistakes
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
Treating this compatibility name as an independent engine or a mandatory ceremony.
|
|
35
33
|
|
|
36
34
|
## Integration Notes
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
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
|
}
|