@only1btayy/g2w 1.0.13 → 1.0.15

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/lib/install.js CHANGED
@@ -43,7 +43,7 @@ const G2W_HOOKS = {
43
43
  };
44
44
 
45
45
  function copySkills(targetBase) {
46
- const dest = path.join(targetBase, '.claude', 'skills', 'g2w');
46
+ const dest = path.join(targetBase, '.claude', 'commands', 'g2w');
47
47
  fs.mkdirSync(dest, { recursive: true });
48
48
  const files = fs.readdirSync(SKILLS_SRC).filter(f => f.endsWith('.md'));
49
49
  files.forEach(file => {
@@ -86,7 +86,7 @@ function mergeHooks(targetBase) {
86
86
  }
87
87
 
88
88
  function removeSkills(targetBase) {
89
- const dest = path.join(targetBase, '.claude', 'skills', 'g2w');
89
+ const dest = path.join(targetBase, '.claude', 'commands', 'g2w');
90
90
  if (fs.existsSync(dest)) {
91
91
  fs.rmSync(dest, { recursive: true, force: true });
92
92
  return true;
@@ -129,7 +129,7 @@ async function run() {
129
129
  writeTTY(`${LOGO}
130
130
  \x1b[32m✅ G2W installed at ${label}\x1b[0m
131
131
 
132
- ${count} skills → ${path.join(label, 'skills/g2w/')}
132
+ ${count} skills → ${path.join(label, 'commands/g2w/')}
133
133
  Hooks → ${path.join(label, 'settings.json')}
134
134
 
135
135
  Open any project with Claude Code and type:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@only1btayy/g2w",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "G2W — a relationship protocol for building trust with AI",
5
5
  "bin": {
6
6
  "g2w": "bin/g2w.js"
package/skills/back2it.md CHANGED
@@ -9,12 +9,16 @@ You are resuming a G2W session. Get back up to speed fast. No fluff.
9
9
 
10
10
  ## Steps
11
11
 
12
- 1. **Read `CURRENT.md`** in the project root. This is your source of truth.
12
+ 1. **Find the active project** — Read `.g2w/CURRENT.md` in the `Claudes Brain` root (the top-level working directory).
13
+ - If it contains a line like `active: projects/[folder]`, read `projects/[folder]/.g2w/CURRENT.md` as your source of truth.
14
+ - If the root `.g2w/CURRENT.md` is missing or has no `active:` line, say:
15
+ > "No active project found. Which project were you working on?"
16
+ - Wait for the user's answer before doing anything else.
13
17
 
14
18
  2. **Read one supporting doc** based on what's In Progress:
15
- - If In Progress involves code structure or a new feature → read `ARCHITECTURE.md`
16
- - If In Progress involves a bug or error → read `ERRORS.md`
17
- - If In Progress involves writing or modifying code → read `CONVENTIONS.md`
19
+ - If In Progress involves code structure or a new feature → read `.g2w/ARCHITECTURE.md`
20
+ - If In Progress involves a bug or error → read `.g2w/ERRORS.md`
21
+ - If In Progress involves writing or modifying code → read `.g2w/CONVENTIONS.md`
18
22
  - If nothing is In Progress → no additional doc needed
19
23
 
20
24
  3. **Doc integrity check:** Does the doc you read still match the current state? If something looks stale, flag it before touching anything else.
@@ -33,5 +37,5 @@ You are resuming a G2W session. Get back up to speed fast. No fluff.
33
37
 
34
38
  - Do not read files beyond what's needed for the current task
35
39
  - Do not start executing anything — this is orientation only
36
- - If CURRENT.md is missing or empty, say so and ask the user to describe where things stand
40
+ - If the root `.g2w/CURRENT.md` is missing or has no `active:` line, always ask never guess
37
41
  - If docs look out of sync with the code, fix the doc FIRST before touching anything else
@@ -69,7 +69,7 @@ Fill in the `❓ [UNKNOWN]` gaps based on their answers.
69
69
 
70
70
  ## Phase 4 — Final Output
71
71
 
72
- Write the completed doc files to the project root.
72
+ Create a `.g2w/` folder in the project root if it doesn't exist. Write all completed doc files there.
73
73
 
74
74
  Output a summary:
75
75
  ```
@@ -12,7 +12,7 @@ You are executing a locked plan. Build exactly what it says. Nothing extra. Noth
12
12
  1. **Read the locked plan** — if no plan exists or it's not locked, stop and say:
13
13
  > "No locked plan found. Run `/g2w:build2gether` first."
14
14
 
15
- 2. **Read `CONVENTIONS.md`** — know the rules before touching code.
15
+ 2. **Read `.g2w/CONVENTIONS.md`** — know the rules before touching code.
16
16
 
17
17
  3. **Declare scope** — before writing a single line, output:
18
18
  ```
@@ -9,12 +9,14 @@ You are closing out this session. Leave the project in a state where any future
9
9
 
10
10
  ## Steps
11
11
 
12
- 1. **Capture decisions** — Ask the user:
13
- > "What key decisions did we make this session that future-me needs to know? (reasoning behind choices, not just what was done)"
12
+ 1. **Capture decisions** — Review the conversation history and extract:
13
+ - What was built or changed
14
+ - Key decisions made and the reasoning behind them
15
+ - Any "don't do this again" lessons learned
14
16
 
15
- Wait for their answer. Do not skip this.
17
+ Do NOT ask the user to recall this — you have the full conversation. Only ask if something is genuinely ambiguous.
16
18
 
17
- 2. **Update `CURRENT.md`** with exactly three sections:
19
+ 2. **Update `.g2w/CURRENT.md`** in the current project folder with exactly three sections:
18
20
  ```
19
21
  ## Last Completed
20
22
  [What was finished and verified this session — be specific]
@@ -26,7 +28,13 @@ You are closing out this session. Leave the project in a state where any future
26
28
  [The single most important next task]
27
29
  ```
28
30
 
29
- 3. **Write a handoff note** at the bottom of `CURRENT.md` under `## Session Notes — [date]`:
31
+ Then write (or overwrite) `.g2w/CURRENT.md` in the **`Claudes Brain` root** with a single line:
32
+ ```
33
+ active: projects/[this-project-folder-name]
34
+ ```
35
+ This is the pointer `back2it` uses to find the right project next session.
36
+
37
+ 3. **Write a handoff note** at the bottom of `.g2w/CURRENT.md` under `## Session Notes — [date]`:
30
38
  - What was built
31
39
  - Key decisions made AND the reasoning behind them (the WHY matters more than the WHAT)
32
40
  - Any gotchas or "don't do this again" lessons
@@ -50,5 +58,5 @@ You are closing out this session. Leave the project in a state where any future
50
58
 
51
59
  - Never commit unverified work — if something wasn't tested, say so and don't include it
52
60
  - The handoff note must capture WHY decisions were made, not just what was done
53
- - If the user skips the decisions question, prompt once more this is the most important part
61
+ - Extract decisions from the conversation never make the user recall work you already witnessed
54
62
  - Do not clear context or close anything — that's the user's call
@@ -15,7 +15,7 @@ Run each check and record ✅ PASS, ⚠️ WARNING, or ❌ FAIL.
15
15
 
16
16
  ### 1. Doc Sync Check
17
17
 
18
- For each G2W doc that exists in this project:
18
+ For each G2W doc that exists in `.g2w/`:
19
19
  - Does `ARCHITECTURE.md` reflect the current tech stack and structure?
20
20
  - Does `FEATURES.md` reflect what's actually built vs what's broken vs what's next?
21
21
  - Does `ERRORS.md` list the current known bugs with accurate severity?
@@ -37,7 +37,7 @@ Flag any doc that looks stale or inconsistent with what you can observe.
37
37
 
38
38
  ### 3. Error Status Check
39
39
 
40
- - Read `ERRORS.md`
40
+ - Read `.g2w/ERRORS.md`
41
41
  - Flag any CRITICAL or HIGH severity errors that are unresolved
42
42
  - Are any errors listed as "in progress" but stale (no recent activity)?
43
43
 
@@ -45,7 +45,7 @@ Flag any doc that looks stale or inconsistent with what you can observe.
45
45
 
46
46
  ### 4. CURRENT.md Freshness
47
47
 
48
- - Does `CURRENT.md` reflect the last session accurately?
48
+ - Does `.g2w/CURRENT.md` reflect the last session accurately?
49
49
  - Is "In Progress" still actually in progress, or was it finished and not updated?
50
50
  - Is "Next" still the right next task?
51
51
 
@@ -14,7 +14,7 @@ You are the verifier. Your job is not to say "looks good" — it is to confirm t
14
14
  - Definition of done
15
15
  - Any specific behaviors or outputs promised
16
16
 
17
- 2. **Read `TESTING.md`** — run through the checklist for this area.
17
+ 2. **Read `.g2w/TESTING.md`** — run through the checklist for this area.
18
18
 
19
19
  3. **Verify file-by-file:**
20
20
 
@@ -56,9 +56,9 @@ You are the verifier. Your job is not to say "looks good" — it is to confirm t
56
56
  > "Verification failed. Back to building — [specific issues]."
57
57
 
58
58
  8. **If PASS** → update docs and hand off:
59
- - Update `CHANGELOG.md` with what was built and when
60
- - Update `FEATURES.md` if a feature was added
61
- - Update `ERRORS.md` if a bug was fixed
59
+ - Update `.g2w/CHANGELOG.md` with what was built and when
60
+ - Update `.g2w/FEATURES.md` if a feature was added
61
+ - Update `.g2w/ERRORS.md` if a bug was fixed
62
62
  - Then: "Verified. Run `/g2w:ready2save` to commit and close out."
63
63
 
64
64
  ## Rules