@softure-ai/skills 0.6.1 → 0.7.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 CHANGED
@@ -49,7 +49,9 @@ owner's word: change `mode`, re-run the installer, commit both.
49
49
  Per-project choices go into `context/workflow.json` → `install` and are applied on every install,
50
50
  postinstall included: `"gitignore": false` commits the skills, and `"rules": ["workflow", "conventions"]`
51
51
  injects only those sections of the rules block (sections: `language`, `workflow`, `conventions`; default:
52
- all; the operating-mode section always ships). Put project-specific skills in folders without the `softure-` prefix: installed folders are
52
+ all; the operating-mode section always ships, and so does `language` unless `"allowNonEnglishCode": true`
53
+ records the owner's explicit exception). The repository is always English; `chatLanguage` is the language
54
+ of every message to the owner, `language` only the prose of `context/` artifacts. Put project-specific skills in folders without the `softure-` prefix: installed folders are
53
55
  overwritten on every install. Uninstall:
54
56
  `node node_modules/@softure-ai/skills/scripts/uninstall.mjs`.
55
57
 
package/WORKFLOW.md CHANGED
@@ -44,9 +44,10 @@ or languages.
44
44
  {
45
45
  "mode": "manual", // "manual" (default when absent): the owner checks every step; "autonomous": the agent
46
46
  // decides, merges and coordinates on its own. Rules for both: §8 and rules/AGENTS.md
47
- "language": "en", // ISO code (e.g. "pl"): language of artifacts and reports (skills themselves are English)
48
- "chatLanguage": "pl", // optional: language of every message to the owner (chat, reports, thread results)
49
- // when it differs from the artifact language; default: `language`
47
+ "language": "en", // ISO code (e.g. "pl"): prose of the workflow artifacts under context/ only.
48
+ // Code, comments, commits and docs are always English (rules/AGENTS.md → Language)
49
+ "chatLanguage": "pl", // language of every message to the owner: chat, questions, thread results, reports;
50
+ // default: `language`. softure-init always writes it
50
51
  "timezone": "Europe/Warsaw", // optional IANA zone for every time shown in reports; default: the machine's zone
51
52
  "mainBranch": "master",
52
53
  "gates": { // run before every implementation commit; all must pass
@@ -88,7 +89,9 @@ or languages.
88
89
  },
89
90
  "install": { // optional: read by the installer on every `npm install`
90
91
  "gitignore": true, // false: commit the installed skills (e.g. cloud sessions that never run npm install)
91
- "rules": ["language", "workflow", "conventions"] // sections of rules/AGENTS.md to inject; default: all
92
+ "rules": ["language", "workflow", "conventions"], // sections of rules/AGENTS.md to inject; default: all.
93
+ // "language" ships even when omitted here
94
+ "allowNonEnglishCode": false // true only on the owner's explicit word for a codebase that stays non-English
92
95
  }
93
96
  }
94
97
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softure-ai/skills",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "SOFTURE agent skills: a spec-driven delivery workflow (shape → prd → roadmap → plan → implement → review) plus parallel worktree orchestration",
5
5
  "license": "MIT",
6
6
  "repository": {
package/rules/AGENTS.md CHANGED
@@ -3,20 +3,24 @@
3
3
  Installed by `@softure-ai/skills`. Project-specific rules outside this block take precedence,
4
4
  except the language rule below (when this block carries it), which always applies.
5
5
 
6
- ## Language: English in everything you write to the repository (mandatory)
7
-
8
- Code, identifiers, comments, commit messages, script and log output, error messages, file and
9
- folder names, configuration keys, and agent or skill instructions are written in **English**.
10
- This holds even when the conversation with the user is in another language.
11
-
12
- - A request in another language still produces English code. Do not carry the conversation
13
- language into the code.
14
- - The only exception is user-facing product copy. It lives in message dictionaries
15
- (e.g. `messages/pl.ts`), never inline in code.
16
- - When you touch a file with non-English code, comments or identifiers, translate them in the
17
- same change.
18
- - Before every commit, scan the diff for non-English text outside message dictionaries. Any hit
19
- is a failing gate, just like a red test.
6
+ ## Language: English in the repository, `chatLanguage` in the chat (mandatory)
7
+
8
+ Two languages, kept apart in every project, manual and autonomous alike:
9
+
10
+ - **Everything written to the repository is English:** code, identifiers, comments, docstrings, tests
11
+ and test names, commit messages, branch names, pull request titles and bodies, issue texts, script,
12
+ log and error output, file and folder names, configuration keys, README and docs, `AGENTS.md` and
13
+ skill instructions. This holds whatever language the owner writes in.
14
+ - **Everything said to the owner is in `chatLanguage`** from `context/workflow.json` (default:
15
+ `language`): chat replies, questions, thread results, reports. English code is no reason to answer
16
+ the owner in English, and a request in another language still produces English code.
17
+ - **Two narrow exceptions:** user-facing product copy lives in message dictionaries (e.g.
18
+ `messages/pl.ts`), never inline in code; the prose of workflow artifacts under `context/` follows
19
+ `language` (their headings stay English).
20
+ - When you touch a file with non-English code, comments or identifiers, translate them in the same
21
+ change. Translating a whole codebase is a change of its own, never a side effect.
22
+ - Before every commit, scan the diff for non-English text outside message dictionaries and
23
+ `context/` artifacts. Any hit is a failing gate, just like a red test.
20
24
 
21
25
  ## How work flows
22
26
 
@@ -11,7 +11,8 @@
11
11
  // "gitignore": false commit the installed skills instead of ignoring them
12
12
  // "rules": ["workflow", ...] rule sections to inject; default: every section in RULE_SECTIONS
13
13
  // The top-level "mode" ("manual" by default, or "autonomous") picks the one "## Operating mode: <mode>"
14
- // section that is always injected, whatever "rules" says.
14
+ // section that is always injected, whatever "rules" says. The "language" section is mandatory too:
15
+ // only "allowNonEnglishCode": true (an owner's explicit exception) leaves it out.
15
16
 
16
17
  import fs from "node:fs";
17
18
  import path from "node:path";
@@ -82,13 +83,18 @@ function resolveMode(workflowConfig) {
82
83
  }
83
84
 
84
85
  function resolveRuleSections(installConfig) {
85
- if (installConfig.rules === undefined) return Object.keys(RULE_SECTIONS);
86
+ const isLanguageOptional = installConfig.allowNonEnglishCode === true;
87
+ if (installConfig.rules === undefined) {
88
+ return Object.keys(RULE_SECTIONS).filter((key) => key !== "language" || !isLanguageOptional);
89
+ }
86
90
  if (!Array.isArray(installConfig.rules)) throw new Error(`${WORKFLOW_CONFIG_PATH}: install.rules must be an array`);
87
91
  const unknown = installConfig.rules.filter((key) => !(key in RULE_SECTIONS));
88
92
  if (unknown.length > 0) {
89
93
  throw new Error(`${WORKFLOW_CONFIG_PATH}: unknown install.rules ${unknown.join(", ")} (known: ${Object.keys(RULE_SECTIONS).join(", ")})`);
90
94
  }
91
- return installConfig.rules;
95
+ if (isLanguageOptional || installConfig.rules.includes("language")) return installConfig.rules;
96
+ // English code is not opt-out by omission: the section ships unless the owner set the exception.
97
+ return ["language", ...installConfig.rules];
92
98
  }
93
99
 
94
100
  // Keeps the preamble, the "## " sections whose key is selected and the section of the active mode;
@@ -61,7 +61,9 @@ start any work: no change, PRD or roadmap is created here.
61
61
  - `.env` present -> add `cp ../{repo}/.env .env` to `worktree.setup`, after the install command.
62
62
  - Knowledge sources: `docs/`, `adr/` or `docs/adr/`, an existing `context/foundation/prd.md`
63
63
  -> candidates for `research.sources`.
64
- 3. **Pick the language.** Use `--language` when given. Otherwise use the language of the
64
+ 3. **Pick the languages.** Code is always English (rules block → Language); two settings remain.
65
+ `chatLanguage`: the language the user writes in (always written; it is what every message to the
66
+ owner uses). `language`, the prose of `context/` artifacts: use `--language` when given. Otherwise use the language of the
65
67
  existing docs/README; if mixed, use the language the user is writing in. In `--auto`
66
68
  without a signal, use `en`.
67
69
  4. **Pick the operating mode** (WORKFLOW §8). Use `--mode` when given, or what the user already
@@ -101,6 +103,7 @@ Required keys and the ones init writes by default:
101
103
  {
102
104
  "mode": "manual",
103
105
  "language": "en",
106
+ "chatLanguage": "pl",
104
107
  "mainBranch": "main",
105
108
  "gates": { "typecheck": null, "lint": null, "test": null },
106
109
  "integration": { "local": null, "remote": null },
@@ -122,13 +125,12 @@ only when it was detected or the user asked for it:
122
125
  | Key | Default when absent | Init writes it when |
123
126
  |---|---|---|
124
127
  | `timezone` | the machine's zone | the user names a zone |
125
- | `chatLanguage` | `language` | the owner talks in another language than the artifacts use (e.g. English repo, Polish owner) |
126
128
  | `integration.cadence` | `"change"` (every change runs the suite before archive) | the user wants one run per roadmap (`"roadmap"`) |
127
129
  | `integration.lookup` | every call starts a run | the project stores results per commit (e.g. a git note) and has a command that prints one |
128
130
  | `integration.coveredByRelease` | `false` | the release pipeline runs the same full suite on the released commit |
129
131
  | `worktree.cloudState` | `"main"` | the user runs cloud sessions that must keep state on the branch (`"branch"`) |
130
132
  | `research.sources` | none | step 2 found docs, ADRs or a PRD (interactive: listed in the plan; `--auto`: only paths that exist) |
131
- | `install` | gitignore the skills, inject all rule sections | the user wants committed skills or fewer rule sections |
133
+ | `install` | gitignore the skills, inject all rule sections | the user wants committed skills or fewer rule sections (the language section always ships; `allowNonEnglishCode: true` only on the owner's explicit word) |
132
134
  | `autonomy` | roadmap as the work source, merge via pull request, reports every 30 min | `mode` is `autonomous` and the user names issues as the queue, merges by push, or another report cadence |
133
135
 
134
136
  Content of the README files, and a complete worked example (detection, plan, report) for a
@@ -2,7 +2,7 @@
2
2
 
3
3
  Read this before the interview. It holds what to ask in each phase (greenfield and brownfield
4
4
  variants), the option sets to offer, how to push back, and the two anti-pattern scripts. The
5
- questions are starting points: rephrase them in the user's domain and in `language`. Never
5
+ questions are starting points: rephrase them in the user's domain and in `chatLanguage` (default: `language`). Never
6
6
  paste a whole phase at once; one question per message.
7
7
 
8
8
  ## The loop inside every phase
@@ -53,7 +53,7 @@ below.
53
53
 
54
54
  **Project configuration.** Everything project-specific — the main branch, the
55
55
  gates, the integration suite, the migrations folder, the worktree setup, the
56
- report language, whether releases belong to the owner — comes from
56
+ chat language for reports (`chatLanguage`), whether releases belong to the owner — comes from
57
57
  `context/workflow.json` (`WORKFLOW.md` §2). Read it at A0 with
58
58
  `python3 <S>/wt_config.py --json`. Below, `<main>` is `mainBranch`, "the gates"
59
59
  are every command in `gates`, and reports to the user are written in
@@ -839,7 +839,7 @@ python3 <S>/wt-roadmap.py ready <change-id>
839
839
 
840
840
  ### READY — report and stop
841
841
 
842
- Write it in the configured `language`, for someone who wasn't there:
842
+ Write it in `chatLanguage` (default: `language`), for someone who wasn't there:
843
843
 
844
844
  ```
845
845
  <ID> `<change-id>` — ready to merge.
@@ -47,7 +47,7 @@ them, waits, and gives the merge signal itself — one change at a time.
47
47
  **Project configuration** comes from `context/workflow.json` (`WORKFLOW.md`
48
48
  §2): `<main>` is `mainBranch`, the default batch size is
49
49
  `worktree.maxParallel`, migration collisions are detected through
50
- `migrations`, and reports to the owner are written in `language`. Artifact
50
+ `migrations`, and reports to the owner are written in `chatLanguage` (default: `language`). Artifact
51
51
  formats are those of `WORKFLOW.md` (§4 change.md, §5 roadmap, §6 plan).
52
52
 
53
53
  Scripts: `<S>` = `<MAIN>/.claude/skills/softure-worktree/scripts` (worker