agent-skillboard 0.1.2 → 0.2.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/CHANGELOG.md +39 -0
- package/README.md +159 -630
- package/docs/adapters.md +96 -96
- package/docs/ai-skill-routing-goal.md +112 -0
- package/docs/capabilities.md +6 -0
- package/docs/install.md +172 -114
- package/docs/policy-model.md +266 -214
- package/docs/positioning.md +94 -94
- package/docs/reference.md +349 -0
- package/docs/routing.md +85 -0
- package/docs/user-flow.md +79 -17
- package/docs/value-proof.md +194 -0
- package/docs/variant-lifecycle.md +86 -0
- package/docs/versioning.md +154 -138
- package/examples/multi-source-skills/anthropic/docx/SKILL.md +8 -8
- package/examples/multi-source-skills/anthropic/skill-creator/SKILL.md +8 -8
- package/examples/multi-source-skills/matt/grill-me/SKILL.md +8 -8
- package/examples/multi-source-skills/matt/tdd/SKILL.md +8 -8
- package/examples/multi-source-skills/omo/review-work/SKILL.md +8 -8
- package/examples/multi-source-skills/omo/ulw-plan/SKILL.md +8 -8
- package/examples/multi-source-skills/private/tdd-work-continuity/SKILL.md +8 -8
- package/examples/multi-source-skills/private/workflow-router/SKILL.md +8 -8
- package/examples/multi-source-skills/wshobson/python-testing/SKILL.md +8 -8
- package/examples/multi-source-skills/wshobson/security-review/SKILL.md +8 -8
- package/examples/skillboard.config.yaml +8 -3
- package/examples/skills/grill-me/SKILL.md +9 -9
- package/examples/skills/grill-with-docs/SKILL.md +9 -9
- package/examples/skills/requirement-intake/SKILL.md +9 -9
- package/examples/skills/tdd/SKILL.md +8 -8
- package/package.json +6 -3
- package/src/advisor/actions.mjs +25 -3
- package/src/advisor/guidance.mjs +232 -0
- package/src/advisor/schema.mjs +2 -0
- package/src/advisor/skills.mjs +2 -0
- package/src/advisor/trust-policy.mjs +5 -3
- package/src/advisor.mjs +36 -7
- package/src/brief-cli.mjs +6 -5
- package/src/brief-renderer.mjs +225 -8
- package/src/cli.mjs +574 -27
- package/src/config-helpers.mjs +34 -18
- package/src/conflicts.mjs +70 -0
- package/src/control/can-use-guard.mjs +8 -3
- package/src/control/skill-crud.mjs +142 -0
- package/src/control/skill-variants.mjs +221 -0
- package/src/control/source-trust.mjs +1 -0
- package/src/control/variant-files.mjs +265 -0
- package/src/control/variant-lifecycle-config.mjs +156 -0
- package/src/control/variant-reset.mjs +171 -0
- package/src/control/variant-status.mjs +75 -0
- package/src/control.mjs +13 -1
- package/src/domain/rules/skills.mjs +60 -0
- package/src/domain/rules/workflows.mjs +13 -0
- package/src/hook-plan.mjs +6 -6
- package/src/impact.mjs +21 -12
- package/src/index.mjs +13 -1
- package/src/lifecycle-cli.mjs +19 -8
- package/src/lifecycle-content.mjs +34 -24
- package/src/route.mjs +537 -0
- package/src/source-verification.mjs +7 -3
- package/src/workspace.mjs +141 -43
- package/tsconfig.lsp.json +1 -1
- package/docs/plans/20260625-080025-skillboard-mvp-review.md +0 -189
- package/docs/plans/README.md +0 -20
package/src/workspace.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { readdir, readFile, realpath, stat } from "node:fs/promises";
|
|
2
|
-
import {
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
3
4
|
import YAML from "yaml";
|
|
4
5
|
import {
|
|
5
6
|
readBoolean,
|
|
7
|
+
readOptionalRecord,
|
|
6
8
|
readOptionalString,
|
|
9
|
+
readRequiredString,
|
|
7
10
|
readString,
|
|
8
11
|
readStringList,
|
|
9
12
|
requireRecord
|
|
@@ -20,40 +23,106 @@ import { normalizeSkillPath } from "./skill-paths.mjs";
|
|
|
20
23
|
export async function loadWorkspace(options) {
|
|
21
24
|
const configText = await readFile(options.configPath, "utf8");
|
|
22
25
|
const parsed = YAML.parse(configText);
|
|
23
|
-
const config = requireRecord(parsed, "config root");
|
|
24
|
-
const version = parseVersion(config.version);
|
|
25
|
-
const skills = parseSkills(config.skills);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
skills,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
path
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
26
|
+
const config = requireRecord(parsed, "config root");
|
|
27
|
+
const version = parseVersion(config.version);
|
|
28
|
+
const skills = parseSkills(config.skills);
|
|
29
|
+
const installUnits = parseInstallUnits(config.install_units);
|
|
30
|
+
return {
|
|
31
|
+
version,
|
|
32
|
+
defaults: parseDefaults(config.defaults),
|
|
33
|
+
installedSkills: await discoverInstalledSkills(options.skillsRoot, skills, {
|
|
34
|
+
configPath: options.configPath,
|
|
35
|
+
env: options.env ?? process.env,
|
|
36
|
+
home: options.home,
|
|
37
|
+
installUnits
|
|
38
|
+
}),
|
|
39
|
+
skills,
|
|
40
|
+
capabilities: parseCapabilities(config.capabilities),
|
|
41
|
+
harnesses: parseHarnesses(config.harnesses),
|
|
42
|
+
installUnits,
|
|
43
|
+
workflows: parseWorkflows(config.workflows)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
async function discoverInstalledSkills(skillsRoot, declaredSkills, options = {}) {
|
|
48
|
+
const installed = [];
|
|
49
|
+
const installedKeys = new Set();
|
|
50
|
+
if (skillsRoot !== undefined) {
|
|
51
|
+
const skillFiles = await findSkillFiles(skillsRoot);
|
|
52
|
+
for (const file of skillFiles) {
|
|
53
|
+
const frontmatter = parseSkillFrontmatter(await readFile(file, "utf8"));
|
|
54
|
+
const path = relative(skillsRoot, file).replaceAll("\\", "/").replace(/\/SKILL\.md$/, "");
|
|
55
|
+
const declared = declaredSkills.find((skill) => skill.path === path);
|
|
56
|
+
appendInstalledSkill(installed, installedKeys, {
|
|
57
|
+
id: declared?.id ?? frontmatter.name ?? path,
|
|
58
|
+
name: frontmatter.name,
|
|
59
|
+
description: frontmatter.description,
|
|
60
|
+
path
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
await appendInstallUnitSkillMetadata(installed, installedKeys, declaredSkills, options);
|
|
65
|
+
return installed.sort((left, right) => left.path.localeCompare(right.path));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function appendInstallUnitSkillMetadata(installed, installedKeys, declaredSkills, options) {
|
|
69
|
+
const units = new Map((options.installUnits ?? []).map((unit) => [unit.id, unit]));
|
|
70
|
+
for (const skill of declaredSkills) {
|
|
71
|
+
if (installedKeys.has(skill.id) || installedKeys.has(skill.path)) {
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
const unit = units.get(skill.ownerInstallUnit);
|
|
75
|
+
const root = resolveStoredPath(unit?.cachePath, options);
|
|
76
|
+
if (root === undefined) {
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
const frontmatter = await readOptionalSkillFrontmatter(join(root, skill.path, "SKILL.md"));
|
|
80
|
+
if (frontmatter === null) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
appendInstalledSkill(installed, installedKeys, {
|
|
84
|
+
id: skill.id,
|
|
85
|
+
name: frontmatter.name,
|
|
86
|
+
description: frontmatter.description,
|
|
87
|
+
path: skill.path
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
async function readOptionalSkillFrontmatter(file) {
|
|
93
|
+
const text = await readFile(file, "utf8").catch(() => null);
|
|
94
|
+
if (text === null) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
try {
|
|
98
|
+
return parseSkillFrontmatter(text);
|
|
99
|
+
} catch {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function appendInstalledSkill(installed, installedKeys, skill) {
|
|
105
|
+
installed.push(skill);
|
|
106
|
+
installedKeys.add(skill.id);
|
|
107
|
+
installedKeys.add(skill.path);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function resolveStoredPath(value, options) {
|
|
111
|
+
if (value === undefined || value.trim() === "") {
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
const home = options.home ?? options.env?.HOME ?? options.env?.USERPROFILE ?? homedir();
|
|
115
|
+
if (value === "~") {
|
|
116
|
+
return home;
|
|
117
|
+
}
|
|
118
|
+
if (value.startsWith("~/") || value.startsWith("~\\")) {
|
|
119
|
+
return join(home, value.slice(2));
|
|
120
|
+
}
|
|
121
|
+
if (isAbsolute(value)) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
return resolve(dirname(options.configPath ?? "."), value);
|
|
125
|
+
}
|
|
57
126
|
|
|
58
127
|
async function findSkillFiles(root, seen = new Set()) {
|
|
59
128
|
const files = [];
|
|
@@ -144,14 +213,43 @@ function parseSkills(value) {
|
|
|
144
213
|
invocation,
|
|
145
214
|
exposure,
|
|
146
215
|
category: readString(skill, "category", "uncategorized"),
|
|
147
|
-
canonicalFor: readStringList(skill, "canonical_for"),
|
|
148
|
-
conflictsWith: readStringList(skill, "conflicts_with"),
|
|
149
|
-
replacedBy: readOptionalString(skill, "replaced_by"),
|
|
150
|
-
ownerInstallUnit: readOptionalString(skill, "owner_install_unit")
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
216
|
+
canonicalFor: readStringList(skill, "canonical_for"),
|
|
217
|
+
conflictsWith: readStringList(skill, "conflicts_with"),
|
|
218
|
+
replacedBy: readOptionalString(skill, "replaced_by"),
|
|
219
|
+
ownerInstallUnit: readOptionalString(skill, "owner_install_unit"),
|
|
220
|
+
variant: parseSkillVariant(skill, `skills.${id}.variant`)
|
|
221
|
+
};
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function parseSkillVariant(skill, label) {
|
|
226
|
+
const raw = readOptionalRecord(skill, "variant", label);
|
|
227
|
+
if (raw === undefined) {
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
const approved = readOptionalRecord(raw, "approved", `${label}.approved`);
|
|
231
|
+
return {
|
|
232
|
+
of: readRequiredString(raw, "of", `${label}.of`),
|
|
233
|
+
adaptedFor: readOptionalString(raw, "adapted_for") ?? null,
|
|
234
|
+
capability: readRequiredString(raw, "capability", `${label}.capability`),
|
|
235
|
+
workflow: readRequiredString(raw, "workflow", `${label}.workflow`),
|
|
236
|
+
status: readRequiredString(raw, "status", `${label}.status`),
|
|
237
|
+
base: parseVariantCheckpoint(raw, "base", `${label}.base`),
|
|
238
|
+
...(approved === undefined ? {} : { approved: parseVariantCheckpoint(raw, "approved", `${label}.approved`) })
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function parseVariantCheckpoint(raw, key, label) {
|
|
243
|
+
const checkpoint = readOptionalRecord(raw, key, label);
|
|
244
|
+
if (checkpoint === undefined) {
|
|
245
|
+
throw new Error(`${label} must be a mapping`);
|
|
246
|
+
}
|
|
247
|
+
return {
|
|
248
|
+
contentDigest: readRequiredString(checkpoint, "content_digest", `${label}.content_digest`),
|
|
249
|
+
snapshot: readRequiredString(checkpoint, "snapshot", `${label}.snapshot`)
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
155
253
|
function parseCapabilities(value) {
|
|
156
254
|
const raw = requireRecord(value ?? {}, "capabilities");
|
|
157
255
|
return Object.entries(raw).map(([name, entry]) => {
|
package/tsconfig.lsp.json
CHANGED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
# skillboard-mvp-review
|
|
2
|
-
|
|
3
|
-
- Skill: tdd-work-continuity
|
|
4
|
-
- Agent: hermes
|
|
5
|
-
- Created: 2026-06-25T08:00:25Z
|
|
6
|
-
- Updated: 2026-06-25T10:05:00Z
|
|
7
|
-
- Workdir: /home/nyxxir/skillboard
|
|
8
|
-
- Status: completed
|
|
9
|
-
|
|
10
|
-
## Goal
|
|
11
|
-
|
|
12
|
-
SkillBoard(`skill-control-plane`)의 MVP 기능과 낶부 도메인 설계를 검토하고, **처음 사용자가 skill을 가져다 붙이고 이용 및 삭제하는 불편을 해소하는 방향인지**, **도메인 설계가 적합하고 확장 가능한지**를 평가한다. 이전 대화에서 제안한 4.1~4.3 UX 개선 항목도 포함된 실행 계획을 문서화한다.
|
|
13
|
-
|
|
14
|
-
## Context
|
|
15
|
-
|
|
16
|
-
- Repo: `/home/nyxxir/skillboard`
|
|
17
|
-
- Relevant files:
|
|
18
|
-
- `src/cli.mjs` — CLI 라우터
|
|
19
|
-
- `src/control.mjs` — skill/workflow/harness/capability CRUD, `can-use`, `guard`, trust/source 분류
|
|
20
|
-
- `src/domain/rules/*.mjs` — 정책 규칙 엔진
|
|
21
|
-
- `src/workspace.mjs` — config 파싱, `SKILL.md` frontmatter 파싱
|
|
22
|
-
- `src/agent-inventory.mjs` — 설치된 agent skill 자동 스캔/병합
|
|
23
|
-
- `src/brief-cli.mjs`, `src/brief-renderer.mjs`, `src/advisor.mjs` — AI/사용자 브리핑
|
|
24
|
-
- `src/impact.mjs`, `src/reconcile.mjs` — 영향도/재조정 분석
|
|
25
|
-
- `src/init.mjs`, `src/uninstall.mjs` — 생명주기
|
|
26
|
-
- Constraints:
|
|
27
|
-
- MVP 단계, npm publish 전 (`version: 0.1.0`)
|
|
28
|
-
- Node.js >= 20, ESM, yaml 의존성 하나
|
|
29
|
-
- cross-platform CI (ubuntu/macOS/windows × node 20/22)
|
|
30
|
-
|
|
31
|
-
## Findings Summary
|
|
32
|
-
|
|
33
|
-
### 1. 도메인 설계: 적합하고 확장 가능함 (Score: 8/10)
|
|
34
|
-
|
|
35
|
-
**핵심 엔티티 5개**가 skill 생태계의 실제 관심사를 잘 반영한다.
|
|
36
|
-
|
|
37
|
-
| Entity | 역할 | 적합성 |
|
|
38
|
-
|--------|------|--------|
|
|
39
|
-
| `skills` | 선언된 스킬의 상태/호출방식/노출범위 | ✅ 적절. status/invocation/exposure 3중 분리로 정책 표현력 높음 |
|
|
40
|
-
| `capabilities` | 역할 기반 스킬 추상화 | ✅ 적절. canonical/alternatives/default_policy로 교체/대안 추천 가능 |
|
|
41
|
-
| `workflows` | 스킬이 활성화되는 맥락 | ✅ 적절. active_skills/blocked_skills/required_capabilities로 명시적 제어 |
|
|
42
|
-
| `harnesses` | runtime/command 제공자 추적 | ✅ 적절. harness 제거 시 workflow 영향도 파악 가능 |
|
|
43
|
-
| `install_units` | plugin/marketplace/harness 등의 부모 단위 | ✅ 매우 적절. skill 평탄화 문제 해결 |
|
|
44
|
-
|
|
45
|
-
**확장 가능성**
|
|
46
|
-
- `INSTALL_UNIT_KIND_VALUES`에 `skill`, `plugin`, `marketplace`, `harness`, `mcp-server`, `hook`, `agent`, `lsp`, `custom`을 두어 새로운 runtime primitive 추가가 용이함.
|
|
47
|
-
- `source_classes.mjs`의 우선순위/분류 함수가 데이터 기반으로 되어 있어 새 source class 추가가 쉬움.
|
|
48
|
-
- `source profile` 어댑터 모델이 하드코딩을 피하고 데이터 주도 import를 지향함.
|
|
49
|
-
|
|
50
|
-
**위험 요소**
|
|
51
|
-
- `src/control.mjs`가 1000줄에 달해 단일 책임 위반. `can-use`, CRUD, trust/source, YAML 쓰기, hook 설치 등이 한 파일에 있어 장기 유지보수 부담.
|
|
52
|
-
- `status` 값이 14개로 많고, `status`와 `invocation` 간의 유효 조합 규칙이 복잡(`SKILL-STATUS-001`). 새로운 상태 추가 시 규칙 행렬이 기하급수적으로 늘어날 수 있음.
|
|
53
|
-
- `capability`가 workflow-scoped `required_capabilities`와 global `capabilities`로 이중 정의됨. 의도는 명확하지만 사용자 입장에서 학습 곡선이 있음.
|
|
54
|
-
|
|
55
|
-
### 2. 사용자 불편 해소 vs 가중
|
|
56
|
-
|
|
57
|
-
#### 해소하는 설계
|
|
58
|
-
|
|
59
|
-
| 기능 | 불편 해소 메커니즘 |
|
|
60
|
-
|------|------------------|
|
|
61
|
-
| `init` 시 자동 스캔 + `active-manual` 연결 | 기존 수동 스킬을 따로 등록하지 않아도 `can-use`/`guard`로 계속 사용 가능 |
|
|
62
|
-
| `deny-by-default` + quarantine | 설치만으로 AI가 스킬을 부르는 것을 원천 차단 |
|
|
63
|
-
| `impact disable` | 스킬 제거 전 영향받는 workflow/capability를 사전에 노출 |
|
|
64
|
-
| 대부분의 mutating 명령에 `--dry-run` | 실수로 config를 망치는 위험 감소 |
|
|
65
|
-
| `brief --json` | 에이전트가 정책을 직접 해석하지 않고 control plane에 질의 |
|
|
66
|
-
| `uninstall`이 사용자 파일 보존 | 도구를 빼도 skill 파일과 사용자 config는 남음 |
|
|
67
|
-
|
|
68
|
-
#### 가중할 수 있는 설계
|
|
69
|
-
|
|
70
|
-
| 지점 | 불편 가능성 | 심각도 |
|
|
71
|
-
|------|------------|--------|
|
|
72
|
-
| 매번 `--config skillboard.config.yaml --skills skills` 필요 | 일상 명령이 번거로움 | 중간 |
|
|
73
|
-
| `SKILL.md` frontmatter 누락 시 메시지가 모호함 | 처음 사용자가 문서를 찾아야 함 | 높음 |
|
|
74
|
-
| `doctor` 출력이 길고 `--summary` 부재 | 매일 보기에 피로함 | 중간 |
|
|
75
|
-
| `add workflow` 시 `--harness`를 명시해야 함 | harness 개념을 모르는 사용자에게 진입 장벽 | 중간 |
|
|
76
|
-
| `status`/`invocation`/`exposure`/`trust_level` 용어가 많음 | 정책 도구이므로 불가피하지만, 온볭딩 문서가 중요 | 중간 |
|
|
77
|
-
| `init` 후 생성되는 config가 수십 개 스킬로 즉시 커짐 | 실제로 설치된 게 많으면 압도적 | 낮음~중간 |
|
|
78
|
-
|
|
79
|
-
**종합 판단**: 보안/통제를 얻는 대가로 적정 수준의 복잡성을 요구한다. 다만 **처음 사용자의 첫 5분**을 더 부드럽게 만들면 Adoption이 크게 올라갈 것이다.
|
|
80
|
-
|
|
81
|
-
### 3. MVP 기능 검증 결과
|
|
82
|
-
|
|
83
|
-
| 기능 | 상태 | 비고 |
|
|
84
|
-
|------|------|------|
|
|
85
|
-
| `init` | ✅ 정상 | bridge 파일, config, 디렉토리 생성, 자동 스캔 |
|
|
86
|
-
| `doctor`/`status` | ✅ 정상 | safe-mode, strict 모드, JSON 출력 |
|
|
87
|
-
| `brief` | ✅ 정상 | text/JSON, action cards, unknown workflow 처리 |
|
|
88
|
-
| `add skill/workflow/harness` | ✅ 정상 | dry-run, 자동 status 승격 |
|
|
89
|
-
| `activate`/`block`/`quarantine` | ✅ 정상 | workflow-scoped |
|
|
90
|
-
| `can-use`/`guard` | ✅ 정상 | 정책 위반 시 거부 |
|
|
91
|
-
| `impact disable` | ✅ 정상 | affected workflows/alternatives/risk |
|
|
92
|
-
| `remove skill` | ✅ 정상 | 참조 시 거부, `--force`로 정리 |
|
|
93
|
-
| `uninstall` | ✅ 정상 | 보수적 제거, dry-run |
|
|
94
|
-
| `inventory refresh`/`detect` | ✅ 정상 | runtime component 감지 |
|
|
95
|
-
| `sources refresh`/`audit` | ✅ 정상 | Git source digest pin |
|
|
96
|
-
| `import`/`merge` | ✅ 정상 | built-in profiles |
|
|
97
|
-
| `check` | ✅ 정상 | policy reference/rules |
|
|
98
|
-
| `dashboard` | ✅ 정상 | markdown 보고서 |
|
|
99
|
-
| `hook install` | ✅ 정상 | dry-run preview |
|
|
100
|
-
|
|
101
|
-
### 4. 핵심 코드 품질 관찰
|
|
102
|
-
|
|
103
|
-
- **정책 엔진**: `src/domain/rules/*.mjs`가 rule-id 기반으로 깔끔하게 분리되어 있어 새 규칙 추가가 쉬움.
|
|
104
|
-
- **workspace 로딩**: `workspace.mjs`가 config 파싱과 설치 skill discovery를 분리. `SKILL.md` frontmatter 강제는 정합성을 위해 필요하지만, 에러 메시지가 개선되어야 함.
|
|
105
|
-
- **control.mjs**: 거대 파일. CRUD, policy runtime, source classification, hook 설치 등을 분리하면 가독성과 테스트 용이성이 향상.
|
|
106
|
-
- **writeCheckedConfig**: 임시 파일에 쓰고 policy + usability 검증 후 rename하는 방식은 안전함. dry-run과 실제 적용의 경계도 명확.
|
|
107
|
-
- **agent-inventory**: detector 기반 스캔이 확장 가능. 다만 detector matching이 경로 suffix에 의존해 Windows/Linux 경로를 모두 고려한 점은 긍정적.
|
|
108
|
-
|
|
109
|
-
## Plan
|
|
110
|
-
|
|
111
|
-
### Phase 1: 첫 5분 UX 다듬기 (4.1)
|
|
112
|
-
|
|
113
|
-
- [x] `workspace.mjs`의 `parseSkillFrontmatter` 에러 메시지 개선
|
|
114
|
-
- "SKILL.md is missing YAML frontmatter" → 필요한 frontmatter 예시와 docs/user-flow.md 링크 포함
|
|
115
|
-
- 예상 영향: `src/workspace.mjs` 1함수, test 1~2개 추가
|
|
116
|
-
- [x] `add workflow`에서 `--harness` 누락 시 usage dump 대신 사용 가능한 harness 목록 제시
|
|
117
|
-
- 예상 영향: `src/cli.mjs` 또는 `src/control.mjs`의 `addWorkflow`
|
|
118
|
-
- [x] `doctor`에 `--summary` 플래그 추가 (또는 기본 출력에서 1줄 status + 핵심 warnings만)
|
|
119
|
-
- 예상 영향: `src/doctor.mjs`, `src/report.mjs` 수정
|
|
120
|
-
- [x] CLI 글로벌 defaults 파일/디렉토리 탐지: `--config`, `--skills` 미지정 시 현재 디렉토리의 `skillboard.config.yaml`과 `skills/`를 기본으로 사용하도록 개선
|
|
121
|
-
- 예상 영향: `src/cli.mjs` option parser, test 보강
|
|
122
|
-
|
|
123
|
-
### Phase 2: 생태계 연결 및 문서 (4.2)
|
|
124
|
-
|
|
125
|
-
- [x] `CONTRIBUTING.md` 작성: 개발 환경, 테스트 실행, source profile 추가 방법
|
|
126
|
-
- [x] built-in profile 추가 가이드 문서화 (`docs/adapters.md` 보강 또는 `docs/profiles.md` 신규)
|
|
127
|
-
- [x] README의 install 전/후 명령어 섹션 정리 (`skillboard` vs `node bin/skillboard.mjs` 구분 강조)
|
|
128
|
-
- [x] 본 프로젝트에 `AGENTS.md`/`CLAUDE.md` bridge 적용 검토 (dogfooding)
|
|
129
|
-
|
|
130
|
-
### Phase 3: 성능 및 구조 (4.3)
|
|
131
|
-
|
|
132
|
-
- [x] `npm test` 실행 시간 프로파일링
|
|
133
|
-
- 병목이 되는 CLI 통합 테스트 식별
|
|
134
|
-
- 가능하다면 독립적인 단위 테스트와 통합 테스트 분리 (`npm run test:unit`, `npm run test:integration`)
|
|
135
|
-
- [x] `src/control.mjs` 분리
|
|
136
|
-
- `skill-crud.mjs`, `workflow-crud.mjs`, `trust-source.mjs`, `can-use-guard.mjs`, `config-write.mjs` 등으로 쪼개기
|
|
137
|
-
- 예상 영향: 낶부 구조 개선, 기존 테스트 그대로 통과해야 함
|
|
138
|
-
- [x] `doctor`/`brief`의 중복 workspace 로딩 최소화 (cache 또는 단일 로드 경로)
|
|
139
|
-
|
|
140
|
-
### Phase 4: 도메인 정제 (선택, 높은 가치)
|
|
141
|
-
|
|
142
|
-
- [x] `status`/`invocation` 매트릭스 검토: 14×7 조합 중 실제로 사용되는 조합을 문서화하고, 불필요한 조합은 deprecate 또는 명시적 금지
|
|
143
|
-
- [x] `capability`의 global 정의와 workflow-scope `required_capabilities` 관계를 docs에 명확히 시각화
|
|
144
|
-
- [x] `install_unit`의 `trust_level`과 `permission_risk` 조합에 따른 자동 권고 정책을 advisor action cards로 노출
|
|
145
|
-
|
|
146
|
-
## TDD Notes
|
|
147
|
-
|
|
148
|
-
- Red: Add failing tests for newly invalid status/invocation combos, capability docs, trust/risk action cards.
|
|
149
|
-
- Green: Implement matrix, docs, and action card logic.
|
|
150
|
-
- Refactor: `control.mjs` split into `src/control/*.mjs` modules; public API preserved.
|
|
151
|
-
|
|
152
|
-
## Verification
|
|
153
|
-
|
|
154
|
-
- Commands to run:
|
|
155
|
-
- `npm run diagnostics`
|
|
156
|
-
- `npm run test:unit`
|
|
157
|
-
- `npm run test:integration`
|
|
158
|
-
- `npm run check`
|
|
159
|
-
- `node bin/skillboard.mjs brief --config skillboard.config.yaml --skills skills`
|
|
160
|
-
- `git diff --check`
|
|
161
|
-
- Results:
|
|
162
|
-
- TypeScript diagnostics: ✅
|
|
163
|
-
- `npm run test:unit`: 47 passed
|
|
164
|
-
- `npm run test:integration`: 103 passed
|
|
165
|
-
- `npm run check`: 161 passed
|
|
166
|
-
- CLI smoke test: ✅
|
|
167
|
-
- `git diff --check`: ✅
|
|
168
|
-
|
|
169
|
-
## Decisions
|
|
170
|
-
|
|
171
|
-
- **즉시 개선 권장**: 4.1 frontmatter 에러 메시지, `--config/--skills` 기본값, `doctor --summary`
|
|
172
|
-
- **중기 개선 권장**: `control.mjs` 분리, test suite 분리, `CONTRIBUTING.md`
|
|
173
|
-
- **도메인 설계는 유지**: 5개 엔티티 구조와 deny-by-default 정책은 변경하지 않음. 세부 상태/호출 매트릭스만 정제
|
|
174
|
-
- **변경사항은 unstaged로 보관**: 사용자가 직접 커밋 지시 전까지 git index에 추가하지 않음
|
|
175
|
-
|
|
176
|
-
## Resume State
|
|
177
|
-
|
|
178
|
-
- Done: Phase 1~4 모두 완료. 모든 테스트 통과. 문서/워크로그 정리 완료.
|
|
179
|
-
- In progress: 없음.
|
|
180
|
-
- Next command: 사용자가 커밋/푸시 지시 또는 추가 개선 항목 제시
|
|
181
|
-
- Open risks:
|
|
182
|
-
- `.skillboard/`와 `.omo/` 등 untracked artifact는 별도 정리 필요
|
|
183
|
-
- npm pack 시 포함 여부는 `test/package.test.mjs`에서 검증 완료
|
|
184
|
-
|
|
185
|
-
## Progress Log
|
|
186
|
-
|
|
187
|
-
- 2026-06-25T08:00:25Z: Plan created.
|
|
188
|
-
- 2026-06-25T08:45:00Z: Domain audit, friction analysis, and improvement plan written.
|
|
189
|
-
- 2026-06-25T10:05:00Z: Phase 1~4 implementation completed. All 161 tests passing.
|
package/docs/plans/README.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Agent Handoff Plans
|
|
2
|
-
|
|
3
|
-
This directory contains durable plans that can be picked up by another agent
|
|
4
|
-
(such as Hermes) when the original author is not available.
|
|
5
|
-
|
|
6
|
-
## Conventions
|
|
7
|
-
|
|
8
|
-
- Each plan file is named `<timestamp>-<slug>.md`.
|
|
9
|
-
- The `Status:` field in the frontmatter controls the lifecycle:
|
|
10
|
-
- `pending` — waiting for an agent to pick it up
|
|
11
|
-
- `assigned` — an agent is currently working on it
|
|
12
|
-
- `consumed` — the agent has finished the planned work
|
|
13
|
-
- Agents should only pick up files with `Status: pending`.
|
|
14
|
-
- After picking up a plan, change the status to `assigned` and commit.
|
|
15
|
-
- After completing the work, change the status to `consumed` and commit.
|
|
16
|
-
|
|
17
|
-
## Current Plans
|
|
18
|
-
|
|
19
|
-
- `20260625-080025-skillboard-mvp-review.md` — SkillBoard MVP feature/domain
|
|
20
|
-
review and UX improvement plan (Status: completed)
|