@ggdna/dna-gg 0.2.0 → 0.3.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
@@ -14,6 +14,13 @@ publish.
14
14
  `dna/doc/guides/install-guide/install-gg-workspace-guide.md` — install
15
15
  `gg` and set up a workspace
16
16
 
17
+ ## CLAUDE.md
18
+
19
+ - `dna/CLAUDE.md` — points the agent to the `ai-dev-guide` and the
20
+ skills. helix writes it into the managed block of the consumer's
21
+ `CLAUDE.md` (`<!-- helix:claude_md:start/end -->`), everything outside
22
+ the block stays with the repo.
23
+
17
24
  ## Skills
18
25
 
19
26
  - `/ticket` — creates a ticket and adds the repos it needs
package/dna/CLAUDE.md ADDED
@@ -0,0 +1,10 @@
1
+ # gg workflow
2
+
3
+ This repo is developed ticket by ticket with the `gg` CLI. Follow the
4
+ development guide, it tells you when to ask the user and which command
5
+ comes next:
6
+
7
+ @doc/guides/for-ai/ai-dev-guide.md
8
+
9
+ The steps are also available as skills: `/ticket`, `/commit`, `/push`,
10
+ `/publish`, `/cleanup`.
@@ -5,9 +5,9 @@
5
5
  "name": "base",
6
6
  "package": "helix",
7
7
  "ecosystem": null,
8
- "resolvedVersion": "1.3.1",
8
+ "resolvedVersion": "1.6.1",
9
9
  "via": null,
10
- "hash": "0x705e486e88a93125"
10
+ "hash": "0x6883da335b415f9d"
11
11
  },
12
12
  {
13
13
  "name": "dna-install",
@@ -31,14 +31,15 @@
31
31
  "ecosystem": null,
32
32
  "resolvedVersion": null,
33
33
  "via": null,
34
- "hash": "0x97c559b0151610d4"
34
+ "hash": "0x9f13019b84e4b029"
35
35
  }
36
36
  ],
37
37
  "claude": {
38
- "claudeMdInclude": null
38
+ "claudeMdInclude": null,
39
+ "claudeMdFromDna": true
39
40
  },
40
- "baseVersion": "1.3.1",
41
- "baseHash": "0x705e486e88a93125",
41
+ "baseVersion": "1.6.1",
42
+ "baseHash": "0x6883da335b415f9d",
42
43
  "instances": [
43
44
  {
44
45
  "path": ".claude/skills/cleanup/SKILL.md",
@@ -66,7 +67,7 @@
66
67
  },
67
68
  {
68
69
  "path": ".claude/skills/ticket/SKILL.md",
69
- "hash": "0xbc13efe6fa9af962"
70
+ "hash": "0xa86135ff5b7f5ddf"
70
71
  },
71
72
  {
72
73
  "path": ".github/workflows/quick_check.yaml",
@@ -82,7 +83,7 @@
82
83
  },
83
84
  {
84
85
  "path": "doc/guides/for-ai/ai-dev-guide.md",
85
- "hash": "0x3d2812a1dfb025cf"
86
+ "hash": "0x34d8b0200c0d657b"
86
87
  },
87
88
  {
88
89
  "path": "doc/guides/index-guide.md",
@@ -118,7 +119,7 @@
118
119
  },
119
120
  {
120
121
  "path": "doc/guides/install-guide/install-gg-workspace-guide.md",
121
- "hash": "0x846766914bb56a84"
122
+ "hash": "0xc06dc45d20e1bf79"
122
123
  },
123
124
  {
124
125
  "path": "doc/guides/install-guide/install-github-cli-guide.md",
@@ -136,10 +137,6 @@
136
137
  "path": "doc/guides/install-guide/install-vscode-guide.md",
137
138
  "hash": "0xa0da6a6877bb94c2"
138
139
  },
139
- {
140
- "path": "doc/hello_world.md",
141
- "hash": "0x0903f7fc5224f6f1"
142
- },
143
140
  {
144
141
  "path": "doc/templates/index-template.jsonc",
145
142
  "hash": "0x16c3a8d50c72ed6d"
@@ -29,6 +29,23 @@ gg do create ticket dnaJiraPrefix-145 -m"Fix issue abc"
29
29
  cd tickets/dnaJiraPrefix-145
30
30
  ```
31
31
 
32
+ ## Choose the project management repo
33
+
34
+ Every ticket belongs to a project management (PM) repo. It holds the plans,
35
+ decisions and blog posts of a project, but no code.
36
+
37
+ Look at the `index.jsonc` of each repo in .ocean and find the PM repo the
38
+ ticket belongs to: its summary or domain talks about project management or
39
+ planning, not about code. If one fits, propose it to the user. If none fits,
40
+ ask the user which repo to use, or whether to create a new PM repo.
41
+
42
+ After the user's confirmation, add the PM repo to the ticket **before** any
43
+ other repo:
44
+
45
+ ```bash
46
+ gg do add pm_repo
47
+ ```
48
+
32
49
  ## Add git repositories
33
50
 
34
51
  Look at the `index.jsonc` of each repo in .ocean and decide which repos need to
@@ -40,6 +57,9 @@ Ask the user about this. Also explain to the user what you roughly want to
40
57
  change in which repo to implement the ticket and let them confirm that the
41
58
  corresponding repos are added to the ticket.
42
59
 
60
+ If the ticket is only planned (see below), the PM repo may be the only repo
61
+ of the ticket.
62
+
43
63
  After the user's confirmation, add the repos to the ticket:
44
64
 
45
65
  ```bash
@@ -52,9 +72,23 @@ gg do add repo1 repo2
52
72
  gg do code
53
73
  ```
54
74
 
55
- ## Implement
75
+ ## Plan (optional)
76
+
77
+ Ask the user whether the ticket is planned before it is implemented.
78
+
79
+ If yes, write the plan into the PM repo, following the guides of the PM repo:
80
+ the goal, the affected repos, the rough steps and open questions. Let the user
81
+ review the plan and revise it until they confirm it.
82
+
83
+ ## Implement (optional)
84
+
85
+ Ask the user whether the ticket is implemented now, or whether it is only
86
+ planned. Some tickets are only planned; the implementation follows in a later
87
+ ticket.
56
88
 
57
- Implement your features based on the guides
89
+ - Implement: implement your features based on the guides
90
+ - Plan only: skip this step. The following steps then apply to the PM repo
91
+ only.
58
92
 
59
93
  ## Commit
60
94
 
@@ -86,6 +120,7 @@ Afterwards load the review-light skill and execute it.
86
120
  - Create a blog post for the current ticket
87
121
  - Update the index.jsonc and README.md
88
122
  - Create the configuration for gg do publish
123
+ - If the ticket was only planned, publish the PM repo only
89
124
 
90
125
  Ask the user to run the following command **manually**:
91
126
 
@@ -21,6 +21,11 @@ cd ~/dev2
21
21
  gg do init workspace
22
22
  ```
23
23
 
24
+ This creates the `.ocean` folder and instantiates the latest `dna_gg` in
25
+ the workspace folder: the gg guides, the skills and the managed block of
26
+ `CLAUDE.md`. It is the same as running `gg dna init`, `gg dna add dna_gg`
27
+ and `gg dna build` by hand.
28
+
24
29
  ## Add your repositories
25
30
 
26
31
  ```bash
@@ -21,12 +21,25 @@ gg do create ticket DnaJiraPrefix-145 -m"Fix issue abc"
21
21
  cd tickets/DnaJiraPrefix-145
22
22
  ```
23
23
 
24
- ## 3. Choose the repos
24
+ ## 3. Choose the project management repo
25
+
26
+ Every ticket belongs to a project management (PM) repo: plans, decisions and
27
+ blog posts of a project, no code. Read the `index.md` of the repos in
28
+ `.ocean` and propose the PM repo the ticket belongs to. If none fits, ask
29
+ which repo to use or whether to create one.
30
+
31
+ After the confirmation, add it **before** any other repo:
32
+
33
+ ```bash
34
+ gg do add pm_repo
35
+ ```
36
+
37
+ ## 4. Choose the code repos
25
38
 
26
39
  Read the `index.md` of the candidate repos in `.ocean`. Tell the user which
27
40
  repos the ticket needs and what you roughly want to change in each one. If a
28
41
  part belongs to a domain that has no repo yet, say so and ask whether to
29
- create one.
42
+ create one. A ticket that is only planned may need no code repo at all.
30
43
 
31
44
  After the confirmation:
32
45
 
@@ -34,12 +47,19 @@ After the confirmation:
34
47
  gg do add repo1 repo2
35
48
  ```
36
49
 
37
- ## 4. Open the workspace
50
+ ## 5. Open the workspace
38
51
 
39
52
  ```bash
40
53
  gg do code
41
54
  ```
42
55
 
56
+ ## 6. Plan or implement
57
+
58
+ Ask the user whether the ticket is planned first. If yes, write the plan into
59
+ the PM repo and let the user confirm it. Then ask whether the ticket is
60
+ implemented now or only planned — in the latter case the ticket ends with
61
+ the PM repo alone.
62
+
43
63
  ## Important
44
64
 
45
65
  - Never add repos without confirmation. Rather too few than too many — more
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggdna/dna-gg",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "DNA layer: gg CLI workflow guides, repo setup scripts and CI check",
5
5
  "keywords": [
6
6
  "dna",
@@ -32,7 +32,7 @@
32
32
  "@ggdna/dna-install": "^0.1.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "^26.4.1",
35
+ "@types/node": "^26.5.0",
36
36
  "prettier": "^3.9.6"
37
37
  },
38
38
  "scripts": {