gcf-aif-ext 0.2.0 → 0.2.1
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 +33 -3
- package/extension.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,14 +14,44 @@ Runtime-agnostic — everything here works on any AI Factory runtime. The Claude
|
|
|
14
14
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
17
|
+
Install into an initialized AI Factory project from npm or a local checkout:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
ai-factory init
|
|
21
|
+
ai-factory extension add gcf-aif-ext # npm
|
|
22
|
+
# ai-factory extension add ../GCF/packages/gcf-aif-ext # local checkout
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This installs the 8 skills into each configured runtime, registers the `gcf` command and appends the injections to `aif-plan`, `aif-review` and `aif-commit`. Then set up the project — two steps, run once:
|
|
26
|
+
|
|
17
27
|
```bash
|
|
18
|
-
ai-factory
|
|
19
|
-
ai-factory gcf
|
|
20
|
-
ai-factory gcf hooks-install # installs the pre-commit gate
|
|
28
|
+
ai-factory gcf init # seeds gcf/ and cnlp.config.json
|
|
29
|
+
ai-factory gcf hooks-install # arms the pre-commit gate
|
|
21
30
|
```
|
|
22
31
|
|
|
32
|
+
`gcf init` is idempotent: it creates what is missing and overwrites nothing.
|
|
33
|
+
|
|
34
|
+
`hooks-install` is a separate step because an AI Factory manifest can declare skills, commands and injections but cannot install a git hook — and because arming a gate that can break your commits is your call, not the extension's. It needs a git repository, and it will not overwrite a `pre-commit` it did not write: if husky or lefthook already owns the hook, it prints the one line to chain from it instead. Without the hook GCF still works; nothing enforces it at commit time.
|
|
35
|
+
|
|
23
36
|
Then `/gcf-vision` for a brand-new game, `/gcf-adopt` for a project that already has code, `/gcf-ingest <gdd.md>` for an existing design doc, or `/gcf-card` to start a feature by hand.
|
|
24
37
|
|
|
38
|
+
## Upgrade
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
ai-factory extension update gcf-aif-ext # pulls the new version
|
|
42
|
+
ai-factory extension update --force # refresh even if the version is unchanged
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Updating preserves `gcf/`, `cnlp.config.json` and the pre-commit hook.
|
|
46
|
+
|
|
47
|
+
To remove the extension:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
ai-factory extension remove gcf-aif-ext
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Removal leaves `gcf/` and `cnlp.config.json` in place. It also leaves the pre-commit hook, which calls into the removed extension and will now fail every commit — delete `.git/hooks/pre-commit` (or the chained line) by hand.
|
|
54
|
+
|
|
25
55
|
## What it adds
|
|
26
56
|
|
|
27
57
|
**Skills** — `gcf-init`, `gcf-adopt`, `gcf-card`, `gcf-verdict`, `gcf-audit`, `gcf-vision`, `gcf-debate`, `gcf-ingest`.
|
package/extension.json
CHANGED