@kenkaiiii/ggcoder 5.86.3 → 5.87.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/README.md +23 -31
- package/assets/skills/bulletproof/SKILL.md +2 -0
- package/assets/skills/compliance-guard/SKILL.md +1 -1
- package/assets/skills/lean/SKILL.md +2 -0
- package/dist/app-sidecar/progress-manager.d.ts +2 -20
- package/dist/app-sidecar/progress-manager.js +2 -15
- package/dist/app-sidecar/progress-manager.js.map +1 -1
- package/dist/app-sidecar/royale.d.ts +26 -24
- package/dist/app-sidecar/royale.js +85 -187
- package/dist/app-sidecar/royale.js.map +1 -1
- package/dist/app-sidecar.js +32 -40
- package/dist/app-sidecar.js.map +1 -1
- package/dist/core/autopilot-gate.js +2 -3
- package/dist/core/autopilot-gate.js.map +1 -1
- package/dist/core/bundled-agents.js +7 -27
- package/dist/core/bundled-agents.js.map +1 -1
- package/dist/core/checklist-items.d.ts +0 -8
- package/dist/core/checklist-items.js +0 -8
- package/dist/core/checklist-items.js.map +1 -1
- package/dist/core/code-retrieval.d.ts +1 -1
- package/dist/core/code-retrieval.js +2 -2
- package/dist/core/code-retrieval.js.map +1 -1
- package/dist/core/mcp/deferred-catalog.d.ts +1 -1
- package/dist/core/mcp/deferred-catalog.js +1 -1
- package/dist/core/skills.d.ts +6 -0
- package/dist/core/skills.js +11 -3
- package/dist/core/skills.js.map +1 -1
- package/dist/core/subagent-policy.d.ts +6 -0
- package/dist/core/subagent-policy.js +21 -2
- package/dist/core/subagent-policy.js.map +1 -1
- package/dist/core/subagent-receipt.d.ts +2 -2
- package/dist/core/subagent-receipt.js +5 -8
- package/dist/core/subagent-receipt.js.map +1 -1
- package/dist/core/trophies/catalog-more.js +0 -20
- package/dist/core/trophies/catalog-more.js.map +1 -1
- package/dist/core/trophies/engine.js +0 -4
- package/dist/core/trophies/engine.js.map +1 -1
- package/dist/core/trophies/types.d.ts +1 -1
- package/dist/core/trophies/types.js +0 -2
- package/dist/core/trophies/types.js.map +1 -1
- package/dist/goals-agent/goal-team.js +3 -4
- package/dist/goals-agent/goal-team.js.map +1 -1
- package/dist/modes/acp-mode.js +0 -1
- package/dist/modes/acp-mode.js.map +1 -1
- package/dist/tools/index.d.ts +0 -2
- package/dist/tools/index.js +0 -6
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/operations.js +1 -1
- package/dist/tools/operations.js.map +1 -1
- package/dist/tools/prompt-hints.js +0 -6
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/tools/skill.js +11 -5
- package/dist/tools/skill.js.map +1 -1
- package/dist/tools/tool-tiers.d.ts +2 -1
- package/dist/tools/tool-tiers.js +2 -3
- package/dist/tools/tool-tiers.js.map +1 -1
- package/dist/ui/components/SkillsOverlay.js +2 -1
- package/dist/ui/components/SkillsOverlay.js.map +1 -1
- package/package.json +6 -5
- package/assets/skills/clarify/SKILL.md +0 -39
- package/assets/skills/code-review/SKILL.md +0 -82
- package/assets/skills/code-review/references/agent-diffs.md +0 -27
- package/assets/skills/code-review/references/tests.md +0 -19
- package/assets/skills/evidence-led-ui/LICENSES.md +0 -79
- package/assets/skills/evidence-led-ui/SKILL.md +0 -95
- package/assets/skills/evidence-led-ui/references/anti-defaults.md +0 -110
- package/assets/skills/evidence-led-ui/references/archetypes.md +0 -97
- package/assets/skills/evidence-led-ui/references/craft-rulings.md +0 -242
- package/assets/skills/evidence-led-ui/references/direction.md +0 -116
- package/assets/skills/evidence-led-ui/references/methodology.md +0 -64
- package/assets/skills/evidence-led-ui/references/observed-patterns.md +0 -68
- package/assets/skills/evidence-led-ui/references/production-contract.md +0 -148
- package/assets/skills/evidence-led-ui/references/provenance.md +0 -142
- package/assets/skills/evidence-led-ui/references/quality-rubric.md +0 -126
- package/assets/skills/evidence-led-ui/references/ui-libraries.md +0 -30
- package/assets/skills/refactoring/SKILL.md +0 -72
- package/assets/skills/refactoring/references/agent-pitfalls.md +0 -46
- package/assets/skills/refactoring/references/legacy.md +0 -70
- package/assets/skills/refactoring/references/smells.md +0 -71
- package/assets/skills/root-cause/SKILL.md +0 -46
- package/assets/skills/shared-language/SKILL.md +0 -32
- package/assets/skills/tdd/SKILL.md +0 -42
- package/dist/app-sidecar/royale-bug.d.ts +0 -19
- package/dist/app-sidecar/royale-bug.js +0 -112
- package/dist/app-sidecar/royale-bug.js.map +0 -1
- package/dist/app-sidecar/royale-deploy.d.ts +0 -5
- package/dist/app-sidecar/royale-deploy.js +0 -76
- package/dist/app-sidecar/royale-deploy.js.map +0 -1
- package/dist/tools/code-nav.d.ts +0 -29
- package/dist/tools/code-nav.js +0 -299
- package/dist/tools/code-nav.js.map +0 -1
- package/dist/tools/search-code.d.ts +0 -10
- package/dist/tools/search-code.js +0 -90
- package/dist/tools/search-code.js.map +0 -1
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,GAGhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;A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CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAA0B,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAuB,MAAM,iBAAiB,CAAC"}
|
package/dist/tools/operations.js
CHANGED
|
@@ -94,7 +94,7 @@ export async function readFileBounded(filePath, limit = MAX_READ_BYTES) {
|
|
|
94
94
|
*/
|
|
95
95
|
export const localOperations = {
|
|
96
96
|
// Bounded deliberately: this is the chokepoint every file-reading tool goes
|
|
97
|
-
// through (read, edit
|
|
97
|
+
// through (read, edit), so the cap lives here once
|
|
98
98
|
// rather than in each caller. A remote implementation owns its own bound.
|
|
99
99
|
readFile: async (path) => (await readFileBounded(path)).toString("utf-8"),
|
|
100
100
|
writeFile: async (path, content) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/tools/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AAGtF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAE/C,qFAAqF;AACrF,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAE/B;IACA;IACA;IAHX,YACW,QAAgB,EAChB,IAAY,EACZ,KAAa;QAEtB,KAAK,CACH,WAAW,CAAC,IAAI,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB;YAC1D,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,mBAAmB,QAAQ,EAAE,CACpE,CAAC;QAPO,aAAQ,GAAR,QAAQ,CAAQ;QAChB,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAAQ;QAMtB,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AAED,wFAAwF;AACxF,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IACvB;IAArB,YAAqB,QAAgB;QACnC,KAAK,CAAC,uBAAuB,QAAQ,EAAE,CAAC,CAAC;QADtB,aAAQ,GAAR,QAAQ,CAAQ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ACnB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,KAAK,EAAE,OAAO,CAAC,KAA2E;KAC3F,CAAC;CACL,CAAC"}
|
|
@@ -15,8 +15,6 @@ export const TOOL_PROMPT_HINTS = {
|
|
|
15
15
|
ui_adopt: "Adopt Bklit/Kokonut component source.",
|
|
16
16
|
find: "Glob search.",
|
|
17
17
|
ls: "List a dir.",
|
|
18
|
-
code_nav: "Exact definitions/callers.",
|
|
19
|
-
code_search: "Find code by meaning (“where is X”).",
|
|
20
18
|
task_send: "Process stdin.",
|
|
21
19
|
spawn_agent: "Parallel child agents.",
|
|
22
20
|
source_path: "Dependency source.",
|
|
@@ -105,8 +103,6 @@ export const BUILTIN_TOOL_NAMES = [
|
|
|
105
103
|
"ask_user",
|
|
106
104
|
"bash",
|
|
107
105
|
"checklist",
|
|
108
|
-
"code_nav",
|
|
109
|
-
"code_search",
|
|
110
106
|
"debug",
|
|
111
107
|
"edit",
|
|
112
108
|
"enter_plan",
|
|
@@ -146,8 +142,6 @@ export const DEFAULT_TOOL_NAMES = [
|
|
|
146
142
|
"bash",
|
|
147
143
|
"find",
|
|
148
144
|
"grep",
|
|
149
|
-
"code_nav",
|
|
150
|
-
"code_search",
|
|
151
145
|
"ls",
|
|
152
146
|
"source_path",
|
|
153
147
|
"web_fetch",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-hints.js","sourceRoot":"","sources":["../../src/tools/prompt-hints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,uCAAuC;IACjD,IAAI,EAAE,cAAc;IACpB,EAAE,EAAE,aAAa;IACjB,
|
|
1
|
+
{"version":3,"file":"prompt-hints.js","sourceRoot":"","sources":["../../src/tools/prompt-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ACV,aAAa;IACb,WAAW;IACX,WAAW;IACX,OAAO;IACP,aAAa;IACb,aAAa;IACb,UAAU;IACV,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,OAAO;CACR,CAAC;AAEF,oEAAoE;AACpE,MAAM,CAAC,MAAM,kBAAkB,GAAsB;IACnD,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,IAAI;IACJ,aAAa;IACb,WAAW;IACX,aAAa;IACb,WAAW;IACX,YAAY;IACZ,WAAW;IACX,UAAU;IACV,OAAO;IACP,gBAAgB;IAChB,UAAU;CACX,CAAC"}
|
package/dist/tools/skill.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { CONTEXT_LIMITS } from "../core/context-limits.js";
|
|
3
3
|
import { renderSkillLines } from "../core/skills.js";
|
|
4
|
+
// Haiku 5.5, loading 3 skills in parallel, sent `{ args }` with no `skill` in
|
|
5
|
+
// 3 of 9 calls (bench/prompt-diet skills-haiku-fix-1027, review-data); each
|
|
6
|
+
// failed call cost a turn. Field descriptions make the required name explicit.
|
|
4
7
|
const parameters = z.object({
|
|
5
|
-
skill: z.string(),
|
|
6
|
-
args: z.string().optional(),
|
|
8
|
+
skill: z.string().describe("Required: the exact skill name from the list. One skill per call."),
|
|
9
|
+
args: z.string().optional().describe("Optional context for the skill."),
|
|
7
10
|
});
|
|
8
11
|
export function createSkillTool(skills, limits = CONTEXT_LIMITS, blocked = []) {
|
|
9
12
|
// Case-insensitive: discovery dedupes lowercase names, so `Foo` can be
|
|
@@ -26,7 +29,10 @@ export function createSkillTool(skills, limits = CONTEXT_LIMITS, blocked = []) {
|
|
|
26
29
|
// Thrown, not returned: a plain-text "not found" reads as success to the
|
|
27
30
|
// model. Bench (glm-ab7): GLM "loaded" skill "enter_plan", believed it was
|
|
28
31
|
// in plan mode, and edited without the plan step. Name the real tool.
|
|
29
|
-
const available = skills
|
|
32
|
+
const available = skills
|
|
33
|
+
.filter((s) => !s.hidden)
|
|
34
|
+
.map((s) => s.name)
|
|
35
|
+
.join(", ");
|
|
30
36
|
throw new Error(`Skill "${input.skill}" not found; nothing was loaded. Skills: ${available || "none"}. ` +
|
|
31
37
|
`If "${input.skill}" is a tool, call that tool directly instead.`);
|
|
32
38
|
}
|
|
@@ -60,7 +66,7 @@ export const DELEGATION_RULES = "Delegation, only where the skill's Scaling sect
|
|
|
60
66
|
// say not to ask now, and forbid branches or commits a skill may suggest.
|
|
61
67
|
export const HOST_RULES = "If your host instructions say not to ask the user right now (e.g. a running goal), use the default or recommended answer the skill gives for each question and report what you chose. Host rules on branches, commits and installs override the skill.";
|
|
62
68
|
function generateSkillDescription(skills, limits = CONTEXT_LIMITS) {
|
|
63
|
-
if (skills.
|
|
69
|
+
if (!skills.some((s) => !s.hidden)) {
|
|
64
70
|
return "Invoke a skill by name. No skills are currently available.";
|
|
65
71
|
}
|
|
66
72
|
// The active schema owns skill discovery; the system prompt omits its duplicate catalog.
|
|
@@ -78,7 +84,7 @@ function generateSkillDescription(skills, limits = CONTEXT_LIMITS) {
|
|
|
78
84
|
`Specialised method checklists. When the work is in a skill's scope below, load it before writing code, and before giving a review or a safety verdict. Match the work, not the topic: routine fixes and renames need none. Respect exclusions; never reload one.\n` +
|
|
79
85
|
// Previously only in the no-skill-tool fallback prompt, so normal sessions
|
|
80
86
|
// never saw it and launch checks picked one skill and skipped the rest.
|
|
81
|
-
`Launch-readiness asks ("ready to ship?"): cover every in-scope skill (durable,
|
|
87
|
+
`Launch-readiness asks ("ready to ship?"): cover every in-scope skill (durable, compliance-guard), one report-only child each in one spawn_agent call where delegation is available.\n\n` +
|
|
82
88
|
`${lines.join("\n")}${overflow}`);
|
|
83
89
|
}
|
|
84
90
|
//# sourceMappingURL=skill.js.map
|
package/dist/tools/skill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.js","sourceRoot":"","sources":["../../src/tools/skill.ts"],"names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E;IACjE,oQAAoQ;QACpQ,2EAA2E;QAC3E,wEAAwE;QACxE,yLAAyL;QACzL,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,QAAQ,EAAE,CACjC,CAAC;AACJ,CAAC"}
|
|
@@ -34,7 +34,8 @@ export declare const CORE_TOOL_NAMES: readonly string[];
|
|
|
34
34
|
*
|
|
35
35
|
* The 2026-10 prompt diet (bench/prompt-diet, GLM-5.3-Flash, 22 tasks) counted
|
|
36
36
|
* 1,429 sessions over 60 days and deferred every built-in under the one-in-five
|
|
37
|
-
* rule: find/ls (8%), code_search/code_nav (5
|
|
37
|
+
* rule: find/ls (8%), code_search/code_nav (5%; both removed 2026-10-27 after 0
|
|
38
|
+
* calls in 2,818 sessions), spawn_agent (4%), web_fetch
|
|
38
39
|
* (3%), enter_plan/exit_plan (1%), task_send (0%). Together ~1.9k tokens per
|
|
39
40
|
* request. Promotion appends to the tool list, so a session that does reach
|
|
40
41
|
* one pays a cache restart once; the bench showed no pass-rate or speed loss.
|
package/dist/tools/tool-tiers.js
CHANGED
|
@@ -45,7 +45,8 @@ export const CORE_TOOL_NAMES = [
|
|
|
45
45
|
*
|
|
46
46
|
* The 2026-10 prompt diet (bench/prompt-diet, GLM-5.3-Flash, 22 tasks) counted
|
|
47
47
|
* 1,429 sessions over 60 days and deferred every built-in under the one-in-five
|
|
48
|
-
* rule: find/ls (8%), code_search/code_nav (5
|
|
48
|
+
* rule: find/ls (8%), code_search/code_nav (5%; both removed 2026-10-27 after 0
|
|
49
|
+
* calls in 2,818 sessions), spawn_agent (4%), web_fetch
|
|
49
50
|
* (3%), enter_plan/exit_plan (1%), task_send (0%). Together ~1.9k tokens per
|
|
50
51
|
* request. Promotion appends to the tool list, so a session that does reach
|
|
51
52
|
* one pays a cache restart once; the bench showed no pass-rate or speed loss.
|
|
@@ -74,8 +75,6 @@ export const DEFERRED_TOOL_NAMES = [
|
|
|
74
75
|
"task_stop",
|
|
75
76
|
"find",
|
|
76
77
|
"ls",
|
|
77
|
-
"code_search",
|
|
78
|
-
"code_nav",
|
|
79
78
|
"web_fetch",
|
|
80
79
|
"task_send",
|
|
81
80
|
"spawn_agent",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-tiers.js","sourceRoot":"","sources":["../../src/tools/tool-tiers.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,0EAA0E;IAC1E,sEAAsE;IACtE,4EAA4E;IAC5E,UAAU;IACV,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,aAAa;CACd,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"tool-tiers.js","sourceRoot":"","sources":["../../src/tools/tool-tiers.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,0EAA0E;IAC1E,sEAAsE;IACtE,4EAA4E;IAC5E,UAAU;IACV,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,aAAa;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAwB,IAAI,GAAG,CAAC;IACjE,aAAa;IACb,WAAW;IACX,WAAW;IACX,YAAY;IACZ,cAAc;IACd,eAAe;IACf,aAAa;IACb,iBAAiB;IACjB,WAAW;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,aAAa;IACb,WAAW;IACX,MAAM;IACN,IAAI;IACJ,WAAW;IACX,WAAW;IACX,aAAa;IACb,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,UAAU;IACV,UAAU;IACV,aAAa;IACb,UAAU;IACV,aAAa;IACb,YAAY;IACZ,OAAO;IACP,gBAAgB;IAChB,OAAO;IACP,WAAW;IACX,cAAc;IACd,eAAe;IACf,YAAY;IACZ,aAAa;IACb,iBAAiB;CAClB,CAAC;AAEF,MAAM,YAAY,GAAwB,IAAI,GAAG,CAAC,mBAAmB,CAAC,CAAC;AASvE;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAA2B;IAC9D,MAAM,IAAI,GAAgB,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAgB,EAAE,CAAC;IACjC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;YAChD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -51,7 +51,8 @@ export function SkillsOverlay({ cwd, onClose }) {
|
|
|
51
51
|
// and directory-layout (<dir>/SKILL.md) skills both show up.
|
|
52
52
|
useEffect(() => {
|
|
53
53
|
void discoverSkills({ globalSkillsDir: getAppPaths().skillsDir, projectDir: cwd }).then((s) => {
|
|
54
|
-
|
|
54
|
+
// Hidden skills (Checklist-only) aren't for routine use; don't offer them.
|
|
55
|
+
setSkills(s.filter((skill) => !skill.hidden));
|
|
55
56
|
setLoaded(true);
|
|
56
57
|
});
|
|
57
58
|
}, [cwd]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillsOverlay.js","sourceRoot":"","sources":["../../../src/ui/components/SkillsOverlay.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,O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,OAAO,sBAAc,EACvC,YAAY,EACb,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,OAAO,oBAAY,EACrC,QAAQ,IACJ,GACH,IACF,CACP,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenkaiiii/ggcoder",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.87.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Lean CLI coding agent for 12 LLM providers and local models, with OAuth for Anthropic, OpenAI and Gemini",
|
|
6
6
|
"license": "MIT",
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
"typescript-language-server": "^5.3.0",
|
|
116
116
|
"wrap-ansi": "^10.0.0",
|
|
117
117
|
"zod": "^4.4.3",
|
|
118
|
-
"@kenkaiiii/gg-agent": "5.
|
|
119
|
-
"@kenkaiiii/gg-
|
|
120
|
-
"@kenkaiiii/gg-
|
|
118
|
+
"@kenkaiiii/gg-agent": "5.87.0",
|
|
119
|
+
"@kenkaiiii/gg-core": "5.87.0",
|
|
120
|
+
"@kenkaiiii/gg-ai": "5.87.0"
|
|
121
121
|
},
|
|
122
122
|
"optionalDependencies": {
|
|
123
123
|
"@huggingface/transformers": "4.2.0",
|
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
"check": "tsc --noEmit",
|
|
149
149
|
"test": "vitest run",
|
|
150
150
|
"bench:edit": "tsx src/core/hashline-edit-benchmark.ts",
|
|
151
|
-
"bench:search": "tsx src/core/semantic-search-benchmark.ts"
|
|
151
|
+
"bench:search": "tsx src/core/semantic-search-benchmark.ts",
|
|
152
|
+
"bench:context": "tsx src/core/context-policy-benchmark.ts"
|
|
152
153
|
}
|
|
153
154
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: clarify
|
|
3
|
-
description: Use when requirements are genuinely unsettled, or the user asks to be interviewed on a plan, spec or design. Do NOT use for routine work.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Clarify
|
|
7
|
-
|
|
8
|
-
Decision-forcing, not permission-asking. Pick the mode:
|
|
9
|
-
|
|
10
|
-
- **Quick gate** (mid-build, a blocking decision appears) → one `ask_user` call with every blocking question; keep building everything that does not depend on the answer. Never halt the whole task at one branch point.
|
|
11
|
-
- **Full interview** (user asks to refine a plan/spec/design) → run the rounds below.
|
|
12
|
-
|
|
13
|
-
## Rules for every question
|
|
14
|
-
|
|
15
|
-
1. **Never ask for facts.** If reading code, running a command, or checking docs can answer it, do that instead. Only decisions reach the user: product calls, taste, tradeoffs with real stakes.
|
|
16
|
-
2. **Ask only the frontier.** A question is on the frontier when every decision it depends on is settled ("needs persistence?" before "which database?"). Never re-ask a settled decision.
|
|
17
|
-
3. **One `ask_user` call per round, never prose questions.** Each question: clickable options, your recommended option first and marked, a one-line reason, and the **default** you will apply if skipped ("Default if skipped: SQLite").
|
|
18
|
-
4. **Show behaviour choices as examples.** When options differ in behaviour, give one concrete case per option ("Given an empty cart, When checkout is pressed, Then …"). Examples expose disagreement that abstract wording hides.
|
|
19
|
-
|
|
20
|
-
## Full-interview rounds
|
|
21
|
-
|
|
22
|
-
1. Investigate first; list open decisions; keep only the frontier.
|
|
23
|
-
2. Ask the round (rule 3).
|
|
24
|
-
3. Record answers as one-line facts — `Settled: dark theme only`. Skipped questions settle to their stated default.
|
|
25
|
-
4. Repeat until a round yields no new frontier questions.
|
|
26
|
-
5. Close: print the decision list plus Given/When/Then acceptance examples for each load-bearing behaviour, then build (or hand back if the user only wanted the plan).
|
|
27
|
-
|
|
28
|
-
Hand-offs (shared-language skill): newly settled domain terms → glossary; a decision that is hard to reverse, surprising, and a real tradeoff → offer an ADR.
|
|
29
|
-
|
|
30
|
-
## Do not
|
|
31
|
-
|
|
32
|
-
- Drip one question per reply — batch the round.
|
|
33
|
-
- Ask about futures nobody has committed to; ask only what is load-bearing for work about to start.
|
|
34
|
-
|
|
35
|
-
## Scaling: one agent or several
|
|
36
|
-
|
|
37
|
-
Main thread only; the interview itself is never delegated. Fact-finding across several packages or the web may go to read-only repo helpers or a researcher. Helper types, brief contents and merge rules come with the skill loader.
|
|
38
|
-
|
|
39
|
-
Sources (accessed 3 October 2026): Given-When-Then — https://martinfowler.com/bliki/GivenWhenThen.html
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-review
|
|
3
|
-
description: Use when asked to review a diff, PR or finished work. Do NOT use mid-build.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Code Review
|
|
7
|
-
|
|
8
|
-
**Route first:**
|
|
9
|
-
|
|
10
|
-
| Situation | Mode | Next |
|
|
11
|
-
|---|---|---|
|
|
12
|
-
| Small diff: one concern, ≲ ~400 changed lines, few files | **Single pass** | Method below; both axes yourself, spec first, then standards |
|
|
13
|
-
| Large diff, multi-package PR, or many unrelated concerns | **Fan-out** | Build the ledger, then `## Scaling` |
|
|
14
|
-
| Diff written by an agent (including you, this session) | Either mode **+ agent checks** | Also run `references/agent-diffs.md` |
|
|
15
|
-
| User asks "is it secure?" | Defer | Load the `bulletproof` skill — do not audit security here |
|
|
16
|
-
|
|
17
|
-
Two questions, kept separate because each contaminates the other:
|
|
18
|
-
|
|
19
|
-
1. **Spec axis** — does the change do what was asked, completely, and nothing unasked?
|
|
20
|
-
2. **Standards axis** — does it meet how this repo builds: design, correctness, error handling, tests, naming, dead code, scope?
|
|
21
|
-
|
|
22
|
-
## Method
|
|
23
|
-
|
|
24
|
-
1. **Pre-flight.** Resolve the exact ref/range (`git diff --stat <base>...<head>`) and confirm it is non-empty BEFORE review work — a bad ref must fail here. Read the motivating request/issue/task first; spec compliance cannot be judged without the spec. No spec available → say so and review standards only.
|
|
25
|
-
2. **Claims ledger.** List every claim from the PR description, commit messages, or the agent's "done" report ("adds X", "fixes Y", "tests pass", "no behaviour change"). Each row ends `verified (file:line or command output)` / `contradicted` / `unverifiable`. A claim with no matching hunk is a **[spec]** finding.
|
|
26
|
-
3. **Run what is cheap.** Typecheck, lint, affected tests — the commands CI uses. Record the actual result. Never write "tests pass" from reading.
|
|
27
|
-
4. **Read the whole diff, then the context.** Every changed line, plus callers of changed signatures (`code_nav references`). Start with design: does the change belong here, at this layer, now? (Google eng-practices ranks design first.)
|
|
28
|
-
5. **Spec pass, then standards pass.** Never interleave. Standards baseline below; agent failure modes in `references/agent-diffs.md`; test quality in `references/tests.md`.
|
|
29
|
-
6. **Report, then fix what the user selects.** Never auto-apply fixes mid-review.
|
|
30
|
-
|
|
31
|
-
## Findings format
|
|
32
|
-
|
|
33
|
-
One line each, anchored and actionable:
|
|
34
|
-
|
|
35
|
-
`[severity] [spec|standards] path/file.ts:42 — problem. Why it matters. Fix: concrete change.`
|
|
36
|
-
|
|
37
|
-
| Severity | Means | Example |
|
|
38
|
-
|---|---|---|
|
|
39
|
-
| **blocking** | Must change before merge | Wrong behaviour, missing requirement, deleted/weakened test, swallowed error, hallucinated API or package |
|
|
40
|
-
| **non-blocking** | Should change; may follow up | Duplicate helper, weak assertion on a non-critical path |
|
|
41
|
-
| **nit** | Optional polish | Naming, local readability |
|
|
42
|
-
| **question** | You cannot tell; author must answer | Unclear intent, unverifiable claim |
|
|
43
|
-
|
|
44
|
-
Rules:
|
|
45
|
-
- Keep **[spec]** and **[standards]** as two separate lists — never merge the lists into one ranking; the axes are not comparable and merging re-ranks by noise. Order by severity within each list.
|
|
46
|
-
- Every finding cites a `file:line` you re-opened yourself. No line → it is a **question**, not a finding.
|
|
47
|
-
- Comment on the code, not the author; say why.
|
|
48
|
-
- Skip what tooling already enforces — if lint/CI catches it, it is noise.
|
|
49
|
-
- Security: one line, `[defer → bulletproof] file:line — what looked risky`. Do not rate or fix it here.
|
|
50
|
-
|
|
51
|
-
## Standards baseline (when the repo defines none)
|
|
52
|
-
|
|
53
|
-
- **Design:** abstraction with one caller; logic in the wrong layer; new dependency where stdlib or an installed package does it.
|
|
54
|
-
- **Correctness:** boundary/off-by-one, null/empty handling, ordering/concurrency changes, error paths.
|
|
55
|
-
- **Errors:** I/O and external calls without handling; broad `catch` that swallows or logs-and-continues.
|
|
56
|
-
- **Tests:** behaviour change without a test; tests that assert internals or nothing (`references/tests.md`).
|
|
57
|
-
- **Hygiene:** dead code, commented-out blocks, debug prints, names that hide intent, secrets in the diff.
|
|
58
|
-
- **Suppression:** skipped tests, `as any`/`@ts-ignore`/`noqa`/`eslint-disable`, relaxed thresholds, `continue-on-error` in CI.
|
|
59
|
-
- **Scope:** files or refactors outside the request; config, lockfile, or CI changes nobody asked for.
|
|
60
|
-
|
|
61
|
-
## Verdict
|
|
62
|
-
|
|
63
|
-
- **works as asked** / **works with gaps** (name them) / **not ready** (blocking reasons).
|
|
64
|
-
- Claims ledger: N verified, N contradicted, N unverifiable.
|
|
65
|
-
- What you ran (commands + result) and **what was not checked**.
|
|
66
|
-
|
|
67
|
-
Never "looks good"/"LGTM" without stating what was and was not verified. Never certify a change safe or bug-free.
|
|
68
|
-
|
|
69
|
-
## Scaling: one agent or several
|
|
70
|
-
|
|
71
|
-
- Single-pass size: main thread only, never spawn.
|
|
72
|
-
- Larger, multi-package, or > ~15 files: build a coverage ledger (rows = lens: spec, standards, tests, agent checks × package/directory; each ends `checked-with-findings` / `checked-clean` / `not-checked(reason)`), then one read-only repo helper per row group. Brief each with the exact `git diff <base>...<head> -- <paths>` and the spec text verbatim (spec lens) or repo conventions (standards lens).
|
|
73
|
-
- Security-sensitive hunks: a security auditor briefed with the bulletproof skill root, then a verifier on its findings.
|
|
74
|
-
- High-stakes merge (release, > ~1,000 lines): one fresh-context verifier tries to disprove each blocking finding.
|
|
75
|
-
- Merging: dedupe, and keep spec and standards lists separate. Helper types, brief contents and merge rules come with the skill loader.
|
|
76
|
-
|
|
77
|
-
## Sources (SNAPSHOT, accessed 3 October 2026)
|
|
78
|
-
|
|
79
|
-
- Google eng-practices — https://google.github.io/eng-practices/review/reviewer/looking-for.html, …/reviewer/comments.html, …/reviewer/standard.html, …/developer/small-cls.html
|
|
80
|
-
- Conventional Comments (labels, blocking/non-blocking) — https://conventionalcomments.org/
|
|
81
|
-
- Mutation-testing concept — https://stryker-mutator.io/docs/
|
|
82
|
-
- Package hallucination — Spracklen et al., USENIX Security 2025 (arXiv:2406.10279); 2026 re-evaluation, not peer-reviewed (arXiv:2605.17062), via https://socket.dev/blog/slopsquatting-targets-across-frontier-llms
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Agent-Generated Diffs: Failure Modes and Checks
|
|
2
|
-
|
|
3
|
-
Run on any diff an agent wrote (including your own). Each row: what to look for → how to check → default severity.
|
|
4
|
-
|
|
5
|
-
| Failure mode | Check | Severity |
|
|
6
|
-
|---|---|---|
|
|
7
|
-
| **Hallucinated package** | Every new dependency in a manifest: confirm it exists in the registry (`npm view <pkg>`, `pip index versions <pkg>`), is the intended project (not a look-alike name), and is actually imported. Install scripts → defer to bulletproof. | blocking |
|
|
8
|
-
| **Hallucinated API / symbol** | Every newly called function, method, option, or flag: `code_nav definition`, or read the installed source in `node_modules`/site-packages for the pinned version. Typecheck passing is evidence only for typed code. | blocking |
|
|
9
|
-
| **Weakened or deleted tests** | `git diff --stat -- '*test*' '*spec*'`. For each test hunk: removed assertions, loosened matchers (`toEqual`→`toBeDefined`, exact→`toContain`), widened tolerances, added `.skip`/`.only`/`xit`/`@pytest.mark.skip`, snapshots re-recorded without reason. | blocking unless justified in the PR |
|
|
10
|
-
| **Mocked-away assertions** | Test mocks the very unit under test, or asserts only that a mock was called with whatever it was given. | blocking on critical paths |
|
|
11
|
-
| **Swallowed errors** | New `try/catch` / `except Exception` that returns a default, logs and continues, or wraps a whole function. Compare with the code's previous error contract. | blocking |
|
|
12
|
-
| **Dead code / duplicate helpers** | New function that duplicates an existing helper (`grep` the name's verbs, `code_search` the behaviour); unused exports, params, or branches left behind. | non-blocking |
|
|
13
|
-
| **Scope creep / unrequested refactor** | Map every changed file to a requirement. Files with no requirement → list them. Renames/reformatting mixed with behaviour change → ask for a split. | non-blocking; blocking if it changes behaviour |
|
|
14
|
-
| **Fake "done"** | Claims ledger (SKILL.md step 2): "tests pass" with no run; "handles X" with no hunk; TODO/placeholder/`throw new Error("not implemented")` left in. | blocking |
|
|
15
|
-
| **Config / lockfile drift** | Lockfile changes without a manifest change (or vice versa); tsconfig/eslint/biome rules relaxed; CI steps removed or `continue-on-error` added; version bumps nobody asked for. | blocking for relaxed checks; question otherwise |
|
|
16
|
-
| **Suppressions** | New `any`, `!`, `@ts-ignore`, `eslint-disable`, `# type: ignore`, `noqa`. Each needs a reason at the line. | non-blocking (blocking if hiding a failing check) |
|
|
17
|
-
| **Generated / vendored edits** | Hand edits in `dist/`, generated, or vendored files. | blocking |
|
|
18
|
-
|
|
19
|
-
## Quick commands
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
git diff --stat <base>...<head> # scope
|
|
23
|
-
git diff <base>...<head> -- '*.lock' '*lock.json' '*.toml' 'package.json' # dependency drift
|
|
24
|
-
git diff <base>...<head> | grep -nE '^\+.*(\.skip|\.only|xit\(|@ts-ignore|eslint-disable|as any|catch *\()'
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Grep hits are leads, not findings — open each at file:line before reporting.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Reviewing Tests
|
|
2
|
-
|
|
3
|
-
Coverage says a line ran, not that a test would notice it breaking. Review tests with a mutation-testing mindset: "if I broke this line, which test fails?"
|
|
4
|
-
|
|
5
|
-
## Checks
|
|
6
|
-
|
|
7
|
-
1. **Each behaviour change has a test that fails without it.** Mentally revert the production hunk and trace which assertion would fail. None → the test does not cover the change. (Do not stash or reset the author's work to check; if a run is needed, ask first.)
|
|
8
|
-
2. **Mutation spot-check on critical lines** (money, auth, data writes, parsing boundaries): flip a comparison, drop a condition, return early. If a test framework exists (e.g. StrykerJS, mutmut, PIT), suggest running it on the changed files only; do not install it unasked.
|
|
9
|
-
3. **Assertion quality.** Flag:
|
|
10
|
-
- no assertion, or only `toBeDefined`/`toBeTruthy`/`not.toThrow` where a value is knowable;
|
|
11
|
-
- asserting a mock was called, with no check of the outcome;
|
|
12
|
-
- snapshot of a huge object where one field matters;
|
|
13
|
-
- assertions on private internals that block refactoring.
|
|
14
|
-
4. **Real seams.** Mocks only at external boundaries (network, clock, filesystem, randomness). Mocking the unit under test, or the module next to it, proves nothing.
|
|
15
|
-
5. **Edge cases present:** empty, null/undefined, boundary values, error path, concurrency/ordering when relevant.
|
|
16
|
-
6. **Determinism.** No real time, randomness, network, or test-order dependence. Flaky = blocking.
|
|
17
|
-
7. **Test diffs in a "no behaviour change" PR** need a stated reason; otherwise treat as weakened tests (see `agent-diffs.md` table).
|
|
18
|
-
|
|
19
|
-
Report test findings under **[standards]** unless a required test the spec asked for is missing — that is **[spec]**.
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# Licenses and Attributions
|
|
2
|
-
|
|
3
|
-
## Third-party sources of derived observations
|
|
4
|
-
|
|
5
|
-
### VoltAgent/awesome-design-md
|
|
6
|
-
|
|
7
|
-
- Repository: https://github.com/VoltAgent/awesome-design-md
|
|
8
|
-
- Pinned commit: `664b3e78fd1a298ba11973822da988483256d4b4`
|
|
9
|
-
- License: MIT
|
|
10
|
-
- Copyright: Copyright (c) 2026 VoltAgent
|
|
11
|
-
- Use here: counts and short source slugs in `references/observed-patterns.md` and `references/archetypes.md` were derived from the 74 `design-md/*/DESIGN.md` files at the pinned commit. The upstream files are no longer bundled (removed 22 October 2026); read them upstream.
|
|
12
|
-
|
|
13
|
-
The upstream files are provided “as is.” Their analyses of public websites do not transfer ownership of third-party trademarks, proprietary fonts, brand assets, or visual identities.
|
|
14
|
-
|
|
15
|
-
## Referenced but not distributed
|
|
16
|
-
|
|
17
|
-
The following works informed research comparisons. Their source text, assets, databases, and code are not copied into this skill.
|
|
18
|
-
|
|
19
|
-
### Anthropic frontend-design
|
|
20
|
-
|
|
21
|
-
- Source: https://github.com/anthropics/skills/tree/main/skills/frontend-design
|
|
22
|
-
- Repository license: Apache License 2.0
|
|
23
|
-
- Use here: process-level comparison only; the resulting workflow and wording are original synthesis.
|
|
24
|
-
|
|
25
|
-
### Leonxlnx/taste-skill
|
|
26
|
-
|
|
27
|
-
- Source: https://github.com/Leonxlnx/taste-skill
|
|
28
|
-
- License: MIT
|
|
29
|
-
- Use here: research comparison of common landing-page failure patterns; no files copied.
|
|
30
|
-
|
|
31
|
-
### NextLevelBuilder/ui-ux-pro-max-skill
|
|
32
|
-
|
|
33
|
-
- Source: https://github.com/nextlevelbuilder/ui-ux-pro-max-skill
|
|
34
|
-
- License: MIT
|
|
35
|
-
- Use here: research comparison of heuristic-database organization; no files copied.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## Standards and policy references
|
|
39
|
-
|
|
40
|
-
### WCAG 2.2
|
|
41
|
-
|
|
42
|
-
- Source: https://www.w3.org/TR/WCAG22/
|
|
43
|
-
- Status checked 2026-07-13: W3C Recommendation, 12 December 2024
|
|
44
|
-
- Use here: linked accessibility conformance floor; W3C text is not redistributed.
|
|
45
|
-
|
|
46
|
-
### WCAG2ICT
|
|
47
|
-
|
|
48
|
-
- Source: https://www.w3.org/TR/wcag2ict-22/
|
|
49
|
-
- Status checked 2026-07-21: W3C Group Note; informative guidance for applying WCAG 2 Level A and AA to non-web software.
|
|
50
|
-
- Use here: linked native-software accessibility guidance; W3C text is not redistributed.
|
|
51
|
-
|
|
52
|
-
### U.S. Department of Justice ADA web and mobile accessibility guidance
|
|
53
|
-
|
|
54
|
-
- Sources: https://www.ada.gov/resources/web-guidance/ and https://www.ada.gov/resources/2024-03-08-web-rule/
|
|
55
|
-
- Status checked 2026-07-21: current DOJ guidance and Title II rule fact sheet.
|
|
56
|
-
- Use here: legal-context and equal-access boundary only; no source text is redistributed and no legal-compliance conclusion is inferred.
|
|
57
|
-
|
|
58
|
-
### WCAG 3.0
|
|
59
|
-
|
|
60
|
-
- Source: https://www.w3.org/TR/wcag-3.0/
|
|
61
|
-
- Status checked 2026-07-13: W3C Working Draft, 3 March 2026
|
|
62
|
-
- Use here: status clarification only; it is not presented as the conformance target.
|
|
63
|
-
|
|
64
|
-
### Refero Styles
|
|
65
|
-
|
|
66
|
-
- Site: https://styles.refero.design/
|
|
67
|
-
- Robots policy checked: https://styles.refero.design/robots.txt on 2026-07-13
|
|
68
|
-
- Included material: none
|
|
69
|
-
- Allowed runtime use: authorized Refero MCP or user-provided licensed/authorized export only
|
|
70
|
-
|
|
71
|
-
## Icons, fonts, and design-system documentation
|
|
72
|
-
|
|
73
|
-
Lucide, Material Symbols, Phosphor, Carbon Design System, Google Fonts, and web.dev are linked as implementation references in `references/craft-rulings.md` and `references/provenance.md`. No icon package source, font binary, design-system source, or documentation text from those projects is bundled in this skill. Implementations must follow the selected package/font license and the host project's dependency, privacy, CSP, and attribution policies.
|
|
74
|
-
|
|
75
|
-
W3C WAI and Internationalization guidance, WHATWG HTML, MDN, web.dev Baseline and Web Vitals, DTCG, Apple, Android, FTC, OWASP, OpenAI Apps SDK UX guidance, Microsoft HAX, the Agent Skills specification, and Anthropic skill-authoring documentation are linked as production-practice or package-structure references. No source text, example code, platform asset, specification, or report from those sources is redistributed. Short numeric thresholds, standard names, and factual status descriptions are attributed in `references/provenance.md`.
|
|
76
|
-
|
|
77
|
-
## Original material
|
|
78
|
-
|
|
79
|
-
`SKILL.md` and `references/*.md` are original work produced for this installation, except for factual source names, links, and measured corpus observations represented as counts and short source slugs.
|