@ggdna/dna-gg 0.2.0 → 0.4.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`.
|
package/dna/_generated.json
CHANGED
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
"name": "base",
|
|
6
6
|
"package": "helix",
|
|
7
7
|
"ecosystem": null,
|
|
8
|
-
"resolvedVersion": "1.
|
|
8
|
+
"resolvedVersion": "1.7.0",
|
|
9
9
|
"via": null,
|
|
10
|
-
"hash": "
|
|
10
|
+
"hash": "0x6883da335b415f9d"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"name": "dna-install",
|
|
14
|
-
"package": "
|
|
15
|
-
"ecosystem": "
|
|
14
|
+
"package": "@ggdna/dna-install",
|
|
15
|
+
"ecosystem": "node",
|
|
16
16
|
"resolvedVersion": "0.1.0",
|
|
17
17
|
"via": null,
|
|
18
18
|
"hash": "0xbe88eb4256745ee1"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "dna-index",
|
|
22
|
-
"package": "
|
|
23
|
-
"ecosystem": "
|
|
22
|
+
"package": "@ggdna/dna-index",
|
|
23
|
+
"ecosystem": "node",
|
|
24
24
|
"resolvedVersion": "0.1.0",
|
|
25
25
|
"via": null,
|
|
26
26
|
"hash": "0x1d92b0add37a1ac7"
|
|
@@ -31,14 +31,15 @@
|
|
|
31
31
|
"ecosystem": null,
|
|
32
32
|
"resolvedVersion": null,
|
|
33
33
|
"via": null,
|
|
34
|
-
"hash": "
|
|
34
|
+
"hash": "0x51ccfc15107f2e9e"
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
37
|
"claude": {
|
|
38
|
-
"claudeMdInclude": null
|
|
38
|
+
"claudeMdInclude": null,
|
|
39
|
+
"claudeMdFromDna": true
|
|
39
40
|
},
|
|
40
|
-
"baseVersion": "1.
|
|
41
|
-
"baseHash": "
|
|
41
|
+
"baseVersion": "1.7.0",
|
|
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": "
|
|
70
|
+
"hash": "0x1c257bb5b8471026"
|
|
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": "
|
|
86
|
+
"hash": "0x5e0118ec27bc8d6a"
|
|
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": "
|
|
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,27 @@ 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
|
+
|
|
49
|
+
If the PM repo has `doc/guides/pm-repo-guide.md`, read it: it describes how
|
|
50
|
+
the PM repo is structured and how planning works there. If the file does not
|
|
51
|
+
exist, follow the guides the PM repo has.
|
|
52
|
+
|
|
32
53
|
## Add git repositories
|
|
33
54
|
|
|
34
55
|
Look at the `index.jsonc` of each repo in .ocean and decide which repos need to
|
|
@@ -40,6 +61,9 @@ Ask the user about this. Also explain to the user what you roughly want to
|
|
|
40
61
|
change in which repo to implement the ticket and let them confirm that the
|
|
41
62
|
corresponding repos are added to the ticket.
|
|
42
63
|
|
|
64
|
+
If the ticket is only planned (see below), the PM repo may be the only repo
|
|
65
|
+
of the ticket.
|
|
66
|
+
|
|
43
67
|
After the user's confirmation, add the repos to the ticket:
|
|
44
68
|
|
|
45
69
|
```bash
|
|
@@ -52,9 +76,24 @@ gg do add repo1 repo2
|
|
|
52
76
|
gg do code
|
|
53
77
|
```
|
|
54
78
|
|
|
55
|
-
##
|
|
79
|
+
## Plan (optional)
|
|
80
|
+
|
|
81
|
+
Ask the user whether the ticket is planned before it is implemented.
|
|
82
|
+
|
|
83
|
+
If yes, write the plan into the PM repo, following its
|
|
84
|
+
`doc/guides/pm-repo-guide.md` if present, otherwise its other guides: the
|
|
85
|
+
goal, the affected repos, the rough steps and open questions. Let the user
|
|
86
|
+
review the plan and revise it until they confirm it.
|
|
87
|
+
|
|
88
|
+
## Implement (optional)
|
|
89
|
+
|
|
90
|
+
Ask the user whether the ticket is implemented now, or whether it is only
|
|
91
|
+
planned. Some tickets are only planned; the implementation follows in a later
|
|
92
|
+
ticket.
|
|
56
93
|
|
|
57
|
-
Implement your features based on the guides
|
|
94
|
+
- Implement: implement your features based on the guides
|
|
95
|
+
- Plan only: skip this step. The following steps then apply to the PM repo
|
|
96
|
+
only.
|
|
58
97
|
|
|
59
98
|
## Commit
|
|
60
99
|
|
|
@@ -86,6 +125,7 @@ Afterwards load the review-light skill and execute it.
|
|
|
86
125
|
- Create a blog post for the current ticket
|
|
87
126
|
- Update the index.jsonc and README.md
|
|
88
127
|
- Create the configuration for gg do publish
|
|
128
|
+
- If the ticket was only planned, publish the PM repo only
|
|
89
129
|
|
|
90
130
|
Ask the user to run the following command **manually**:
|
|
91
131
|
|
|
@@ -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,28 @@ gg do create ticket DnaJiraPrefix-145 -m"Fix issue abc"
|
|
|
21
21
|
cd tickets/DnaJiraPrefix-145
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
## 3. Choose the
|
|
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
|
+
Read `doc/guides/pm-repo-guide.md` of the PM repo if it exists: it says how
|
|
38
|
+
the PM repo is structured and how planning works there.
|
|
39
|
+
|
|
40
|
+
## 4. Choose the code repos
|
|
25
41
|
|
|
26
42
|
Read the `index.md` of the candidate repos in `.ocean`. Tell the user which
|
|
27
43
|
repos the ticket needs and what you roughly want to change in each one. If a
|
|
28
44
|
part belongs to a domain that has no repo yet, say so and ask whether to
|
|
29
|
-
create one.
|
|
45
|
+
create one. A ticket that is only planned may need no code repo at all.
|
|
30
46
|
|
|
31
47
|
After the confirmation:
|
|
32
48
|
|
|
@@ -34,12 +50,20 @@ After the confirmation:
|
|
|
34
50
|
gg do add repo1 repo2
|
|
35
51
|
```
|
|
36
52
|
|
|
37
|
-
##
|
|
53
|
+
## 5. Open the workspace
|
|
38
54
|
|
|
39
55
|
```bash
|
|
40
56
|
gg do code
|
|
41
57
|
```
|
|
42
58
|
|
|
59
|
+
## 6. Plan or implement
|
|
60
|
+
|
|
61
|
+
Ask the user whether the ticket is planned first. If yes, write the plan into
|
|
62
|
+
the PM repo as its `pm-repo-guide.md` describes (or as its other guides do)
|
|
63
|
+
and let the user confirm it. Then ask whether the ticket is
|
|
64
|
+
implemented now or only planned — in the latter case the ticket ends with
|
|
65
|
+
the PM repo alone.
|
|
66
|
+
|
|
43
67
|
## Important
|
|
44
68
|
|
|
45
69
|
- 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.
|
|
3
|
+
"version": "0.4.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.
|
|
35
|
+
"@types/node": "^26.5.0",
|
|
36
36
|
"prettier": "^3.9.6"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|