vc-extras 0.1.0 → 0.1.1
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 +128 -71
- package/agent-install.mjs +159 -0
- package/agents/tester.md +23 -23
- package/install-extras.mjs +41 -109
- package/install-menu.mjs +22 -43
- package/install-skills.mjs +112 -112
- package/package.json +72 -28
- package/plugin-registry.mjs +73 -0
- package/plugins/config-ui/index.ts +159 -159
- package/plugins/config-ui/lib/arguments.mjs +24 -24
- package/plugins/config-ui/lib/documents.mjs +67 -67
- package/plugins/config-ui/lib/frontmatter.mjs +91 -91
- package/plugins/config-ui/lib/open.mjs +16 -16
- package/plugins/config-ui/lib/ownership.mjs +99 -99
- package/plugins/config-ui/lib/page.mjs +11 -11
- package/plugins/config-ui/lib/patch.mjs +35 -35
- package/plugins/config-ui/lib/paths.mjs +14 -14
- package/plugins/config-ui/lib/plugin-fields.mjs +86 -86
- package/plugins/config-ui/lib/plugin-validation.mjs +28 -28
- package/plugins/config-ui/lib/redaction.mjs +8 -8
- package/plugins/config-ui/lib/registry.mjs +282 -282
- package/plugins/config-ui/lib/secrets.mjs +44 -44
- package/plugins/config-ui/lib/server.mjs +250 -250
- package/plugins/config-ui/lib/sources.mjs +96 -96
- package/plugins/config-ui/lib/state.mjs +156 -156
- package/plugins/config-ui/lib/themes.mjs +113 -113
- package/plugins/config-ui/lib/writer.mjs +690 -690
- package/plugins/config-ui/project-local-owner.ts +106 -106
- package/plugins/config-ui/vc-extras.plugin.json +13 -0
- package/plugins/config-ui/web/app.mjs +997 -997
- package/plugins/config-ui/web/index.html +342 -342
- package/plugins/pi-blackhole/vc-extras.plugin.json +12 -0
- package/plugins/pi-btw/vc-extras.plugin.json +12 -0
- package/plugins/pi-claude-code/vc-extras.plugin.json +12 -0
- package/plugins/pi-fff/vc-extras.plugin.json +12 -0
- package/plugins/pi-jev-auto-mode/vc-extras.plugin.json +12 -0
- package/plugins/pi-mcp-adapter/vc-extras.plugin.json +12 -0
- package/plugins/pi-web-access/vc-extras.plugin.json +12 -0
- package/plugins/vc-ask/claude-hook.mjs +37 -0
- package/plugins/vc-ask/codex-native.mjs +28 -0
- package/plugins/vc-ask/host-channel.mjs +75 -0
- package/plugins/vc-ask/index.ts +57 -0
- package/plugins/vc-ask/native-questions.mjs +33 -0
- package/plugins/vc-ask/package.json +10 -0
- package/plugins/vc-ask/payload.ts +170 -0
- package/plugins/vc-ask/questionnaire/LICENSE.ask-user-question +21 -0
- package/plugins/vc-ask/questionnaire/UPSTREAM.md +104 -0
- package/plugins/vc-ask/questionnaire/answer-channel.ts +135 -0
- package/plugins/vc-ask/questionnaire/config.ts +180 -0
- package/plugins/vc-ask/questionnaire/events.ts +154 -0
- package/plugins/vc-ask/questionnaire/execute.ts +688 -0
- package/plugins/vc-ask/questionnaire/i18n.ts +73 -0
- package/plugins/vc-ask/questionnaire/inline-entry.ts +312 -0
- package/plugins/vc-ask/questionnaire/locales/de.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/en.json +42 -0
- package/plugins/vc-ask/questionnaire/locales/es.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/fr.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt-BR.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/ru.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/uk.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/zh.json +46 -0
- package/plugins/vc-ask/questionnaire/presentation.ts +11 -0
- package/plugins/vc-ask/questionnaire/question-preview.ts +6 -0
- package/plugins/vc-ask/questionnaire/rpc.ts +221 -0
- package/plugins/vc-ask/questionnaire/session-timeout.ts +67 -0
- package/plugins/vc-ask/questionnaire/state/build-questionnaire.ts +144 -0
- package/plugins/vc-ask/questionnaire/state/external-editor.ts +62 -0
- package/plugins/vc-ask/questionnaire/state/geometry.ts +131 -0
- package/plugins/vc-ask/questionnaire/state/key-router.ts +382 -0
- package/plugins/vc-ask/questionnaire/state/panel-router.ts +32 -0
- package/plugins/vc-ask/questionnaire/state/questionnaire-session.ts +642 -0
- package/plugins/vc-ask/questionnaire/state/row-intent.ts +143 -0
- package/plugins/vc-ask/questionnaire/state/selectors/contract.ts +24 -0
- package/plugins/vc-ask/questionnaire/state/selectors/derivations.ts +40 -0
- package/plugins/vc-ask/questionnaire/state/selectors/focus.ts +17 -0
- package/plugins/vc-ask/questionnaire/state/selectors/projections.ts +99 -0
- package/plugins/vc-ask/questionnaire/state/state-reducer.ts +455 -0
- package/plugins/vc-ask/questionnaire/state/state.ts +90 -0
- package/plugins/vc-ask/questionnaire/state/vertical.ts +158 -0
- package/plugins/vc-ask/questionnaire/timeout.ts +59 -0
- package/plugins/vc-ask/questionnaire/tool/external-answer.ts +103 -0
- package/plugins/vc-ask/questionnaire/tool/format-answer.ts +24 -0
- package/plugins/vc-ask/questionnaire/tool/normalize-params.ts +37 -0
- package/plugins/vc-ask/questionnaire/tool/response-envelope.ts +75 -0
- package/plugins/vc-ask/questionnaire/tool/types.ts +74 -0
- package/plugins/vc-ask/questionnaire/tool/validate-questionnaire.ts +75 -0
- package/plugins/vc-ask/questionnaire/view/card-theme.ts +245 -0
- package/plugins/vc-ask/questionnaire/view/components/inline-input.ts +66 -0
- package/plugins/vc-ask/questionnaire/view/components/multi-select-view.ts +177 -0
- package/plugins/vc-ask/questionnaire/view/components/option-list-view.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/markdown-content-cache.ts +101 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-block-renderer.ts +130 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-box-renderer.ts +86 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-layout-decider.ts +204 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-pane.ts +257 -0
- package/plugins/vc-ask/questionnaire/view/components/submit-picker.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/tab-bar.ts +57 -0
- package/plugins/vc-ask/questionnaire/view/components/wrapping-select.ts +269 -0
- package/plugins/vc-ask/questionnaire/view/dialog-builder.ts +319 -0
- package/plugins/vc-ask/questionnaire/view/document-theme.ts +53 -0
- package/plugins/vc-ask/questionnaire/view/document-view.ts +306 -0
- package/plugins/vc-ask/questionnaire/view/panel-chrome.ts +133 -0
- package/plugins/vc-ask/questionnaire/view/props-adapter.ts +77 -0
- package/plugins/vc-ask/questionnaire/view/stateful-view.ts +24 -0
- package/plugins/vc-ask/questionnaire/view/tab-components.ts +16 -0
- package/plugins/vc-ask/questionnaire/view/tab-content-strategy.ts +280 -0
- package/plugins/vc-ask/questionnaire/view/vertical-view.ts +218 -0
- package/plugins/vc-ask/user-input-events.ts +34 -0
- package/plugins/vc-ask/vc-extras.plugin.json +18 -0
- package/plugins/vc-footer/agents/claude-code/adapter.mjs +29 -0
- package/plugins/vc-footer/agents/claude-code/cli.mjs +23 -0
- package/plugins/vc-footer/agents/claude-code/renderer.mjs +1 -0
- package/plugins/vc-footer/agents/claude-code/types.d.ts +38 -0
- package/plugins/vc-footer/agents/codex/adapter.mjs +13 -0
- package/plugins/vc-footer/agents/codex/mcp.mjs +45 -0
- package/plugins/vc-footer/agents/codex/native.mjs +19 -0
- package/plugins/vc-footer/agents/codex/renderer.mjs +2 -0
- package/plugins/vc-footer/agents/pi/adapter.mjs +23 -0
- package/plugins/vc-footer/agents/pi/index.js +84 -0
- package/plugins/vc-footer/agents/pi/project-local-owner.mjs +97 -0
- package/plugins/vc-footer/agents/pi/renderer.mjs +5 -0
- package/plugins/vc-footer/core/data.mjs +218 -0
- package/plugins/vc-footer/core/render.mjs +291 -0
- package/plugins/vc-footer/core/types.d.ts +29 -0
- package/plugins/vc-footer/package.json +22 -0
- package/plugins/vc-footer/vc-extras.plugin.json +32 -0
- package/skills/animate/LICENSE +21 -21
- package/skills/animate/RECIPES.md +324 -324
- package/skills/animate/SKILL.md +208 -208
- package/skills/animate/UPSTREAM.md +19 -19
- package/skills/animation-performance/LICENSE +21 -21
- package/skills/animation-performance/SKILL.md +223 -223
- package/skills/animation-performance/UPSTREAM.md +19 -19
- package/skills/answer-me-with-html/SKILL.md +174 -174
- package/skills/answer-me-with-html/scripts/am.mjs +12896 -12896
- package/skills/apple-design/LICENSE +21 -21
- package/skills/apple-design/SKILL.md +291 -291
- package/skills/apple-design/UPSTREAM.md +19 -19
- package/skills/bad-smell/SKILL.md +44 -44
- package/skills/commit/SKILL.md +90 -90
- package/skills/emil-design-eng/LICENSE +21 -21
- package/skills/emil-design-eng/SKILL.md +677 -677
- package/skills/emil-design-eng/UPSTREAM.md +19 -19
- package/skills/find-the-truth/SKILL.md +38 -38
- package/skills/find-the-truth/references/trace-method.md +48 -48
- package/skills/find-the-truth/references/truth-method.md +39 -39
- package/skills/gestures/LICENSE +21 -21
- package/skills/gestures/SKILL.md +107 -107
- package/skills/gestures/UPSTREAM.md +19 -19
- package/skills/humanizer-zh/LICENSE +21 -21
- package/skills/humanizer-zh/SKILL.md +409 -409
- package/skills/humanizer-zh/UPSTREAM.md +7 -7
- package/skills/impeccable/LICENSE +191 -191
- package/skills/impeccable/NOTICE.md +11 -11
- package/skills/impeccable/SKILL.md +89 -89
- package/skills/impeccable/licenses/modern-screenshot-MIT.txt +8 -8
- package/skills/impeccable/licenses/platform-design-skills-MIT.txt +21 -21
- package/skills/impeccable/reference/adapt.md +318 -318
- package/skills/impeccable/reference/adapt.native.md +58 -58
- package/skills/impeccable/reference/android.md +46 -46
- package/skills/impeccable/reference/animate.md +89 -89
- package/skills/impeccable/reference/audit.md +139 -139
- package/skills/impeccable/reference/audit.native.md +139 -139
- package/skills/impeccable/reference/bolder.md +33 -33
- package/skills/impeccable/reference/clarify.md +94 -94
- package/skills/impeccable/reference/colorize.md +86 -86
- package/skills/impeccable/reference/component-review.md +63 -63
- package/skills/impeccable/reference/craft-floor.md +44 -44
- package/skills/impeccable/reference/craft.md +5 -5
- package/skills/impeccable/reference/critique.md +819 -819
- package/skills/impeccable/reference/degraded/asset-producer.md +41 -41
- package/skills/impeccable/reference/degraded/documenter.md +23 -23
- package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -37
- package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -92
- package/skills/impeccable/reference/delight.md +70 -70
- package/skills/impeccable/reference/distill.md +111 -111
- package/skills/impeccable/reference/doctor.md +54 -54
- package/skills/impeccable/reference/document.md +416 -416
- package/skills/impeccable/reference/extract.md +69 -69
- package/skills/impeccable/reference/generate.md +101 -101
- package/skills/impeccable/reference/harden.md +362 -362
- package/skills/impeccable/reference/hooks.md +114 -114
- package/skills/impeccable/reference/init.md +131 -131
- package/skills/impeccable/reference/ios.md +51 -51
- package/skills/impeccable/reference/layout.md +84 -84
- package/skills/impeccable/reference/live-setup.md +104 -104
- package/skills/impeccable/reference/live.md +327 -327
- package/skills/impeccable/reference/mode-operate.md +21 -21
- package/skills/impeccable/reference/mode-persuade.md +19 -19
- package/skills/impeccable/reference/mode-read.md +21 -21
- package/skills/impeccable/reference/new-work.md +152 -152
- package/skills/impeccable/reference/onboard.md +234 -234
- package/skills/impeccable/reference/operate.md +61 -61
- package/skills/impeccable/reference/optimize.md +257 -257
- package/skills/impeccable/reference/overdrive.md +127 -127
- package/skills/impeccable/reference/polish.md +105 -105
- package/skills/impeccable/reference/quieter.md +99 -99
- package/skills/impeccable/reference/region-map.md +26 -26
- package/skills/impeccable/reference/routing.md +24 -24
- package/skills/impeccable/reference/shape.md +59 -59
- package/skills/impeccable/reference/typeset.md +90 -90
- package/skills/impeccable/reference/visualize.md +47 -47
- package/skills/impeccable/scripts/VERSION +1 -1
- package/skills/impeccable/scripts/command-metadata.json +98 -98
- package/skills/impeccable/scripts/data/font-index-failures.json +120 -120
- package/skills/impeccable/scripts/engine-checksums.txt +9 -9
- package/skills/impeccable/scripts/impeccable +249 -249
- package/skills/impeccable/scripts/impeccable.cmd +278 -278
- package/skills/impeccable/scripts/live-browser-dom.js +320 -320
- package/skills/impeccable/scripts/live-browser-ignores.js +246 -246
- package/skills/impeccable/scripts/live-browser-session.js +183 -183
- package/skills/impeccable/scripts/live-browser.js +13862 -13862
- package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -14
- package/skills/improve-animations/AUDIT.md +115 -115
- package/skills/improve-animations/LICENSE +21 -21
- package/skills/improve-animations/PLAN-TEMPLATE.md +73 -73
- package/skills/improve-animations/SKILL.md +110 -110
- package/skills/improve-animations/UPSTREAM.md +19 -19
- package/skills/pick-ui-library/LICENSE +21 -21
- package/skills/pick-ui-library/SKILL.md +85 -85
- package/skills/pick-ui-library/UPSTREAM.md +19 -19
- package/skills/review-animations/LICENSE +21 -21
- package/skills/review-animations/SKILL.md +120 -120
- package/skills/review-animations/STANDARDS.md +187 -187
- package/skills/review-animations/UPSTREAM.md +19 -19
- package/skills/test/SKILL.md +29 -29
- package/skills/test/references/test-method.md +60 -60
- package/skills/write-doc/SKILL.md +115 -115
- package/skills/write-doc/examples/result-report.md +53 -53
- package/skills/write-doc/examples/task-summary.md +45 -45
- package/skills/write-doc/references/terminology.md +147 -147
- package/specs/ask-host-protocol-v1.md +58 -0
- package/specs/design-demo.md +1102 -1102
- package/specs/frontend-immersive.md +28 -28
- package/specs/plugin-install-v2.md +123 -0
- package/specs/plugin-install.md +38 -0
- package/specs/web-modes/explore.md +31 -31
- package/specs/web-modes/risk.md +15 -15
- package/specs/web-modes/verify.md +16 -16
- package/vc-extras.mjs +46 -62
- package/plugins/essrj/context.ts +0 -47
- package/plugins/essrj/data.ts +0 -190
- package/plugins/essrj/index.ts +0 -139
- package/plugins/essrj/package.json +0 -12
- package/plugins/essrj/project-local-owner.ts +0 -106
- package/plugins/essrj/render.ts +0 -217
- package/plugins/essrj/types.ts +0 -40
- package/plugins.json +0 -38
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# Upstream
|
|
2
|
-
|
|
3
|
-
- Repository: https://github.com/emilkowalski/skills
|
|
4
|
-
- Commit: f7ce8c02d6e3c8f0d980a44c57bcc41a40254349 (2026-11-12)
|
|
5
|
-
- Upstream path: `skills/review-animations/`
|
|
6
|
-
- License: MIT (see `LICENSE` in this directory)
|
|
7
|
-
|
|
8
|
-
Files copied verbatim: `SKILL.md`, `STANDARDS.md`.
|
|
9
|
-
|
|
10
|
-
The only local adaptation is the frontmatter `disable-model-invocation: true` added by
|
|
11
|
-
`npm run sync:skills`, so the model sees this skill only through the
|
|
12
|
-
`emma/skills/skills-router/SKILL.md` row and loads it on demand.
|
|
13
|
-
|
|
14
|
-
## Resync
|
|
15
|
-
|
|
16
|
-
1. Check out the recorded commit of the upstream repository.
|
|
17
|
-
2. Replace the upstream files here with `skills/review-animations/` from that commit; keep `LICENSE` and this file.
|
|
18
|
-
3. Run `npm run sync:skills` to restore the hidden frontmatter and the router row.
|
|
19
|
-
4. Keep the frontmatter `description` a single-line plain scalar; the router generator rejects block and folded scalars.
|
|
1
|
+
# Upstream
|
|
2
|
+
|
|
3
|
+
- Repository: https://github.com/emilkowalski/skills
|
|
4
|
+
- Commit: f7ce8c02d6e3c8f0d980a44c57bcc41a40254349 (2026-11-12)
|
|
5
|
+
- Upstream path: `skills/review-animations/`
|
|
6
|
+
- License: MIT (see `LICENSE` in this directory)
|
|
7
|
+
|
|
8
|
+
Files copied verbatim: `SKILL.md`, `STANDARDS.md`.
|
|
9
|
+
|
|
10
|
+
The only local adaptation is the frontmatter `disable-model-invocation: true` added by
|
|
11
|
+
`npm run sync:skills`, so the model sees this skill only through the
|
|
12
|
+
`emma/skills/skills-router/SKILL.md` row and loads it on demand.
|
|
13
|
+
|
|
14
|
+
## Resync
|
|
15
|
+
|
|
16
|
+
1. Check out the recorded commit of the upstream repository.
|
|
17
|
+
2. Replace the upstream files here with `skills/review-animations/` from that commit; keep `LICENSE` and this file.
|
|
18
|
+
3. Run `npm run sync:skills` to restore the hidden frontmatter and the router row.
|
|
19
|
+
4. Keep the frontmatter `description` a single-line plain scalar; the router generator rejects block and folded scalars.
|
package/skills/test/SKILL.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
---
|
|
2
|
-
disable-model-invocation: true
|
|
3
|
-
name: test
|
|
4
|
-
description: Use when work needs independent end-to-end verification — a feature or change before delivery, or a retest after a confirmed fix.
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Assemble the test objective and materials, determine the scope, and always delegate to the `Tester` sub-agent in the background — return immediately after dispatch and do something else; do not wait.
|
|
8
|
-
After the sub-agent returns: relay per the report — Fail and Blocked are not passes; experience items are relayed as observations and issues only; state uncovered items faithfully; never authorize fixes on your own.
|
|
9
|
-
|
|
10
|
-
## Assemble the prompt
|
|
11
|
-
|
|
12
|
-
- Assemble per the template below, replacing every `<...>`; derive this round's test items from the goal and acceptance criteria — do not substitute the whole requirements document for the test scope.
|
|
13
|
-
- Materials must be real — version, changes, environment, and credentials point to actual sources.
|
|
14
|
-
- Resolve `<test-method-path>` to the absolute path of `references/test-method.md` beside the loaded `SKILL.md`, so Tester can read it without loading skills.
|
|
15
|
-
|
|
16
|
-
```markdown
|
|
17
|
-
## Context
|
|
18
|
-
<This round's goal and acceptance criteria, constraints that must hold; the version under test and the change scope (diff entry or changed-file list); environment state (a ready entry point, or how to start it) and credentials; the task artifact directory; what is explicitly out of scope this round. For a retest: the previous report location and this round's fixes.>
|
|
19
|
-
|
|
20
|
-
## Test Items
|
|
21
|
-
<This round's test items, labeled by type with expectations:
|
|
22
|
-
- [Functional] explicit case and expected result
|
|
23
|
-
- [Experience] scenario and focus points (real-user end-to-end experience, non-binary)
|
|
24
|
-
For a retest: the original issues plus the regression scenarios directly affected by this round's fixes.>
|
|
25
|
-
|
|
26
|
-
## Method
|
|
27
|
-
Read `<test-method-path>` in full first; strictly follow it.
|
|
28
|
-
Return the end-to-end test report (test environment / functional table / experience table / conclusions / follow-ups); write the full report to `e2e.md` in the task artifact directory and output only the report path.
|
|
29
|
-
```
|
|
1
|
+
---
|
|
2
|
+
disable-model-invocation: true
|
|
3
|
+
name: test
|
|
4
|
+
description: Use when work needs independent end-to-end verification — a feature or change before delivery, or a retest after a confirmed fix.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Assemble the test objective and materials, determine the scope, and always delegate to the `Tester` sub-agent in the background — return immediately after dispatch and do something else; do not wait.
|
|
8
|
+
After the sub-agent returns: relay per the report — Fail and Blocked are not passes; experience items are relayed as observations and issues only; state uncovered items faithfully; never authorize fixes on your own.
|
|
9
|
+
|
|
10
|
+
## Assemble the prompt
|
|
11
|
+
|
|
12
|
+
- Assemble per the template below, replacing every `<...>`; derive this round's test items from the goal and acceptance criteria — do not substitute the whole requirements document for the test scope.
|
|
13
|
+
- Materials must be real — version, changes, environment, and credentials point to actual sources.
|
|
14
|
+
- Resolve `<test-method-path>` to the absolute path of `references/test-method.md` beside the loaded `SKILL.md`, so Tester can read it without loading skills.
|
|
15
|
+
|
|
16
|
+
```markdown
|
|
17
|
+
## Context
|
|
18
|
+
<This round's goal and acceptance criteria, constraints that must hold; the version under test and the change scope (diff entry or changed-file list); environment state (a ready entry point, or how to start it) and credentials; the task artifact directory; what is explicitly out of scope this round. For a retest: the previous report location and this round's fixes.>
|
|
19
|
+
|
|
20
|
+
## Test Items
|
|
21
|
+
<This round's test items, labeled by type with expectations:
|
|
22
|
+
- [Functional] explicit case and expected result
|
|
23
|
+
- [Experience] scenario and focus points (real-user end-to-end experience, non-binary)
|
|
24
|
+
For a retest: the original issues plus the regression scenarios directly affected by this round's fixes.>
|
|
25
|
+
|
|
26
|
+
## Method
|
|
27
|
+
Read `<test-method-path>` in full first; strictly follow it.
|
|
28
|
+
Return the end-to-end test report (test environment / functional table / experience table / conclusions / follow-ups); write the full report to `e2e.md` in the task artifact directory and output only the report path.
|
|
29
|
+
```
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
# Test Method
|
|
2
|
-
|
|
3
|
-
## Workflow
|
|
4
|
-
|
|
5
|
-
1. **Understand the scope**: from the test request, read the related task docs and the project's testing conventions (including `.emma/specs/testing-scope.md`, reuse it if already in context); determine the target under test, acceptance criteria, available test environment, and test items; separate functional from experience items. When a Test Items list is already provided, follow it and extend as needed.
|
|
6
|
-
2. **Choose the approach**: reuse existing test commands and scripts first — let the program run continuously and inspect at key results, failures, or points needing an experience judgment; do not default to step-by-step screenshots and simulated clicks.
|
|
7
|
-
3. **Prepare and wait**: prepare accounts, data, and the test starting point; direct means such as APIs or commands are fine, but the user operation being verified must not be skipped. Wait for the actual result before continuing; no arbitrary fixed waits — control pacing only when measuring input speed or animation itself.
|
|
8
|
-
4. **Execute item by item**:
|
|
9
|
-
- Functional: cover every case; give each a 「Pass / Fail / Blocked」 verdict with evidence.
|
|
10
|
-
- Experience: walk through it fully like a real user, judging by sight, subjective feel, and common sense; record **observations** (what you actually experienced), **suggestions** (improvement directions), and **issues** (specific points hurting the experience). Prioritize core real scenarios; do not write meaningless tests for coverage numbers.
|
|
11
|
-
5. **Blocked handling**: when environment, tools, or credentials make verification impossible, mark the item 「Blocked」 and state what is needed; do not guess the result. Items not executed are marked 「Untested」 and listed under follow-ups.
|
|
12
|
-
|
|
13
|
-
## Screenshots and evidence
|
|
14
|
-
|
|
15
|
-
- **Every result must carry evidence**: UI tests use screenshots at key nodes; non-UI tests use actual output, logs, or responses. Experience observations, suggestions, and issues must correspond to an actual screen or interaction; one piece of evidence may support several related conclusions.
|
|
16
|
-
- Screenshots target the case's key nodes (result page, error state, where the visual problem occurs) — not just the home page or the initial state.
|
|
17
|
-
- Save screenshots as files and inline them in the report's evidence column with Markdown image syntax (e.g. ``); notes, log paths, or command output also work (separate multiple items in one cell with `<br>`). **A screenshot path alone is not evidence.**
|
|
18
|
-
- Blocked / non-reproducible items must also keep what you saw (screenshot or text) and state what you tried.
|
|
19
|
-
- Reports and screenshots must not expose passwords, tokens, or other secrets.
|
|
20
|
-
|
|
21
|
-
## Report format
|
|
22
|
-
|
|
23
|
-
```markdown
|
|
24
|
-
# {feature/issue} End-to-end Test Report
|
|
25
|
-
|
|
26
|
-
## Test environment
|
|
27
|
-
|
|
28
|
-
- Version under test: <the code version or workspace changes>
|
|
29
|
-
- Execution: <test commands, scripts, or interactive operations used; write 「none」 if empty>
|
|
30
|
-
- Time profile: <total time; notably long preparation, waiting, or retries and why; write 「none」 if empty>
|
|
31
|
-
- Environment/prerequisites: <device, browser, test accounts, data; write 「none」 if empty>
|
|
32
|
-
|
|
33
|
-
## Functional items
|
|
34
|
-
|
|
35
|
-
| # | Steps | Expected | Actual | Status | Evidence |
|
|
36
|
-
| --- | -------------- | -------------- | -------- | -------------------------- | ------------------------------ |
|
|
37
|
-
| 1 | <repeatable> | <observable> | <actual> | Pass/Fail/Blocked/Untested | <inline screenshot, output, or log evidence> |
|
|
38
|
-
|
|
39
|
-
## Experience items
|
|
40
|
-
|
|
41
|
-
| # | Scenario | Focus | Observation | Suggestion/Issue | Evidence |
|
|
42
|
-
| --- | -------- | ----------------- | -------------- | ---------------------------------- | ------------------- |
|
|
43
|
-
| 1 | <scenario> | <visual/interaction/common sense> | <actually experienced> | <suggestion or specific issue; 「none」 if empty> |  |
|
|
44
|
-
|
|
45
|
-
## Conclusions
|
|
46
|
-
|
|
47
|
-
- Functional: Pass N · Fail N · Blocked N · Untested N
|
|
48
|
-
- Experience: N observations, N key issues
|
|
49
|
-
|
|
50
|
-
## Follow-ups
|
|
51
|
-
|
|
52
|
-
<Next steps for Failed/Blocked/Untested items and key experience issues>
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
If one item type is absent, omit its section and its conclusion count.
|
|
56
|
-
|
|
57
|
-
## Output location
|
|
58
|
-
|
|
59
|
-
- Write the full report to `e2e.md` in the task directory named by Context; store screenshots under `shots/` in the same directory.
|
|
60
|
-
- Output only the report path.
|
|
1
|
+
# Test Method
|
|
2
|
+
|
|
3
|
+
## Workflow
|
|
4
|
+
|
|
5
|
+
1. **Understand the scope**: from the test request, read the related task docs and the project's testing conventions (including `.emma/specs/testing-scope.md`, reuse it if already in context); determine the target under test, acceptance criteria, available test environment, and test items; separate functional from experience items. When a Test Items list is already provided, follow it and extend as needed.
|
|
6
|
+
2. **Choose the approach**: reuse existing test commands and scripts first — let the program run continuously and inspect at key results, failures, or points needing an experience judgment; do not default to step-by-step screenshots and simulated clicks.
|
|
7
|
+
3. **Prepare and wait**: prepare accounts, data, and the test starting point; direct means such as APIs or commands are fine, but the user operation being verified must not be skipped. Wait for the actual result before continuing; no arbitrary fixed waits — control pacing only when measuring input speed or animation itself.
|
|
8
|
+
4. **Execute item by item**:
|
|
9
|
+
- Functional: cover every case; give each a 「Pass / Fail / Blocked」 verdict with evidence.
|
|
10
|
+
- Experience: walk through it fully like a real user, judging by sight, subjective feel, and common sense; record **observations** (what you actually experienced), **suggestions** (improvement directions), and **issues** (specific points hurting the experience). Prioritize core real scenarios; do not write meaningless tests for coverage numbers.
|
|
11
|
+
5. **Blocked handling**: when environment, tools, or credentials make verification impossible, mark the item 「Blocked」 and state what is needed; do not guess the result. Items not executed are marked 「Untested」 and listed under follow-ups.
|
|
12
|
+
|
|
13
|
+
## Screenshots and evidence
|
|
14
|
+
|
|
15
|
+
- **Every result must carry evidence**: UI tests use screenshots at key nodes; non-UI tests use actual output, logs, or responses. Experience observations, suggestions, and issues must correspond to an actual screen or interaction; one piece of evidence may support several related conclusions.
|
|
16
|
+
- Screenshots target the case's key nodes (result page, error state, where the visual problem occurs) — not just the home page or the initial state.
|
|
17
|
+
- Save screenshots as files and inline them in the report's evidence column with Markdown image syntax (e.g. ``); notes, log paths, or command output also work (separate multiple items in one cell with `<br>`). **A screenshot path alone is not evidence.**
|
|
18
|
+
- Blocked / non-reproducible items must also keep what you saw (screenshot or text) and state what you tried.
|
|
19
|
+
- Reports and screenshots must not expose passwords, tokens, or other secrets.
|
|
20
|
+
|
|
21
|
+
## Report format
|
|
22
|
+
|
|
23
|
+
```markdown
|
|
24
|
+
# {feature/issue} End-to-end Test Report
|
|
25
|
+
|
|
26
|
+
## Test environment
|
|
27
|
+
|
|
28
|
+
- Version under test: <the code version or workspace changes>
|
|
29
|
+
- Execution: <test commands, scripts, or interactive operations used; write 「none」 if empty>
|
|
30
|
+
- Time profile: <total time; notably long preparation, waiting, or retries and why; write 「none」 if empty>
|
|
31
|
+
- Environment/prerequisites: <device, browser, test accounts, data; write 「none」 if empty>
|
|
32
|
+
|
|
33
|
+
## Functional items
|
|
34
|
+
|
|
35
|
+
| # | Steps | Expected | Actual | Status | Evidence |
|
|
36
|
+
| --- | -------------- | -------------- | -------- | -------------------------- | ------------------------------ |
|
|
37
|
+
| 1 | <repeatable> | <observable> | <actual> | Pass/Fail/Blocked/Untested | <inline screenshot, output, or log evidence> |
|
|
38
|
+
|
|
39
|
+
## Experience items
|
|
40
|
+
|
|
41
|
+
| # | Scenario | Focus | Observation | Suggestion/Issue | Evidence |
|
|
42
|
+
| --- | -------- | ----------------- | -------------- | ---------------------------------- | ------------------- |
|
|
43
|
+
| 1 | <scenario> | <visual/interaction/common sense> | <actually experienced> | <suggestion or specific issue; 「none」 if empty> |  |
|
|
44
|
+
|
|
45
|
+
## Conclusions
|
|
46
|
+
|
|
47
|
+
- Functional: Pass N · Fail N · Blocked N · Untested N
|
|
48
|
+
- Experience: N observations, N key issues
|
|
49
|
+
|
|
50
|
+
## Follow-ups
|
|
51
|
+
|
|
52
|
+
<Next steps for Failed/Blocked/Untested items and key experience issues>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
If one item type is absent, omit its section and its conclusion count.
|
|
56
|
+
|
|
57
|
+
## Output location
|
|
58
|
+
|
|
59
|
+
- Write the full report to `e2e.md` in the task directory named by Context; store screenshots under `shots/` in the same directory.
|
|
60
|
+
- Output only the report path.
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
---
|
|
2
|
-
disable-model-invocation: true
|
|
3
|
-
name: write-doc
|
|
4
|
-
description: Use when the user asks to write or rewrite a document, including results reports, progress updates, investigation explanations, decision notes, and summaries. Applies only to the current task.
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# write-doc:简化技术中文
|
|
8
|
-
|
|
9
|
-
用自然、准确、克制的语言,把事情讲清楚。
|
|
10
|
-
|
|
11
|
-
先让读者把握整体,再理解关键部分,获得足以判断或行动的信息。简洁不是最少字数,而是没有多余的话,也没有缺少必要的解释。
|
|
12
|
-
|
|
13
|
-
用户明确指定的读者、用途、来源范围和格式优先。
|
|
14
|
-
|
|
15
|
-
使用简体中文。原样引用的日志、错误信息和命令输出必须一字不改,可以在引用之外解释。
|
|
16
|
-
|
|
17
|
-
R1–R25 用于指导和检查写作,不是最终回答的栏目。术语含义与完成条件参考 [references/terminology.md](references/terminology.md),不要求正文采用固定词组或状态标签。
|
|
18
|
-
|
|
19
|
-
## 成品的风格与组织
|
|
20
|
-
|
|
21
|
-
像一个思路清楚、判断审慎、表达克制的人说话:直接,但不生硬;充分,但不铺陈;有判断,但不过度断言。
|
|
22
|
-
|
|
23
|
-
以自然段承载完整意思,用少量有意义的标题划分主要层次。标题应说明这一部分在讲什么,不默认套用「现象、原因、证据、改动、验证、建议」。
|
|
24
|
-
|
|
25
|
-
组织时把握主从关系,由整体向细节展开:
|
|
26
|
-
|
|
27
|
-
- **主判断统领全文。** 后续内容围绕读者需要理解或决定的事情展开。
|
|
28
|
-
- **支撑解释判断。** 按原因、对照、条件或取舍之间的关系组织,不照搬资料顺序。
|
|
29
|
-
- **复杂处逐层拆解。** 先讲主要机制或关系,再进入必要的字段、接口、日志和局部细节。
|
|
30
|
-
- **收束落到新信息。** 需要时补充下一步动作、选择或判断条件,不把正文重新复述一遍。
|
|
31
|
-
|
|
32
|
-
这是组织思路,不是四个固定栏目,也不要求每次全部出现。短回答可以直接结束;操作说明可以在简短判断后进入步骤。
|
|
33
|
-
|
|
34
|
-
主次由读者的问题决定。不因掌握了某项材料,就把它放进正文;用户需要完整数据或复现步骤时,也不以简洁为由删减。
|
|
35
|
-
|
|
36
|
-
## 写作规则
|
|
37
|
-
|
|
38
|
-
### 词与表达
|
|
39
|
-
|
|
40
|
-
- **R1 一词一义。** 同一概念保持一致称呼,不为避免重复而更换成含义不明的近义词。简称和指代可以使用,但必须清楚。
|
|
41
|
-
|
|
42
|
-
- **R2 先解释,后展开。** 优先直接描述读者需要理解的行为和范围。能写「当前节点及其下级节点」,就不必先引入「子树」。术语确有检索、讨论或操作价值时,在首次出现处就地解释;不仅说明它是什么,还要说清它与当前问题的关系。解释仍须遵守来源范围。
|
|
43
|
-
|
|
44
|
-
- **R3 用具体动词。** 写「修改配置」,不写「对配置进行修改」。能说明具体行为时,不只写「优化」「处理」「完善」。删掉不增加意思的包装,不改变技术含义。
|
|
45
|
-
|
|
46
|
-
- **R4 字面量保持原样。** 界面文案、按钮名、代码标识符、命令和路径保持原文,不因改写而拆分或改变其边界。代码、命令和路径写在反引号内;需要检索的原标题保留原文。
|
|
47
|
-
|
|
48
|
-
- **R5 拆开难读的名词串。** 连续堆叠名词时,写出它们之间的关系。例:「终端会话失败反馈界面状态」改为「终端会话失败时的界面状态」。固定技术名称不为拆词而改名。
|
|
49
|
-
|
|
50
|
-
### 句与段落
|
|
51
|
-
|
|
52
|
-
- **R6 一句围绕一个主要意思。** 无关的动作或事实拆开写。同一件事的条件、原因、结果或对照可以放在一句中,不为拆句而切断关系。
|
|
53
|
-
|
|
54
|
-
- **R7 优先短句,不机械限字。** 长句先删重复,再按意思拆分。保留必要的对象、条件、因果和限定,不为满足字数门槛而省略信息。
|
|
55
|
-
|
|
56
|
-
- **R8 优先主动表达。** 谁做了什么应当清楚。执行者不明确或不重要时,可以使用被动表达,不强行补出主语。
|
|
57
|
-
|
|
58
|
-
- **R9 条件与动作相邻。** 条件影响理解或操作时,先交代条件,再说明动作或结果。不要把关键前提藏在段末。
|
|
59
|
-
|
|
60
|
-
- **R10 不用不必要的双重否定。** 写「必须确认」,不写「不能不确认」。涉及原始逻辑或引用时,不得因改写否定形式而改变含义。
|
|
61
|
-
|
|
62
|
-
- **R11 保持要求的强度。** 区分强制、禁止、允许、建议和能力。不得把建议改成必须,把能够说成允许。用词可以自然变化,来源中的要求强度不能改变。
|
|
63
|
-
|
|
64
|
-
- **R12 主语与指代明确。** 省略后可能产生歧义时,补出对象。尤其要分清不同节点、版本、时间和检查范围,避免用一个「它」连接不同对象。
|
|
65
|
-
|
|
66
|
-
- **R13 一段一个主题。** 用几句话把一个意思讲完整,转到新问题时另起一段。不机械地一句一段;段落过重时,先检查是否混入另一个主题或无关细节。
|
|
67
|
-
|
|
68
|
-
- **R14 操作步骤写清动作。** 需要读者按顺序执行时,使用编号步骤,说明必要条件、具体动作和预期结果。写到目标读者能够照做,不只重述「确认正常」「做好备份」之类的目标,也不补造未知环境中的菜单或命令。解释事情不等于指导操作,不把所有解释写成步骤。
|
|
69
|
-
|
|
70
|
-
- **R15 按阅读任务选择形式。** 连续解释用段落,独立重点用列表,相同维度的比较用表格。表格标清必要的对象、单位和时间范围,不把长篇解释塞进单元格,也不在表后逐行复述。
|
|
71
|
-
|
|
72
|
-
- **R16 风险提醒先说怎么做。** 先说明对应动作,再解释风险或后果。保持来源中的要求强度:确属强制或禁止的明确写出,其余说明建议与取舍。提醒与具体风险相称,不补无依据的警告或反复免责。
|
|
73
|
-
|
|
74
|
-
- **R17 列举的边界清楚。** 完整范围必须列全,或提供完整清单的位置。只举例时明确是在举例,不用「等」「之类」掩盖未说明的改动、影响或要求。
|
|
75
|
-
|
|
76
|
-
### 内容与汇报
|
|
77
|
-
|
|
78
|
-
- **R18 关键信息先行。** 首句回答当前问题,不先介绍工作安排,也不用笼统状态代替实质答复。用户问了多个问题时,按它们之间的关系组织,不能只给一个概括结论。准确但不影响理解、判断或行动的细节不必进入正文。
|
|
79
|
-
|
|
80
|
-
- **R19 自然说明状态。** 完成范围与验证范围必须明确,但不强制状态标签。可以写「代码已经修改,运行效果还没有验证」。必需验收未完成或存在已知失败时,不得宣称整项任务完成;临时恢复不得写成永久解决。
|
|
81
|
-
|
|
82
|
-
- **R20 如实写验证。** 实际效果、运行行为和检查结果应有依据,说明必要的方法、结果与覆盖范围。读取资料不等于运行验证。已知未执行、执行失败、缺少记录是不同情况,不得混写。历史结果不能冒充本次新检查。验证限制贴近对应结论,共享的来源或检查边界集中交代,不逐段重复。
|
|
83
|
-
|
|
84
|
-
- **R21 保留必要经过,删除操作流水账。** 用户要求调查经过,或经过支持结论时,说明哪些观察缩小了范围,哪些对照支持了判断。保留推理链,不复述全部文件读取和工具调用。面向不同用途可以概括细节,但不能省略使结论成立的条件。
|
|
85
|
-
|
|
86
|
-
- **R22 证据可定位。** 引用代码使用已知的 `路径:行号`,引用提交写提交号,引用资料或历史对话时提供可定位的版本、位置或消息信息。缺少行号时,可以用路径及函数名或节标题定位,不补造缺失信息。需要复现操作时给出完整命令,仅概述安排时不必展开整套脚本。同一来源可以集中列一次,再关联它支持的结论。
|
|
87
|
-
|
|
88
|
-
- **R23 让选择容易比较。** 需要用户决定时,说明真正不同的选项及其后果,有充分依据再推荐。多个选项需要明确选择时使用编号,不为套格式制造选项。
|
|
89
|
-
|
|
90
|
-
- **R24 区分事实、推断和未知。** 已确认的直接说,有依据的推断说明依据和限制,未查清的明确承认。可以使用「可能」,但不能用它掩盖没有证据。先回答现有材料允许回答的部分,再说明缺口如何影响判断,不让「尚未确认」代替整个回答。
|
|
91
|
-
|
|
92
|
-
- **R25 尊重来源范围,不改变事实边界。** 只改写所给材料时,不补入材料外事实或机制。任务允许解释背景时,可以使用可靠的一般知识,但一般机制不能冒充本次原因,类比不能补出未经支持的因果。保留数字的单位、时间、对象和统计范围;字段对应或口径不清时,不自行确定。可以省略无关细节,不能省略会改变结论的限定。待查事实与待用户决定的事项分开,不把所有未知都转交用户。
|
|
93
|
-
|
|
94
|
-
## 克制与收束
|
|
95
|
-
|
|
96
|
-
少用空泛评价、夸张修饰、口号和自我表态。不要反复强调「非常重要」「必须明确」,直接说它是什么、为什么影响当前判断。
|
|
97
|
-
|
|
98
|
-
每一段都应增加必要的信息、解释或判断。开头可以概括,正文可以论证,表格可以供读者横向比较;同一事实再次出现时,应承担不同的阅读作用,而不是换一种说法再讲一遍。
|
|
99
|
-
|
|
100
|
-
例如,操作说明开头提醒暂不删除,末尾说明满足哪些条件后可以删除,承担的是不同作用;已经解释过推荐理由,结尾再重复「因此推荐」,通常没有增量。
|
|
101
|
-
|
|
102
|
-
结尾有新的判断、取舍或行动时再写。正文已经说清的,不另加「简单来说」「总而言之」重复一次。干练不等于省略必要细节,克制也不等于回避明确判断。
|
|
103
|
-
|
|
104
|
-
## 发出前通读
|
|
105
|
-
|
|
106
|
-
在内部检查,不把清单附在回答末尾。
|
|
107
|
-
|
|
108
|
-
- 用户能否直接找到所问问题的答案,主要判断是否清楚?
|
|
109
|
-
- 内容是否按关系展开,复杂处是否逐层解释,而不是倾倒资料或套用栏目?
|
|
110
|
-
- 必要的概念、原因和操作是否说清,有没有为了简短删掉读者需要的细节?
|
|
111
|
-
- 标题、分段、列表和表格是否帮助阅读?
|
|
112
|
-
- 有没有无助于当前任务的细节,或没有新增作用的重述、修饰和提醒?
|
|
113
|
-
- 数字、字面量、来源范围、验证范围与结论强度是否一致?
|
|
114
|
-
|
|
115
|
-
发现问题时,先调整信息取舍和解释关系,不用增加栏目代替组织,也不用压缩字数代替克制。
|
|
1
|
+
---
|
|
2
|
+
disable-model-invocation: true
|
|
3
|
+
name: write-doc
|
|
4
|
+
description: Use when the user asks to write or rewrite a document, including results reports, progress updates, investigation explanations, decision notes, and summaries. Applies only to the current task.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# write-doc:简化技术中文
|
|
8
|
+
|
|
9
|
+
用自然、准确、克制的语言,把事情讲清楚。
|
|
10
|
+
|
|
11
|
+
先让读者把握整体,再理解关键部分,获得足以判断或行动的信息。简洁不是最少字数,而是没有多余的话,也没有缺少必要的解释。
|
|
12
|
+
|
|
13
|
+
用户明确指定的读者、用途、来源范围和格式优先。
|
|
14
|
+
|
|
15
|
+
使用简体中文。原样引用的日志、错误信息和命令输出必须一字不改,可以在引用之外解释。
|
|
16
|
+
|
|
17
|
+
R1–R25 用于指导和检查写作,不是最终回答的栏目。术语含义与完成条件参考 [references/terminology.md](references/terminology.md),不要求正文采用固定词组或状态标签。
|
|
18
|
+
|
|
19
|
+
## 成品的风格与组织
|
|
20
|
+
|
|
21
|
+
像一个思路清楚、判断审慎、表达克制的人说话:直接,但不生硬;充分,但不铺陈;有判断,但不过度断言。
|
|
22
|
+
|
|
23
|
+
以自然段承载完整意思,用少量有意义的标题划分主要层次。标题应说明这一部分在讲什么,不默认套用「现象、原因、证据、改动、验证、建议」。
|
|
24
|
+
|
|
25
|
+
组织时把握主从关系,由整体向细节展开:
|
|
26
|
+
|
|
27
|
+
- **主判断统领全文。** 后续内容围绕读者需要理解或决定的事情展开。
|
|
28
|
+
- **支撑解释判断。** 按原因、对照、条件或取舍之间的关系组织,不照搬资料顺序。
|
|
29
|
+
- **复杂处逐层拆解。** 先讲主要机制或关系,再进入必要的字段、接口、日志和局部细节。
|
|
30
|
+
- **收束落到新信息。** 需要时补充下一步动作、选择或判断条件,不把正文重新复述一遍。
|
|
31
|
+
|
|
32
|
+
这是组织思路,不是四个固定栏目,也不要求每次全部出现。短回答可以直接结束;操作说明可以在简短判断后进入步骤。
|
|
33
|
+
|
|
34
|
+
主次由读者的问题决定。不因掌握了某项材料,就把它放进正文;用户需要完整数据或复现步骤时,也不以简洁为由删减。
|
|
35
|
+
|
|
36
|
+
## 写作规则
|
|
37
|
+
|
|
38
|
+
### 词与表达
|
|
39
|
+
|
|
40
|
+
- **R1 一词一义。** 同一概念保持一致称呼,不为避免重复而更换成含义不明的近义词。简称和指代可以使用,但必须清楚。
|
|
41
|
+
|
|
42
|
+
- **R2 先解释,后展开。** 优先直接描述读者需要理解的行为和范围。能写「当前节点及其下级节点」,就不必先引入「子树」。术语确有检索、讨论或操作价值时,在首次出现处就地解释;不仅说明它是什么,还要说清它与当前问题的关系。解释仍须遵守来源范围。
|
|
43
|
+
|
|
44
|
+
- **R3 用具体动词。** 写「修改配置」,不写「对配置进行修改」。能说明具体行为时,不只写「优化」「处理」「完善」。删掉不增加意思的包装,不改变技术含义。
|
|
45
|
+
|
|
46
|
+
- **R4 字面量保持原样。** 界面文案、按钮名、代码标识符、命令和路径保持原文,不因改写而拆分或改变其边界。代码、命令和路径写在反引号内;需要检索的原标题保留原文。
|
|
47
|
+
|
|
48
|
+
- **R5 拆开难读的名词串。** 连续堆叠名词时,写出它们之间的关系。例:「终端会话失败反馈界面状态」改为「终端会话失败时的界面状态」。固定技术名称不为拆词而改名。
|
|
49
|
+
|
|
50
|
+
### 句与段落
|
|
51
|
+
|
|
52
|
+
- **R6 一句围绕一个主要意思。** 无关的动作或事实拆开写。同一件事的条件、原因、结果或对照可以放在一句中,不为拆句而切断关系。
|
|
53
|
+
|
|
54
|
+
- **R7 优先短句,不机械限字。** 长句先删重复,再按意思拆分。保留必要的对象、条件、因果和限定,不为满足字数门槛而省略信息。
|
|
55
|
+
|
|
56
|
+
- **R8 优先主动表达。** 谁做了什么应当清楚。执行者不明确或不重要时,可以使用被动表达,不强行补出主语。
|
|
57
|
+
|
|
58
|
+
- **R9 条件与动作相邻。** 条件影响理解或操作时,先交代条件,再说明动作或结果。不要把关键前提藏在段末。
|
|
59
|
+
|
|
60
|
+
- **R10 不用不必要的双重否定。** 写「必须确认」,不写「不能不确认」。涉及原始逻辑或引用时,不得因改写否定形式而改变含义。
|
|
61
|
+
|
|
62
|
+
- **R11 保持要求的强度。** 区分强制、禁止、允许、建议和能力。不得把建议改成必须,把能够说成允许。用词可以自然变化,来源中的要求强度不能改变。
|
|
63
|
+
|
|
64
|
+
- **R12 主语与指代明确。** 省略后可能产生歧义时,补出对象。尤其要分清不同节点、版本、时间和检查范围,避免用一个「它」连接不同对象。
|
|
65
|
+
|
|
66
|
+
- **R13 一段一个主题。** 用几句话把一个意思讲完整,转到新问题时另起一段。不机械地一句一段;段落过重时,先检查是否混入另一个主题或无关细节。
|
|
67
|
+
|
|
68
|
+
- **R14 操作步骤写清动作。** 需要读者按顺序执行时,使用编号步骤,说明必要条件、具体动作和预期结果。写到目标读者能够照做,不只重述「确认正常」「做好备份」之类的目标,也不补造未知环境中的菜单或命令。解释事情不等于指导操作,不把所有解释写成步骤。
|
|
69
|
+
|
|
70
|
+
- **R15 按阅读任务选择形式。** 连续解释用段落,独立重点用列表,相同维度的比较用表格。表格标清必要的对象、单位和时间范围,不把长篇解释塞进单元格,也不在表后逐行复述。
|
|
71
|
+
|
|
72
|
+
- **R16 风险提醒先说怎么做。** 先说明对应动作,再解释风险或后果。保持来源中的要求强度:确属强制或禁止的明确写出,其余说明建议与取舍。提醒与具体风险相称,不补无依据的警告或反复免责。
|
|
73
|
+
|
|
74
|
+
- **R17 列举的边界清楚。** 完整范围必须列全,或提供完整清单的位置。只举例时明确是在举例,不用「等」「之类」掩盖未说明的改动、影响或要求。
|
|
75
|
+
|
|
76
|
+
### 内容与汇报
|
|
77
|
+
|
|
78
|
+
- **R18 关键信息先行。** 首句回答当前问题,不先介绍工作安排,也不用笼统状态代替实质答复。用户问了多个问题时,按它们之间的关系组织,不能只给一个概括结论。准确但不影响理解、判断或行动的细节不必进入正文。
|
|
79
|
+
|
|
80
|
+
- **R19 自然说明状态。** 完成范围与验证范围必须明确,但不强制状态标签。可以写「代码已经修改,运行效果还没有验证」。必需验收未完成或存在已知失败时,不得宣称整项任务完成;临时恢复不得写成永久解决。
|
|
81
|
+
|
|
82
|
+
- **R20 如实写验证。** 实际效果、运行行为和检查结果应有依据,说明必要的方法、结果与覆盖范围。读取资料不等于运行验证。已知未执行、执行失败、缺少记录是不同情况,不得混写。历史结果不能冒充本次新检查。验证限制贴近对应结论,共享的来源或检查边界集中交代,不逐段重复。
|
|
83
|
+
|
|
84
|
+
- **R21 保留必要经过,删除操作流水账。** 用户要求调查经过,或经过支持结论时,说明哪些观察缩小了范围,哪些对照支持了判断。保留推理链,不复述全部文件读取和工具调用。面向不同用途可以概括细节,但不能省略使结论成立的条件。
|
|
85
|
+
|
|
86
|
+
- **R22 证据可定位。** 引用代码使用已知的 `路径:行号`,引用提交写提交号,引用资料或历史对话时提供可定位的版本、位置或消息信息。缺少行号时,可以用路径及函数名或节标题定位,不补造缺失信息。需要复现操作时给出完整命令,仅概述安排时不必展开整套脚本。同一来源可以集中列一次,再关联它支持的结论。
|
|
87
|
+
|
|
88
|
+
- **R23 让选择容易比较。** 需要用户决定时,说明真正不同的选项及其后果,有充分依据再推荐。多个选项需要明确选择时使用编号,不为套格式制造选项。
|
|
89
|
+
|
|
90
|
+
- **R24 区分事实、推断和未知。** 已确认的直接说,有依据的推断说明依据和限制,未查清的明确承认。可以使用「可能」,但不能用它掩盖没有证据。先回答现有材料允许回答的部分,再说明缺口如何影响判断,不让「尚未确认」代替整个回答。
|
|
91
|
+
|
|
92
|
+
- **R25 尊重来源范围,不改变事实边界。** 只改写所给材料时,不补入材料外事实或机制。任务允许解释背景时,可以使用可靠的一般知识,但一般机制不能冒充本次原因,类比不能补出未经支持的因果。保留数字的单位、时间、对象和统计范围;字段对应或口径不清时,不自行确定。可以省略无关细节,不能省略会改变结论的限定。待查事实与待用户决定的事项分开,不把所有未知都转交用户。
|
|
93
|
+
|
|
94
|
+
## 克制与收束
|
|
95
|
+
|
|
96
|
+
少用空泛评价、夸张修饰、口号和自我表态。不要反复强调「非常重要」「必须明确」,直接说它是什么、为什么影响当前判断。
|
|
97
|
+
|
|
98
|
+
每一段都应增加必要的信息、解释或判断。开头可以概括,正文可以论证,表格可以供读者横向比较;同一事实再次出现时,应承担不同的阅读作用,而不是换一种说法再讲一遍。
|
|
99
|
+
|
|
100
|
+
例如,操作说明开头提醒暂不删除,末尾说明满足哪些条件后可以删除,承担的是不同作用;已经解释过推荐理由,结尾再重复「因此推荐」,通常没有增量。
|
|
101
|
+
|
|
102
|
+
结尾有新的判断、取舍或行动时再写。正文已经说清的,不另加「简单来说」「总而言之」重复一次。干练不等于省略必要细节,克制也不等于回避明确判断。
|
|
103
|
+
|
|
104
|
+
## 发出前通读
|
|
105
|
+
|
|
106
|
+
在内部检查,不把清单附在回答末尾。
|
|
107
|
+
|
|
108
|
+
- 用户能否直接找到所问问题的答案,主要判断是否清楚?
|
|
109
|
+
- 内容是否按关系展开,复杂处是否逐层解释,而不是倾倒资料或套用栏目?
|
|
110
|
+
- 必要的概念、原因和操作是否说清,有没有为了简短删掉读者需要的细节?
|
|
111
|
+
- 标题、分段、列表和表格是否帮助阅读?
|
|
112
|
+
- 有没有无助于当前任务的细节,或没有新增作用的重述、修饰和提醒?
|
|
113
|
+
- 数字、字面量、来源范围、验证范围与结论强度是否一致?
|
|
114
|
+
|
|
115
|
+
发现问题时,先调整信息取舍和解释关系,不用增加栏目代替组织,也不用压缩字数代替克制。
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
# 示例:结果汇报
|
|
2
|
-
|
|
3
|
-
本示例的来源是虚构的。
|
|
4
|
-
|
|
5
|
-
## Agent 掌握的事实
|
|
6
|
-
|
|
7
|
-
改写只改写法,不增加事实(R25)。改写后的每个事实都来自本节。
|
|
8
|
-
|
|
9
|
-
- 用户的要求:修复登录后偶发退出的问题。用户没有要求改日志和重试逻辑。
|
|
10
|
-
- Agent 读了 `auth/refresh.ts`。第 42 行在刷新前不检查是否已有刷新在进行。
|
|
11
|
-
- 两个请求同时刷新 token 时,后完成的刷新使先拿到的 token 失效。
|
|
12
|
-
- Agent 修改了 `auth/refresh.ts`:同一时间只发一个刷新请求,其他请求等待这次刷新的结果。
|
|
13
|
-
- Agent 删除了 `auth/logger.ts` 中的 3 处重复日志。
|
|
14
|
-
- Agent 新增了并发刷新测试,位置是 `auth/refresh.test.ts:88`。
|
|
15
|
-
- `npm test auth` 的输出:48 项通过,0 项失败。新增的测试在其中。
|
|
16
|
-
- 本机没有 iOS 构建环境。
|
|
17
|
-
|
|
18
|
-
## 改写前
|
|
19
|
-
|
|
20
|
-
> 好的,我先看了一下登录相关的代码,发现问题应该是出在 token 刷新的逻辑上,大概是并发的时候两个请求同时去刷新导致的。然后我对 `auth/refresh.ts` 进行了修改,加了一个锁来实现串行化处理,另外顺手把一些日志之类的也优化了一下。测试基本都跑过了,应该没什么问题,不过 iOS 那边因为没有环境暂时没法验证。你看要不要我再把重试逻辑也一起改了?
|
|
21
|
-
|
|
22
|
-
需要改进的地方:
|
|
23
|
-
|
|
24
|
-
- 没有先回答修复到了哪一步,操作流水账挤占了解释。
|
|
25
|
-
- 「应该」「大概」没有说明依据;「基本都跑过了」没有方法、结果和覆盖范围。
|
|
26
|
-
- 「进行了修改」「实现串行化处理」没有直接说明现在的行为。
|
|
27
|
-
- 日志改动超出了用户要求,不能用「顺手优化」带过。
|
|
28
|
-
- 重试逻辑不是用户需求,不应自行扩展任务。
|
|
29
|
-
|
|
30
|
-
## 改写后
|
|
31
|
-
|
|
32
|
-
登录刷新逻辑已经修改,并发刷新测试通过;iOS 端还没有验证,因此不能据此认定整项修复已完成。
|
|
33
|
-
|
|
34
|
-
### 为什么会退出,现在怎样避免
|
|
35
|
-
|
|
36
|
-
两个请求同时刷新登录凭证(token)时,后完成的刷新会让先拿到的凭证失效。原代码在刷新前没有检查是否已有刷新在进行,位置是 `auth/refresh.ts:42`。
|
|
37
|
-
|
|
38
|
-
现在 `auth/refresh.ts` 同一时间只发一个刷新请求,其他请求等待这次刷新的结果。`npm test auth` 的结果为 48 项通过、0 项失败,包含新增的并发刷新测试 `auth/refresh.test.ts:88`。本机没有 iOS 构建环境,所以这些测试不能代替 iOS 端的检查。
|
|
39
|
-
|
|
40
|
-
### 还有一项范围外改动需要决定
|
|
41
|
-
|
|
42
|
-
这次还删除了 `auth/logger.ts` 中的 3 处重复日志,不在原来的登录修复范围内。建议撤回,让本次提交只包含登录修复:
|
|
43
|
-
|
|
44
|
-
1. 撤回日志改动(推荐)— 本次提交只含登录修复。
|
|
45
|
-
2. 保留日志改动 — 日志清理与登录修复一起提交。
|
|
46
|
-
|
|
47
|
-
## 说明
|
|
48
|
-
|
|
49
|
-
自然段连接了原因、改动和测试范围;决定是否保留独立改动时才使用编号。状态不靠标签表达,但代码修改、测试通过和 iOS 未验证仍然有明确区别。
|
|
50
|
-
|
|
51
|
-
数字和文件位置来自「Agent 掌握的事实」,不是改写时补充的。已知没有运行 iOS 检查与缺少检查记录不同;若 iOS 检查属于验收条件,整项任务仍只能算部分完成。新增并发刷新测试已经包含在 48 项结果中,不再重复列一份验证。
|
|
52
|
-
|
|
53
|
-
本例仍是虚构素材,不是当前仓库的文件或测试结果,也不是唯一正确的汇报版式。
|
|
1
|
+
# 示例:结果汇报
|
|
2
|
+
|
|
3
|
+
本示例的来源是虚构的。
|
|
4
|
+
|
|
5
|
+
## Agent 掌握的事实
|
|
6
|
+
|
|
7
|
+
改写只改写法,不增加事实(R25)。改写后的每个事实都来自本节。
|
|
8
|
+
|
|
9
|
+
- 用户的要求:修复登录后偶发退出的问题。用户没有要求改日志和重试逻辑。
|
|
10
|
+
- Agent 读了 `auth/refresh.ts`。第 42 行在刷新前不检查是否已有刷新在进行。
|
|
11
|
+
- 两个请求同时刷新 token 时,后完成的刷新使先拿到的 token 失效。
|
|
12
|
+
- Agent 修改了 `auth/refresh.ts`:同一时间只发一个刷新请求,其他请求等待这次刷新的结果。
|
|
13
|
+
- Agent 删除了 `auth/logger.ts` 中的 3 处重复日志。
|
|
14
|
+
- Agent 新增了并发刷新测试,位置是 `auth/refresh.test.ts:88`。
|
|
15
|
+
- `npm test auth` 的输出:48 项通过,0 项失败。新增的测试在其中。
|
|
16
|
+
- 本机没有 iOS 构建环境。
|
|
17
|
+
|
|
18
|
+
## 改写前
|
|
19
|
+
|
|
20
|
+
> 好的,我先看了一下登录相关的代码,发现问题应该是出在 token 刷新的逻辑上,大概是并发的时候两个请求同时去刷新导致的。然后我对 `auth/refresh.ts` 进行了修改,加了一个锁来实现串行化处理,另外顺手把一些日志之类的也优化了一下。测试基本都跑过了,应该没什么问题,不过 iOS 那边因为没有环境暂时没法验证。你看要不要我再把重试逻辑也一起改了?
|
|
21
|
+
|
|
22
|
+
需要改进的地方:
|
|
23
|
+
|
|
24
|
+
- 没有先回答修复到了哪一步,操作流水账挤占了解释。
|
|
25
|
+
- 「应该」「大概」没有说明依据;「基本都跑过了」没有方法、结果和覆盖范围。
|
|
26
|
+
- 「进行了修改」「实现串行化处理」没有直接说明现在的行为。
|
|
27
|
+
- 日志改动超出了用户要求,不能用「顺手优化」带过。
|
|
28
|
+
- 重试逻辑不是用户需求,不应自行扩展任务。
|
|
29
|
+
|
|
30
|
+
## 改写后
|
|
31
|
+
|
|
32
|
+
登录刷新逻辑已经修改,并发刷新测试通过;iOS 端还没有验证,因此不能据此认定整项修复已完成。
|
|
33
|
+
|
|
34
|
+
### 为什么会退出,现在怎样避免
|
|
35
|
+
|
|
36
|
+
两个请求同时刷新登录凭证(token)时,后完成的刷新会让先拿到的凭证失效。原代码在刷新前没有检查是否已有刷新在进行,位置是 `auth/refresh.ts:42`。
|
|
37
|
+
|
|
38
|
+
现在 `auth/refresh.ts` 同一时间只发一个刷新请求,其他请求等待这次刷新的结果。`npm test auth` 的结果为 48 项通过、0 项失败,包含新增的并发刷新测试 `auth/refresh.test.ts:88`。本机没有 iOS 构建环境,所以这些测试不能代替 iOS 端的检查。
|
|
39
|
+
|
|
40
|
+
### 还有一项范围外改动需要决定
|
|
41
|
+
|
|
42
|
+
这次还删除了 `auth/logger.ts` 中的 3 处重复日志,不在原来的登录修复范围内。建议撤回,让本次提交只包含登录修复:
|
|
43
|
+
|
|
44
|
+
1. 撤回日志改动(推荐)— 本次提交只含登录修复。
|
|
45
|
+
2. 保留日志改动 — 日志清理与登录修复一起提交。
|
|
46
|
+
|
|
47
|
+
## 说明
|
|
48
|
+
|
|
49
|
+
自然段连接了原因、改动和测试范围;决定是否保留独立改动时才使用编号。状态不靠标签表达,但代码修改、测试通过和 iOS 未验证仍然有明确区别。
|
|
50
|
+
|
|
51
|
+
数字和文件位置来自「Agent 掌握的事实」,不是改写时补充的。已知没有运行 iOS 检查与缺少检查记录不同;若 iOS 检查属于验收条件,整项任务仍只能算部分完成。新增并发刷新测试已经包含在 48 项结果中,不再重复列一份验证。
|
|
52
|
+
|
|
53
|
+
本例仍是虚构素材,不是当前仓库的文件或测试结果,也不是唯一正确的汇报版式。
|