@ggdna/dna-plan 2.0.1 → 3.0.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
@@ -5,30 +5,43 @@ repo and the seven layers of product design.
5
5
 
6
6
  ## What it ships
7
7
 
8
- - `doc/guides/pm-repo-guide.md` — how a project management (PM) repo is
9
- structured — everything planned lives in one folder per quarter, and
10
- what still holds is copied into the next one; and how tickets and
8
+ - `dna/doc/en/guides/pm-repo-guide.md` — how a project management (PM)
9
+ repo is structured — `doc/<lang>` for the documentation, everything
10
+ planned in one folder per language and quarter, `pm/<lang>/<yyyy>-Q<n>`,
11
+ and what still holds is copied into the next quarter; and how tickets and
11
12
  quarters are planned in it. `dna_gg`'s ticket workflow reads
12
13
  it when present
13
- - `doc/guides/requirements-guide.md` — how the requirements are engineered
14
+ - `dna/doc/en/guides/requirements-guide.md` — how the requirements are engineered
14
15
  together with the user, before any ticket
15
- - `doc/guides/schedule-guide.md` — how the requirements are cut into
16
+ - `dna/doc/en/guides/schedule-guide.md` — how the requirements are cut into
16
17
  tickets, estimated and drawn as a Gantt chart against a target date
17
18
  - `CLAUDE.md` — tells the AI to engineer the requirements first and to
18
19
  offer a time plan; it lands in the managed block of the project's
19
20
  `CLAUDE.md` next to the ones of the other layers (helix 1.13 or newer)
20
- - `doc/guides/report-guide.md` — how each person gets a quarterly report
21
- in `doc/<yyyy>-Q<n>/reports`, with points to tick once they are communicated
22
- - `doc/guides/jira-export-guide.md` — how the next tickets of one person,
21
+ - `dna/doc/en/guides/report-guide.md` — how each person gets a quarterly report
22
+ in `pm/<lang>/<yyyy>-Q<n>/reports`, with points to tick once they are communicated
23
+ - `dna/doc/en/guides/jira-export-guide.md` — how the next tickets of one person,
23
24
  one sprint's worth, are exported as a CSV file for Jira
24
25
  - Skills: `/gg-plan-intro` lists the planning skills and names the next
25
26
  step, `/gg-plan-requirements` runs the requirements engineering,
26
27
  `/gg-plan-schedule` the time plan, `/gg-plan-report` the reports and
27
28
  `/gg-plan-jira-export` the Jira export
28
29
 
29
- A PM repo is written in English; with the `dna_translate` layer it keeps a
30
- German copy of every file under `doc/de`. The team — people, their areas
31
- and roles — lives in `doc/<yyyy>-Q<n>/team`.
30
+ A PM repo keeps every file in each of its languages, set by the variable
31
+ `dnaLanguages` of `dna_translate` (default `en`, e.g. `en,de,fa`). The
32
+ team — people, their areas and roles — lives in
33
+ `pm/<lang>/<yyyy>-Q<n>/team`.
34
+
35
+ Every file of `dna/doc/en/` also ships in German and Farsi, with the
36
+ same name:
37
+
38
+ - `dna/doc/de/guides/`
39
+ - `dna/doc/fa/guides/`
40
+
41
+ `tool/migrate_doc_structure.dart` moves the documentation of a repo into
42
+ this structure: run `dart run <path>/tool/migrate_doc_structure.dart` in
43
+ its root, `--dry-run` first, and read the README afterwards: link texts
44
+ that name an old path keep their text.
32
45
 
33
46
  The guide plans with the seven layers of product design. Their guides and
34
47
  the `/layers-*` skills live in
@@ -49,12 +62,12 @@ A consuming repo replaces a tagged section with a sidecar
49
62
  `<file>.overrides.md` at the same path in its own `dna/` folder, see
50
63
  [helix](https://github.com/ggdna/helix):
51
64
 
52
- | File | Tag | Section |
53
- | ----------------------------- | --------------------- | ---------------------- |
54
- | `doc/guides/pm-repo-guide.md` | `@write-requirements` | Write the requirements |
65
+ | File | Tag | Section |
66
+ | ------------------------------------ | --------------------- | ---------------------- |
67
+ | `dna/doc/en/guides/pm-repo-guide.md` | `@write-requirements` | Write the requirements |
55
68
 
56
69
  Keep the heading of a replaced section: other guides link to it. Example
57
- `dna/doc/guides/pm-repo-guide.overrides.md`:
70
+ `dna/doc/en/guides/pm-repo-guide.overrides.md`:
58
71
 
59
72
  ```markdown
60
73
  ## @write-requirements Write the requirements
package/dna/CLAUDE.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Planning
2
2
 
3
3
  Projects are planned in a project management repo; its structure and the
4
- planning rules are in `doc/guides/pm-repo-guide.md`. When you plan in one:
4
+ planning rules are in `doc/en/guides/pm-repo-guide.md`. When you plan in one:
5
5
 
6
6
  - Everything planned lives in the current quarter folder
7
- `doc/<yyyy>-Q<n>`, the newest one; never write next to the quarter
7
+ `pm/<lang>/<yyyy>-Q<n>`, the newest one; never write next to the quarter
8
8
  folders and never change an older quarter. Start the folder of a new
9
9
  quarter first, copying what still holds, as the guide says
10
10
  - Engineer the requirements before the tickets. If the requirements of the
@@ -16,11 +16,12 @@ planning rules are in `doc/guides/pm-repo-guide.md`. When you plan in one:
16
16
  requirement the user has not confirmed
17
17
  - When the user names a target date or asks how long the work takes,
18
18
  offer `/gg-plan-schedule`: it cuts the requirements into tickets, estimates
19
- them and draws the plan as a Gantt chart in `schedule.md`
20
- - Write the PM repo in English. If it has
21
- `doc/guides/translate-guide.md`, keep a German copy of every file under
22
- `doc/de/<yyyy>-Q<n>` and in `README.de.md`, and change both in the same
23
- commit
19
+ them and draws the plan as a Gantt chart in `charts/schedule.md`
20
+ - Keep the PM repo in its languages `dnaLanguages`, the leading one
21
+ first: every file exists under `pm/<lang>` and `doc/<lang>` of each
22
+ language, the README as `README.md` and `README.<lang>.md`. Change all
23
+ copies in the same commit. The guides and templates of the DNA come in
24
+ every language it ships, whatever the repo keeps; never edit them
24
25
  - The people and their roles are in `team` of the current quarter. When
25
26
  the user asks what to tell someone, offer `/gg-plan-report`; when they
26
27
  want tickets in Jira or plan the next sprint of a person, offer
package/dna/_dna.json CHANGED
@@ -3,6 +3,10 @@
3
3
  // last layer of its own instantiation.
4
4
  "version": 1,
5
5
 
6
+ // Published as a DNA layer: helix requires a tag on every section of
7
+ // dna/ markdown, so the layers above can override each one.
8
+ "isLayer": true,
9
+
6
10
  // No parent DNA. This layer is orthogonal: it carries only its own topic
7
11
  // and is combined with the other layers by dna_ggdna. It stays parent-less
8
12
  // on purpose — the umbrella lists this layer, so a parent here would close
@@ -5,7 +5,7 @@
5
5
  "name": "base",
6
6
  "package": "helix",
7
7
  "ecosystem": null,
8
- "resolvedVersion": "1.14.0",
8
+ "resolvedVersion": "1.18.0",
9
9
  "via": null,
10
10
  "hash": "0x6883da335b415f9d"
11
11
  },
@@ -15,59 +15,101 @@
15
15
  "ecosystem": null,
16
16
  "resolvedVersion": null,
17
17
  "via": null,
18
- "hash": "0x476b8a879857e55a"
18
+ "hash": "0xdb54a2934719c19b"
19
19
  }
20
20
  ],
21
21
  "claude": {
22
22
  "claudeMdInclude": null,
23
- "claudeMdFromDna": true
23
+ "claudeMdFromDna": true,
24
+ "blockHash": "0x1063339dd3c176ef"
24
25
  },
25
- "baseVersion": "1.14.0",
26
+ "baseVersion": "1.18.0",
26
27
  "baseHash": "0x6883da335b415f9d",
28
+ "configHash": "0x8a6cdf2ac30ae263",
27
29
  "instances": [
28
30
  {
29
31
  "path": ".claude/CLAUDE_dna_plan.md",
30
- "hash": "0xa4d1e1f8532fd538"
32
+ "hash": "0x7399506c3050e1b4"
31
33
  },
32
34
  {
33
35
  "path": ".claude/skills/gg-plan-intro/SKILL.md",
34
- "hash": "0xb0c85b3b1b19481d"
36
+ "hash": "0x2da6ccdbdfa3c774"
35
37
  },
36
38
  {
37
39
  "path": ".claude/skills/gg-plan-jira-export/SKILL.md",
38
- "hash": "0x76f3576589371dbf"
40
+ "hash": "0x65196b21a75ba279"
39
41
  },
40
42
  {
41
43
  "path": ".claude/skills/gg-plan-report/SKILL.md",
42
- "hash": "0xf382db9aa2788919"
44
+ "hash": "0xb188a12c8e8c0dd8"
43
45
  },
44
46
  {
45
47
  "path": ".claude/skills/gg-plan-requirements/SKILL.md",
46
- "hash": "0x7d8b3925649e33f6"
48
+ "hash": "0x5fde70bb02fda14b"
47
49
  },
48
50
  {
49
51
  "path": ".claude/skills/gg-plan-schedule/SKILL.md",
50
- "hash": "0xc1e4d3241259e21f"
52
+ "hash": "0xc969af29565ca6b2"
51
53
  },
52
54
  {
53
- "path": "doc/guides/jira-export-guide.md",
54
- "hash": "0x11640767b50768fe"
55
+ "path": "doc/de/guides/jira-export-guide.md",
56
+ "hash": "0x8aad4796ee95aefc"
55
57
  },
56
58
  {
57
- "path": "doc/guides/pm-repo-guide.md",
58
- "hash": "0x2cb57216f6c3176f"
59
+ "path": "doc/de/guides/pm-repo-guide.md",
60
+ "hash": "0xad5655559d52f427"
59
61
  },
60
62
  {
61
- "path": "doc/guides/report-guide.md",
62
- "hash": "0xb70d317b3545e4d2"
63
+ "path": "doc/de/guides/report-guide.md",
64
+ "hash": "0xa1f1434432844dc3"
63
65
  },
64
66
  {
65
- "path": "doc/guides/requirements-guide.md",
66
- "hash": "0xd5c8839dc3a913a1"
67
+ "path": "doc/de/guides/requirements-guide.md",
68
+ "hash": "0x934f301228aa9c1b"
67
69
  },
68
70
  {
69
- "path": "doc/guides/schedule-guide.md",
70
- "hash": "0xd9b6da41ba2aa277"
71
+ "path": "doc/de/guides/schedule-guide.md",
72
+ "hash": "0x08519f3511443850"
73
+ },
74
+ {
75
+ "path": "doc/en/guides/jira-export-guide.md",
76
+ "hash": "0xf193cb083b9ea9db"
77
+ },
78
+ {
79
+ "path": "doc/en/guides/pm-repo-guide.md",
80
+ "hash": "0x18c5dd8ba7705ff0"
81
+ },
82
+ {
83
+ "path": "doc/en/guides/report-guide.md",
84
+ "hash": "0x683415cf5b6870db"
85
+ },
86
+ {
87
+ "path": "doc/en/guides/requirements-guide.md",
88
+ "hash": "0x6e3bc2a9d45eb136"
89
+ },
90
+ {
91
+ "path": "doc/en/guides/schedule-guide.md",
92
+ "hash": "0x7c4edaa382ec7cf9"
93
+ },
94
+ {
95
+ "path": "doc/fa/guides/jira-export-guide.md",
96
+ "hash": "0x091f03b8be44ae2e"
97
+ },
98
+ {
99
+ "path": "doc/fa/guides/pm-repo-guide.md",
100
+ "hash": "0xe765e5fe9e9cd879"
101
+ },
102
+ {
103
+ "path": "doc/fa/guides/report-guide.md",
104
+ "hash": "0x2384dea89109f761"
105
+ },
106
+ {
107
+ "path": "doc/fa/guides/requirements-guide.md",
108
+ "hash": "0xb91a33045cbde1bf"
109
+ },
110
+ {
111
+ "path": "doc/fa/guides/schedule-guide.md",
112
+ "hash": "0xf3f2d9ee28a92072"
71
113
  }
72
114
  ]
73
115
  }
@@ -0,0 +1,165 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) dnaCopyrightHolder
4
+
5
+ Use of this source code is governed by terms that can be
6
+ found in the LICENSE file in the root of this package.
7
+ -->
8
+
9
+ # Leitfaden Jira-Export
10
+
11
+ Wie die nächsten Tickets einer Person aus dem PM-Repo als CSV-Datei
12
+ exportiert werden, die Jira importiert: Stoff für einen Sprint, in der
13
+ Reihenfolge des Plans.
14
+
15
+ ## @export Wissen, was der Export ist <a id="know-what-the-export-is"></a>
16
+
17
+ - Eine CSV-Datei pro Export:
18
+ `pm/<lang>/<quarter>/exports/<yyyy>-<mm>-<dd>-<name>-sprint.csv`, `<name>`
19
+ ist der Vorname in Kleinbuchstaben und Kebab-Case, `<quarter>` der
20
+ aktuelle Quartalsordner `<yyyy>-Q<n>`
21
+ - Er enthält nur Tickets, die noch nicht in Jira sind, siehe unten
22
+ - Er weist Tickets nur zum Zeitpunkt des Exports zu: Wer an einem Ticket
23
+ arbeitet, wird nie in die Ticket-Datei geschrieben
24
+ - Er braucht das Team: Fehlt `team/people.md` im aktuellen Quartal, lege
25
+ es zuerst mit dem Nutzer an, siehe den
26
+ [Leitfaden PM-Repo](pm-repo-guide.md#know-the-team)
27
+ - Die CSV gibt es in jeder Sprache des Repos: Übersetze die
28
+ Zusammenfassungen und Beschreibungen, nie die Kopfzeile, die Schlüssel,
29
+ die IDs oder die Namen
30
+
31
+ ## @frame Den Rahmen mit dem Nutzer festlegen <a id="set-the-frame-with-the-user"></a>
32
+
33
+ Stelle eine Frage nach der anderen und schlage jedes Mal einen Standard
34
+ vor:
35
+
36
+ - Person — Pflicht; eine aus `team/people.md`
37
+ - Sprintlänge — Standard: die aus `team/people.md`, sonst zwei Wochen
38
+ - Kapazität — Standard: Sprintlänge mal Tage pro Woche der Person; abzüglich
39
+ Feiertagen, Urlaub und anderer Arbeit, die der Nutzer nennt
40
+ - Jira-Name der Person — Standard: das Feld `Jira` in `team/people.md`;
41
+ frage nach, wenn es fehlt. Auf Jira Data Center oder Server ist es der
42
+ Benutzername, auf Jira Cloud die Atlassian-Konto-ID: die lange ID am Ende
43
+ der Profil-URL. Frage nie nach einer E-Mail-Adresse
44
+ - Jira — Data Center oder Server, oder Cloud; Standard: Data Center
45
+ - Jira-Projekt — der Schlüssel, in den die Vorgänge gehen; Standard: das
46
+ Präfix der Ticket-Schlüssel, die das Repo schon verwendet
47
+ - Prioritäten — die Namen, die das Projekt anbietet; Standard: `High`,
48
+ `Normal` und `Low`. Übernimm die Namen genau so, wie Jira sie schreibt,
49
+ samt Leerzeichen
50
+ - Sprint — ein Sprint, in den die Vorgänge gehen, über seine numerische
51
+ ID; Standard: keiner
52
+ - Stunden pro Tag — Standard: die aus `team/people.md`, sonst 8
53
+
54
+ Steht eine Jira-Verbindung zur Verfügung, z. B. der Atlassian-MCP-Server,
55
+ lies Benutzernamen, Vorgangstypen, Prioritäten und Sprints des Projekts
56
+ dort aus, statt danach zu fragen.
57
+
58
+ ## @open Die offenen Tickets finden <a id="find-the-open-tickets"></a>
59
+
60
+ - Nimm die Ticket-Dateien in `pm/<lang>/<quarter>/tickets` des aktuellen
61
+ Quartals — offene Tickets ziehen in jedes neue Quartal mit — und die
62
+ geplanten Tickets aus dessen `charts/schedule.md`, die noch keine Datei
63
+ haben
64
+ - Lass fertige Tickets weg: in `charts/schedule.md` als `done` markiert,
65
+ oder alle ihre Anforderungen sind `done`
66
+ - Lass Tickets weg, die schon in Jira sind: Ihre ID ist ein Jira-Schlüssel,
67
+ Buchstaben, ein Bindestrich und eine Zahl, z. B. `cdm-1317` in
68
+ `2026-09-10-cdm-1317-infrastructure-discovery-server.md`. Reine Zahlen,
69
+ z. B. `14`, sind lokale IDs, keine Jira-Schlüssel
70
+ - Ordne sie so wie `charts/schedule.md`; ohne Zeitplan danach, worauf sie
71
+ warten, dann nach der Priorität ihrer Anforderungen: `must` vor `should`
72
+ vor `could`
73
+
74
+ ## @match Die Tickets der Person zuordnen <a id="match-the-tickets-to-the-person"></a>
75
+
76
+ - Vergleiche jedes offene Ticket mit den Bereichen jeder Person in
77
+ `team/people.md`: den Repos, die es ändert, den Anforderungen und Zielen,
78
+ denen es dient, den Worten seines Ziels und seiner Schritte
79
+ - Behalte die Tickets, deren beste Übereinstimmung die Person ist; ein
80
+ Ticket, das zu mehreren Personen gleich gut passt, geht an die Person,
81
+ die der Nutzer nennt
82
+ - Zeige eine Tabelle — Ticket, zugeordnete Person, der ausschlaggebende
83
+ Bereich — und lass den Nutzer Tickets zwischen Personen verschieben.
84
+ Schreibe nichts zurück
85
+
86
+ ## @sprint Den Sprint füllen <a id="fill-the-sprint"></a>
87
+
88
+ - Nimm die erwartete Dauer jedes Tickets aus der Tabelle `Tickets` in
89
+ `charts/schedule.md`. Fehlt sie, schätze sie, wie der
90
+ [Leitfaden Zeitplan](schedule-guide.md#estimate-each-ticket) es
91
+ beschreibt, und zeige die Zahlen zuerst
92
+ - Füge die Tickets der Person der Reihe nach hinzu, bis das nächste nicht
93
+ mehr in die Kapazität passt; höre dort auf, springe nicht zu kleineren
94
+ vor
95
+ - Ein Ticket, das größer ist als die ganze Kapazität: Biete zuerst an, es
96
+ zu teilen
97
+ - Zeige den Sprint — Tickets, Tage, verbleibende Kapazität — und lass den
98
+ Nutzer ihn bestätigen oder ändern
99
+
100
+ ## @csv Die CSV schreiben <a id="write-the-csv"></a>
101
+
102
+ Verwende diese Spalten in dieser Reihenfolge:
103
+
104
+ ```csv
105
+ Summary,Issue Type,Priority,Assignee,Labels,Original Estimate,Sprint,Description
106
+ "Import race data",Story,High,anna,results-without-desktop-software,158400,1840,"Goal: ...
107
+ Requirements: req-results-002
108
+ Steps:
109
+ * ...
110
+ Plan: {{pm/en/2026-Q4/tickets/2026-11-02-import-race-data.md}}"
111
+ ```
112
+
113
+ - `Summary` — der Ticket-Titel in Worten, nicht in Kebab-Case
114
+ - `Issue Type` — `Story`; `Bug` für ein Bug-Ticket. Beide müssen im
115
+ Projekt existieren
116
+ - `Priority` — aus der höchsten Priorität seiner Anforderungen: `must` →
117
+ der hohe, `should` → der mittlere, `could` → der niedrige der oben
118
+ vereinbarten Namen
119
+ - `Assignee` — der Jira-Name der Person
120
+ - `Labels` — das Ziel, dem das Ticket dient, in Kebab-Case ohne
121
+ Leerzeichen. Für ein zweites Label füge eine weitere Spalte hinzu,
122
+ ebenfalls mit `Labels` überschrieben
123
+ - `Original Estimate` — die erwartete Dauer in ganzen Sekunden: Tage ×
124
+ Stunden pro Tag × 3600. Bei 8 Stunden ergeben 5,5 Tage `158400`; bei 7,5
125
+ Stunden `148500`. Jira zeigt sie in seiner eigenen Länge eines
126
+ Arbeitstags an
127
+ - `Sprint` — die numerische Sprint-ID, nie der Name; ohne Sprint lass die
128
+ Spalte weg
129
+ - `Description` — das Ziel, die Anforderungen per ID, die Schritte und der
130
+ Pfad der Plan-Datei; ohne Plan-Datei die Zeile aus
131
+ `charts/schedule.md`. Jira Data Center und Server rendern Wiki-Markup:
132
+ Schreibe Listeneinträge als `* ` und setze Pfade, Dateinamen und IDs mit
133
+ `_` oder geschweiften Klammern in `{{…}}`
134
+ - Lass `Issue Key` weg: Damit würde Jira bestehende Vorgänge aktualisieren
135
+ - Kodiere in UTF-8 ohne BOM, trenne mit Kommas, beende Zeilen mit `\n`;
136
+ setze jedes Feld in Anführungszeichen, das ein Komma, ein
137
+ Anführungszeichen oder einen Zeilenumbruch enthält, und verdopple die
138
+ Anführungszeichen darin; gib jeder Zeile gleich viele Felder
139
+
140
+ ## @import Dem Nutzer den Import erklären <a id="tell-the-user-how-to-import-it"></a>
141
+
142
+ - Jira Data Center oder Server: Issues → Import Issues from CSV; das
143
+ braucht die Berechtigungen zum Anlegen von Vorgängen und zur
144
+ Massenänderung
145
+ - Jira Cloud: Filters → Search work items → ••• → Import work items from
146
+ CSV; höchstens 250 Arbeitselemente pro Datei
147
+ - Wähle das Projekt, die Kodierung UTF-8 und das Komma als Trennzeichen
148
+ - Ordne jede Spalte dem gleichnamigen Feld zu
149
+ - Setze den Haken bei „Map field value“ für `Priority`, `Issue Type` und
150
+ `Assignee` nur, wenn ihre Werte von den Namen in Jira abweichen; nie für
151
+ `Description`, sonst verwirft Jira die Zeilenumbrüche
152
+ - Erst validieren, dann importieren
153
+
154
+ ## @keys Die Schlüssel zurückholen <a id="take-the-keys-back"></a>
155
+
156
+ Hat der Nutzer die Datei importiert und bittet darum, schreibe die
157
+ Jira-Schlüssel zurück:
158
+
159
+ - Benenne jede exportierte Ticket-Datei von `<date>-<title>.md` in
160
+ `<date>-<key>-<title>.md` um, Schlüssel in Kleinbuchstaben, und setze den
161
+ Schlüssel in ihre Titelzeile: `# CDM-1800: Import race data`
162
+ - Ein Ticket ohne Datei bekommt jetzt eine, siehe den
163
+ [Leitfaden PM-Repo](pm-repo-guide.md#write-the-ticket-file)
164
+ - Verwende den Schlüssel als Ticket-Namen in `charts/schedule.md`
165
+ - Mache dasselbe in jeder Sprache des Repos