mustflow 2.59.0 → 2.69.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 +1 -0
- package/dist/cli/commands/context.js +81 -6
- package/dist/cli/commands/skill.js +116 -0
- package/dist/cli/i18n/en.js +3 -1
- package/dist/cli/i18n/es.js +3 -1
- package/dist/cli/i18n/fr.js +3 -1
- package/dist/cli/i18n/hi.js +3 -1
- package/dist/cli/i18n/ko.js +3 -1
- package/dist/cli/i18n/zh.js +3 -1
- package/dist/cli/lib/agent-context.js +981 -8
- package/dist/cli/lib/command-registry.js +6 -0
- package/dist/cli/lib/local-index/constants.js +4 -5
- package/dist/cli/lib/local-index/freshness.js +5 -1
- package/dist/cli/lib/local-index/index.js +1 -1
- package/dist/cli/lib/repo-map.js +7 -1
- package/dist/cli/lib/validation/constants.js +3 -0
- package/dist/cli/lib/validation/index.js +41 -2
- package/dist/core/check-issues.js +5 -0
- package/dist/core/prompt-cache-rendering.js +19 -0
- package/dist/core/public-json-contracts.js +26 -0
- package/dist/core/quality-gaming.js +4 -0
- package/dist/core/skill-route-fixtures.js +173 -0
- package/dist/core/skill-route-resolution.js +398 -0
- package/dist/core/source-anchors.js +91 -5
- package/package.json +1 -1
- package/schemas/README.md +7 -2
- package/schemas/context-report.schema.json +442 -0
- package/schemas/quality-gaming-report.schema.json +1 -0
- package/schemas/route-fixture.schema.json +57 -0
- package/schemas/skill-route-report.schema.json +242 -0
- package/templates/default/common/.mustflow/config/commands.toml +18 -2
- package/templates/default/common/.mustflow/config/mustflow.toml +16 -10
- package/templates/default/i18n.toml +21 -9
- package/templates/default/locales/en/.mustflow/context/PROJECT.md +5 -3
- package/templates/default/locales/en/.mustflow/docs/agent-workflow.md +13 -9
- package/templates/default/locales/en/.mustflow/skills/INDEX.md +4 -2
- package/templates/default/locales/en/.mustflow/skills/llm-token-cost-control-review/SKILL.md +5 -2
- package/templates/default/locales/en/.mustflow/skills/quality-gaming-guard/SKILL.md +8 -6
- package/templates/default/locales/en/.mustflow/skills/router.toml +67 -0
- package/templates/default/locales/en/.mustflow/skills/routes.toml +12 -0
- package/templates/default/locales/en/.mustflow/skills/skill-refresh/SKILL.md +234 -0
- package/templates/default/locales/en/.mustflow/skills/task-instruction-authoring/SKILL.md +239 -0
- package/templates/default/locales/en/AGENTS.md +15 -7
- package/templates/default/locales/ko/.mustflow/context/PROJECT.md +4 -2
- package/templates/default/locales/ko/.mustflow/docs/agent-workflow.md +18 -12
- package/templates/default/locales/ko/AGENTS.md +8 -6
- package/templates/default/manifest.toml +12 -1
|
@@ -3,7 +3,7 @@ mustflow_doc: context.project
|
|
|
3
3
|
kind: mustflow-context
|
|
4
4
|
locale: ko
|
|
5
5
|
canonical: false
|
|
6
|
-
revision:
|
|
6
|
+
revision: 4
|
|
7
7
|
name: project
|
|
8
8
|
authority: contextual
|
|
9
9
|
lifecycle: user-editable
|
|
@@ -58,7 +58,9 @@ source_refs:
|
|
|
58
58
|
- `.mustflow/docs/agent-workflow.md`
|
|
59
59
|
- `.mustflow/config/mustflow.toml`
|
|
60
60
|
- `.mustflow/config/commands.toml`
|
|
61
|
-
- `.mustflow/skills/
|
|
61
|
+
- `.mustflow/skills/router.toml`
|
|
62
|
+
- 상세 라우트 메타데이터가 필요할 때만 `.mustflow/skills/routes.toml`
|
|
63
|
+
- 사람이 읽을 라우트 근거가 필요할 때만 `.mustflow/skills/INDEX.md`
|
|
62
64
|
|
|
63
65
|
## 오래된 내용 확인
|
|
64
66
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
mustflow_doc: docs.agent-workflow
|
|
3
3
|
locale: ko
|
|
4
4
|
canonical: false
|
|
5
|
-
revision:
|
|
5
|
+
revision: 31
|
|
6
6
|
lifecycle: mustflow-owned
|
|
7
7
|
authority: workflow-policy
|
|
8
8
|
---
|
|
@@ -44,7 +44,9 @@ mustflow 문서는 각각 명확한 역할을 갖습니다. 단순히 편하게
|
|
|
44
44
|
| `.mustflow/config/preferences.toml` | 스타일, 언어, Git 제안, 테스트 작성 성향, 검증 선택, 버전 영향의 기본값입니다. | 권한이 아닌 낮은 권위의 선호 설정입니다. | 저장소별로 사용자가 조정할 수 있는 TOML 파일입니다. |
|
|
45
45
|
| `.mustflow/context/INDEX.md` | 작업별 컨텍스트 파일을 선택하는 라우터입니다. | 선택형 컨텍스트만 고르며 정책 설명서는 아닙니다. | mustflow가 소유하는 Markdown 문서입니다. |
|
|
46
46
|
| `.mustflow/context/PROJECT.md` | 신중한 프로젝트 사실, 미지점, 도메인 관습을 기록합니다. | 사용자 지시, 코드, 테스트, 명령 계약, 설정된 정책보다 낮은 권위의 참고 자료입니다. | 사용자가 수정 가능한 컨텍스트 문서입니다. |
|
|
47
|
-
| `.mustflow/skills/
|
|
47
|
+
| `.mustflow/skills/router.toml` | 프롬프트 캐시에 친화적인 첫 스킬 선택을 위한 안정적인 압축 라우트 범주와 fallback 규칙입니다. | 선택 kernel만 담당하며 자세한 절차는 `SKILL.md`에 둡니다. | mustflow가 소유하는 TOML 파일입니다. |
|
|
48
|
+
| `.mustflow/skills/routes.toml` | 압축 router만으로 부족할 때 사용하는 전체 라우트 메타데이터입니다. | 선택 힌트만 담당하며 자세한 절차는 `SKILL.md`에 둡니다. | mustflow가 소유하는 TOML 파일입니다. |
|
|
49
|
+
| `.mustflow/skills/INDEX.md` | 상세 스킬 선택과 라우트 유지보수를 위한 사람이 읽는 확장 라우트 표입니다. | 선택 계약만 담당하며 자세한 절차는 `SKILL.md`에 둡니다. | mustflow가 소유하는 Markdown 문서입니다. |
|
|
48
50
|
| `.mustflow/skills/<name>/SKILL.md` | 반복 작업의 입력, 허용 범위, 검사, 보고 형식을 담은 절차입니다. | 절차 안내일 뿐이며 명령 실행 권한을 부여하거나 다른 규칙을 덮어쓰지 않습니다. | mustflow가 소유하는 Markdown 문서이며, 필요 시 언어별로 설치됩니다. |
|
|
49
51
|
| `REPO_MAP.md` | 넓은 탐색과 하위 저장소 진입점을 위한 생성 앵커 지도입니다. | 현재 파일과 현재 지시보다 낮은 생성 탐색 보조 자료입니다. | 생성 파일이며 `repo_map` 인텐트 또는 `mf map`으로 갱신합니다. |
|
|
50
52
|
|
|
@@ -68,9 +70,11 @@ mustflow 문서는 각각 명확한 역할을 갖습니다. 단순히 편하게
|
|
|
68
70
|
3. `.mustflow/config/mustflow.toml`
|
|
69
71
|
4. `.mustflow/config/commands.toml`
|
|
70
72
|
5. `.mustflow/config/preferences.toml`이 있으면 읽기
|
|
71
|
-
6. `.mustflow/skills/
|
|
72
|
-
7.
|
|
73
|
-
8.
|
|
73
|
+
6. `.mustflow/skills/router.toml`
|
|
74
|
+
7. 압축 router만으로 부족하거나 스킬 라우팅을 수정하거나 상세 라우트 메타데이터가 필요하거나 라우트 확신도가 애매할 때 `.mustflow/skills/routes.toml`
|
|
75
|
+
8. 전체 라우트 메타데이터만으로도 부족하거나 확장 라우트 표를 수정하거나 사람이 읽을 트리거 근거가 필요할 때 `.mustflow/skills/INDEX.md`
|
|
76
|
+
9. 현재 작업과 맞는 `.mustflow/skills/<name>/SKILL.md`
|
|
77
|
+
10. 관련 소스, 테스트, 문서 파일
|
|
74
78
|
|
|
75
79
|
`REPO_MAP.md`는 넓은 저장소 탐색이 필요할 때만 읽습니다. 이 파일은 전체 파일 목록이 아니라 `AGENTS.md`, `README.md`, `package.json`, `SKILL.md`, 주요 설정 파일 같은 앵커를 찾아 에이전트가 처음 볼 위치를 줄이기 위한 생성 지도입니다. 전체 파일 목록이 필요하면 `git ls-files`나 편집기 파일 탐색기를 사용합니다. `node_modules`, `dist`, `build`, `.git`, 캐시, 대용량 산출물은 제외합니다.
|
|
76
80
|
|
|
@@ -95,10 +99,12 @@ mustflow 문서는 각각 명확한 역할을 갖습니다. 단순히 편하게
|
|
|
95
99
|
|
|
96
100
|
작업 시작 시점과 첫 수정 전에는 다음 순서를 따릅니다.
|
|
97
101
|
|
|
98
|
-
1. `.mustflow/skills/
|
|
99
|
-
2. 현재 사용자
|
|
100
|
-
3.
|
|
101
|
-
4.
|
|
102
|
+
1. `.mustflow/skills/router.toml`에서 안정적인 라우트 범주, 범주 신호, 선택 제한, fallback 규칙을 읽습니다.
|
|
103
|
+
2. 현재 사용자 요청, 예상 변경 파일, 발견한 기술 스택, 이벤트 신호를 범주 신호와 비교합니다.
|
|
104
|
+
3. 압축 router만으로 부족하거나 스킬 라우팅을 수정하거나 상세 라우트 메타데이터가 필요하거나 라우트 확신도가 애매하면 `.mustflow/skills/routes.toml`을 읽습니다.
|
|
105
|
+
4. 전체 라우트 메타데이터만으로도 부족하거나 확장 라우트 표를 수정하거나 사람이 읽을 트리거 근거가 필요하면 `.mustflow/skills/INDEX.md`를 읽습니다.
|
|
106
|
+
5. 맞는 시나리오가 하나 이상 있으면 해당 `SKILL.md`를 읽은 뒤 그 범위를 수정합니다.
|
|
107
|
+
6. 맞는 스킬이 없으면 새 스킬을 추측하지 않고 `AGENTS.md`와 `.mustflow/config/commands.toml`을 기준으로 가장 작은 안전한 변경을 수행합니다.
|
|
102
108
|
|
|
103
109
|
작업 중 새 근거가 생겨 작업 유형이 바뀌면 그때 스킬을 다시 선택합니다. 예를 들어 설정된 명령이 실패하면 실패 원인 추적 스킬을, 테스트 계약이 바뀌면 테스트 유지보수 스킬을, 문서나 워크플로가 바뀌면 문서 수정 스킬을 읽습니다.
|
|
104
110
|
|
|
@@ -160,8 +166,8 @@ mustflow는 LLM 제공자의 입력 캐시 적중을 보장하지 않습니다.
|
|
|
160
166
|
|
|
161
167
|
호스트나 에이전트 실행 하네스가 모델 입력을 조립할 때는 다음 순서를 지켜야 합니다.
|
|
162
168
|
|
|
163
|
-
1. 안정 접두부: `mf context --json --cache-profile stable`에서 얻은 저장소 규칙과
|
|
164
|
-
2. 작업 컨텍스트: 선택된 컨텍스트 파일, 맞는 스킬, 저장소 지도 앵커, 관련 소스 파일, 그리고 `cache_layer`가 `task`인 `mf search --json` 결과입니다.
|
|
169
|
+
1. 안정 접두부: `mf context --json --cache-profile stable`에서 얻은 저장소 진입 규칙과 압축 route kernel입니다.
|
|
170
|
+
2. 작업 컨텍스트: 선택된 컨텍스트 파일, 작업 흐름과 구성 refresh 조각, 명령 인텐트 정의, 전체 라우트 메타데이터 fallback, 상세 스킬 색인 fallback, 맞는 스킬, 저장소 지도 앵커, 관련 소스 파일, 그리고 `cache_layer`가 `task`인 `mf search --json` 결과입니다.
|
|
165
171
|
3. 변동 접미부: 현재 사용자 요청, 변경 파일 목록, 명령 출력 끝부분, 최신 실행 기록 메타데이터, 시각 정보, 그리고 `volatile` 값이 `true`인 `mf search --json` 결과입니다.
|
|
166
172
|
|
|
167
173
|
안정 접두부를 재사용하기 전에는 보고된 콘텐츠 해시를 현재 파일과 비교합니다. 안정 문서의 해시가 하나라도 바뀌면 캐시된 텍스트를 재사용하지 말고 해당 문서를 다시 읽어야 합니다. 절대로 로컬 경로, 실행 기록 시각, 명령 출력, 변경 파일, 현재 사용자 작업 문구는 안정 접두부보다 앞에 두지 않습니다.
|
|
@@ -204,7 +210,7 @@ mustflow 지침은 다음 지점에서 다시 확인합니다.
|
|
|
204
210
|
- `command`: `AGENTS.md`와 `.mustflow/config/commands.toml`을 다시 읽습니다.
|
|
205
211
|
- `edit`: 민감한 수정 전에 `AGENTS.md`, `.mustflow/config/mustflow.toml`, `.mustflow/docs/agent-workflow.md`를 다시 읽습니다.
|
|
206
212
|
- `report`: 최종 보고 전에 `AGENTS.md`, `.mustflow/config/mustflow.toml`, `.mustflow/config/preferences.toml`을 다시 읽습니다.
|
|
207
|
-
- `skill`: `AGENTS.md`와 `.mustflow/skills/
|
|
213
|
+
- `skill`: `AGENTS.md`와 `.mustflow/skills/router.toml`을 다시 읽습니다.
|
|
208
214
|
- `full`: mustflow 필수 읽기 순서 전체를 다시 읽습니다.
|
|
209
215
|
|
|
210
216
|
`before_command_run`은 현재 명령 인텐트에 대한 최신성 확인 지점입니다. 명령 계약이 바뀌지 않았다면 같은 명령을 반복할 때마다 모든 파일을 다시 읽으라는 뜻이 아닙니다.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
mustflow_doc: agents.root
|
|
3
3
|
locale: ko
|
|
4
4
|
canonical: false
|
|
5
|
-
revision:
|
|
5
|
+
revision: 24
|
|
6
6
|
lifecycle: user-editable
|
|
7
7
|
authority: binding
|
|
8
8
|
---
|
|
@@ -21,13 +21,15 @@ mustflow가 관리하는 세부 문서와 설정은 `.mustflow/` 폴더 아래
|
|
|
21
21
|
4. `.mustflow/config/commands.toml`
|
|
22
22
|
5. `.mustflow/config/preferences.toml` (있다면)
|
|
23
23
|
6. `.mustflow/config/technology.toml` (있다면)
|
|
24
|
-
7. `.mustflow/skills/
|
|
24
|
+
7. `.mustflow/skills/router.toml`
|
|
25
25
|
8. 프로젝트, 제품, 도메인, UI, 백엔드, 데이터, 보안, 운영 컨텍스트가 필요한 경우
|
|
26
26
|
`.mustflow/context/INDEX.md`
|
|
27
27
|
9. 컨텍스트 색인에서 선택된 `.mustflow/context/<name>.md` 파일
|
|
28
|
-
10.
|
|
29
|
-
11.
|
|
30
|
-
12.
|
|
28
|
+
10. 압축 router만으로 판단이 부족하거나 스킬 라우팅을 수정하거나 상세 라우트 메타데이터가 필요하거나 라우트 확신도가 애매한 경우에만 `.mustflow/skills/routes.toml`
|
|
29
|
+
11. 라우트 메타데이터만으로 부족하거나 확장 라우트 표를 수정하거나 사람이 읽을 트리거 근거가 필요한 경우에만 `.mustflow/skills/INDEX.md`
|
|
30
|
+
12. 현재 작업과 관련된 `.mustflow/skills/<name>/SKILL.md`
|
|
31
|
+
13. 넓은 저장소 탐색이 필요할 때만 `REPO_MAP.md`
|
|
32
|
+
14. 관련 소스, 테스트, 문서 파일
|
|
31
33
|
|
|
32
34
|
## 핵심 규칙
|
|
33
35
|
|
|
@@ -47,7 +49,7 @@ mustflow가 관리하는 세부 문서와 설정은 `.mustflow/` 폴더 아래
|
|
|
47
49
|
- `.mustflow/context/` 파일은 프로젝트 방향과 도메인 약속을 설명하는 작업별 컨텍스트입니다. 코드, 테스트, 명령 계약, 사용자 지시를 대신하는 최종 기준으로 보지 않습니다.
|
|
48
50
|
- `DESIGN.md`가 있으면 UI, 시각 디자인, 레이아웃, 디자인 토큰, 접근성 작업에서만 읽습니다. 없는 `DESIGN.md`를 임의로 생성하지 않습니다.
|
|
49
51
|
- 작업과 맞는 스킬이 있으면 해당 `SKILL.md`를 읽고 따릅니다.
|
|
50
|
-
- 파일을 만들거나 수정하기 전에 `.mustflow/skills/
|
|
52
|
+
- 파일을 만들거나 수정하기 전에 `.mustflow/skills/router.toml`로 현재 작업에 맞는 라우트 범주와 스킬 절차가 있는지 먼저 판단합니다. 압축 router만으로 부족하거나, 스킬 라우팅을 수정하거나, 상세 라우트 메타데이터가 필요하거나, 라우트 확신도가 애매할 때만 `.mustflow/skills/routes.toml`을 읽습니다. 전체 라우트 메타데이터만으로도 부족하거나, 확장 라우트 표를 수정하거나, 사람이 읽을 트리거 근거가 필요할 때만 `.mustflow/skills/INDEX.md`를 읽습니다. 이 스킬 선택 단계는 작업이 작거나 명백해 보이는 경우에도 반드시 거쳐야 합니다.
|
|
51
53
|
- `mf doctor`, `mf check` 같은 상태 점검 명령은 스킬 선택 단계를 대신하지 않습니다. 이 명령들은 저장소 상태를 확인할 뿐, 현재 작업에 어떤 절차가 필요한지 결정하지 않습니다.
|
|
52
54
|
- 적용되는 스킬이 있으면 해당 범위를 편집하기 전에 맞는 `SKILL.md`를 읽습니다. 파일을 만들거나 수정한 뒤에는 최종 보고에 짧은 스킬 선택 기록을 포함합니다. 사용한 스킬 이름, 설치된 스킬 중 맞는 항목이 없었다는 사실, 또는 색인상 그럴듯한 스킬이 현재 프로필에 설치되어 있지 않다는 누락 중 해당 내용을 밝힙니다.
|
|
53
55
|
- 명령 실패나 문서 변경 등 작업 중 새 근거가 생겨 스킬이 필요해지면, 해당 범위를 계속하기 전에 반드시 맞는 `SKILL.md`를 읽습니다.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
id = "default"
|
|
2
2
|
name = "default"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.69.0"
|
|
4
4
|
description = "Minimal workflow for LLM agents to read, edit, and verify their work in a repository."
|
|
5
5
|
common_root = "common"
|
|
6
6
|
locales_root = "locales"
|
|
@@ -10,6 +10,7 @@ creates = [
|
|
|
10
10
|
".mustflow/context/INDEX.md",
|
|
11
11
|
".mustflow/context/PROJECT.md",
|
|
12
12
|
".mustflow/skills/INDEX.md",
|
|
13
|
+
".mustflow/skills/router.toml",
|
|
13
14
|
".mustflow/skills/routes.toml",
|
|
14
15
|
".mustflow/skills/adapter-boundary/SKILL.md",
|
|
15
16
|
".mustflow/skills/api-contract-change/SKILL.md",
|
|
@@ -169,7 +170,9 @@ creates = [
|
|
|
169
170
|
".mustflow/skills/security-regression-tests/SKILL.md",
|
|
170
171
|
".mustflow/skills/secret-exposure-response/SKILL.md",
|
|
171
172
|
".mustflow/skills/search-ad-content-authoring/SKILL.md",
|
|
173
|
+
".mustflow/skills/skill-refresh/SKILL.md",
|
|
172
174
|
".mustflow/skills/skill-authoring/SKILL.md",
|
|
175
|
+
".mustflow/skills/task-instruction-authoring/SKILL.md",
|
|
173
176
|
".mustflow/skills/template-install-surface-sync/SKILL.md",
|
|
174
177
|
".mustflow/skills/visual-review-artifact/SKILL.md",
|
|
175
178
|
".mustflow/skills/visual-review-artifact/resources.toml",
|
|
@@ -323,6 +326,7 @@ minimal = [
|
|
|
323
326
|
"secret-exposure-response",
|
|
324
327
|
"source-anchor-authoring",
|
|
325
328
|
"source-freshness-check",
|
|
329
|
+
"task-instruction-authoring",
|
|
326
330
|
"structure-discovery-gate",
|
|
327
331
|
"structure-first-engineering",
|
|
328
332
|
"test-design-guard",
|
|
@@ -460,6 +464,7 @@ patterns = [
|
|
|
460
464
|
"secret-exposure-response",
|
|
461
465
|
"source-anchor-authoring",
|
|
462
466
|
"source-freshness-check",
|
|
467
|
+
"task-instruction-authoring",
|
|
463
468
|
"state-machine-pattern",
|
|
464
469
|
"strategy-pattern",
|
|
465
470
|
"structure-discovery-gate",
|
|
@@ -612,10 +617,12 @@ oss = [
|
|
|
612
617
|
"security-privacy-review",
|
|
613
618
|
"security-regression-tests",
|
|
614
619
|
"secret-exposure-response",
|
|
620
|
+
"skill-refresh",
|
|
615
621
|
"skill-authoring",
|
|
616
622
|
"template-install-surface-sync",
|
|
617
623
|
"source-anchor-authoring",
|
|
618
624
|
"source-freshness-check",
|
|
625
|
+
"task-instruction-authoring",
|
|
619
626
|
"state-machine-pattern",
|
|
620
627
|
"strategy-pattern",
|
|
621
628
|
"structure-discovery-gate",
|
|
@@ -758,6 +765,7 @@ team = [
|
|
|
758
765
|
"secret-exposure-response",
|
|
759
766
|
"source-anchor-authoring",
|
|
760
767
|
"source-freshness-check",
|
|
768
|
+
"task-instruction-authoring",
|
|
761
769
|
"state-machine-pattern",
|
|
762
770
|
"strategy-pattern",
|
|
763
771
|
"structure-discovery-gate",
|
|
@@ -900,6 +908,7 @@ product = [
|
|
|
900
908
|
"search-ad-content-authoring",
|
|
901
909
|
"source-anchor-authoring",
|
|
902
910
|
"source-freshness-check",
|
|
911
|
+
"task-instruction-authoring",
|
|
903
912
|
"state-machine-pattern",
|
|
904
913
|
"strategy-pattern",
|
|
905
914
|
"structure-discovery-gate",
|
|
@@ -1053,9 +1062,11 @@ library = [
|
|
|
1053
1062
|
"security-privacy-review",
|
|
1054
1063
|
"security-regression-tests",
|
|
1055
1064
|
"secret-exposure-response",
|
|
1065
|
+
"skill-refresh",
|
|
1056
1066
|
"template-install-surface-sync",
|
|
1057
1067
|
"source-anchor-authoring",
|
|
1058
1068
|
"source-freshness-check",
|
|
1069
|
+
"task-instruction-authoring",
|
|
1059
1070
|
"state-machine-pattern",
|
|
1060
1071
|
"strategy-pattern",
|
|
1061
1072
|
"structure-discovery-gate",
|