@g3nomaly/g3n-skills 0.1.2 → 0.1.4

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.
Files changed (58) hide show
  1. package/.claude-plugin/marketplace.json +11 -8
  2. package/README.md +8 -3
  3. package/package.json +2 -2
  4. package/skills/agent/.claude-plugin/plugin.json +2 -2
  5. package/skills/agent/bootstrap/SKILL.md +1 -1
  6. package/skills/agent/commit/SKILL.md +17 -0
  7. package/skills/agent/commit/agents/openai.yaml +5 -0
  8. package/skills/agent/commit/hooks/check-message.ts +107 -0
  9. package/skills/agent/worktrees/SKILL.md +10 -12
  10. package/skills/agent/worktrees/agents/openai.yaml +1 -1
  11. package/skills/coding/.claude-plugin/plugin.json +2 -2
  12. package/skills/coding/analyze/SKILL.md +2 -1
  13. package/skills/coding/code/SKILL.md +1 -1
  14. package/skills/coding/document/SKILL.md +1 -1
  15. package/skills/coding/vocabulary/SKILL.md +47 -0
  16. package/skills/coding/vocabulary/agents/openai.yaml +5 -0
  17. package/skills/grilling/domain-modeling/SKILL.md +2 -1
  18. package/skills/grilling/grilling/SKILL.md +2 -1
  19. package/skills/speech/.claude-plugin/plugin.json +3 -2
  20. package/skills/speech/emphasise/SKILL.md +1 -1
  21. package/skills/speech/hooks.json +15 -0
  22. package/skills/speech/no-questions/SKILL.md +9 -0
  23. package/skills/speech/no-questions/agents/openai.yaml +5 -0
  24. package/skills/speech/no-questions/hooks/refuse-questions.ts +108 -0
  25. package/skills/speech/no-questions/hooks/toggle.ts +14 -0
  26. package/skills/speech/no-questions/src/state.ts +15 -0
  27. package/skills/speech/plain-language/SKILL.md +9 -0
  28. package/skills/speech/plain-language/agents/openai.yaml +5 -0
  29. package/skills/speech/unslop/SKILL.md +3 -2
  30. package/skills/task-manager/.claude-plugin/plugin.json +1 -2
  31. package/skills/task-manager/decisions/SKILL.md +1 -1
  32. package/skills/task-manager/task-manager/hooks/get-entry.ts +4 -4
  33. package/skills/task-manager/task-manager/hooks/guard-tree.ts +2 -2
  34. package/skills/task-manager/task-manager/hooks/next-entry.ts +3 -3
  35. package/skills/task-manager/task-manager/references/hooks.md +1 -1
  36. package/skills/task-manager/task-manager/references/tree.md +0 -1
  37. package/skills/task-manager/task-manager/src/hooks/cli.ts +11 -1
  38. package/skills/task-manager/task-manager/src/hooks/index.ts +1 -1
  39. package/skills/task-manager/task-manager/src/schemas/index.ts +2 -2
  40. package/skills/task-manager/task-manager/src/schemas/term.ts +9 -22
  41. package/skills/task-manager/task-manager/src/vocabulary/file.ts +40 -84
  42. package/skills/task-manager/task-manager/src/vocabulary/index.ts +3 -3
  43. package/skills/task-manager/task-manager/src/vocabulary/match.ts +3 -34
  44. package/skills/workflow/execute/SKILL.md +1 -1
  45. package/skills/workflow/plan/SKILL.md +1 -1
  46. package/skills/workflow/review/SKILL.md +1 -1
  47. package/skills/workflow/run/SKILL.md +1 -1
  48. package/skills/workflow/sync/SKILL.md +1 -1
  49. package/skills/workflow/worktree/SKILL.md +1 -1
  50. package/skills/writing/writing-great-skills/SKILL.md +3 -1
  51. package/skills/task-manager/vocabulary/SKILL.md +0 -42
  52. package/skills/task-manager/vocabulary/agents/openai.yaml +0 -5
  53. package/skills/task-manager/vocabulary/hooks/get-term.ts +0 -18
  54. package/skills/task-manager/vocabulary/hooks/list-terms.ts +0 -12
  55. package/skills/task-manager/vocabulary/hooks/remove-term.ts +0 -22
  56. package/skills/task-manager/vocabulary/hooks/set-term.ts +0 -37
  57. package/skills/task-manager/vocabulary/references/usage.md +0 -26
  58. package/skills/task-manager/vocabulary/tsconfig.json +0 -7
@@ -1,37 +0,0 @@
1
- // packages/g3n-skills/skills/task-manager/vocabulary/hooks/set-term.ts
2
- import { findTerm, readVocabulary, vocabularyPathFor, writeVocabulary } from "@task-manager/vocabulary";
3
- import { printJson, readFlag, requireFlag, resolveRoot, runHook } from "@task-manager/hooks";
4
-
5
- /** Splits a comma-separated `--avoid` value into trimmed words; empty when the flag is absent. */
6
- function splitWords(list: string | undefined): string[] {
7
- return list === undefined ? [] : list.split(",").map((word) => word.trim()).filter((word) => word !== "");
8
- }
9
-
10
- /** Adds the term `--term` or replaces its definition and avoided words, and prints the result. */
11
- async function run(argv: readonly string[]): Promise<void> {
12
- const root = await resolveRoot(argv);
13
-
14
- const name = requireFlag(argv, "--term", "phase");
15
- const definition = requireFlag(argv, "--definition", '"One step of a plan."');
16
- const avoid = splitWords(readFlag(argv, "--avoid"));
17
-
18
- const terms = await readVocabulary(root);
19
- const existing = findTerm(terms, name);
20
-
21
- if (existing?.matched === "avoid") {
22
- throw new Error(`"${name}" is an avoided word of "${existing.term.term}"; define that term instead`);
23
- }
24
- for (const word of avoid) {
25
- const owner = findTerm(terms, word);
26
- if (owner !== null && owner.term !== existing?.term) {
27
- throw new Error(`cannot avoid "${word}": it already belongs to the term "${owner.term.term}"`);
28
- }
29
- }
30
-
31
- const term = { term: existing?.term.term ?? name, definition, avoid };
32
- await writeVocabulary(root, [...terms.filter((t) => t !== existing?.term), term]);
33
-
34
- printJson({ file: vocabularyPathFor(root), created: existing === null, ...term }, argv);
35
- }
36
-
37
- runHook(() => run(process.argv.slice(2)));
@@ -1,26 +0,0 @@
1
- # Term hooks — usage
2
-
3
- How each hook is called, and what the file they write looks like. This is the disclosed reference for the [`vocabulary`](../SKILL.md) skill.
4
-
5
- ## Invocations
6
-
7
- ```bash
8
- bun <vocabulary-dir>/hooks/get-term.ts --term stage
9
- bun <vocabulary-dir>/hooks/list-terms.ts --pretty
10
- bun <vocabulary-dir>/hooks/set-term.ts --term Phase --definition "One step of a plan, holding tasks." --avoid "stage, milestone"
11
- bun <vocabulary-dir>/hooks/remove-term.ts --term Phase
12
- ```
13
-
14
- ## The file
15
-
16
- `set-term` and `remove-term` rewrite `vocabulary.md` whole, terms sorted by name:
17
-
18
- ```md
19
- # Vocabulary
20
-
21
- ## Phase
22
-
23
- One step of a plan, holding tasks.
24
-
25
- _Avoid_: stage, milestone
26
- ```
@@ -1,7 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "paths": {
4
- "@task-manager/*": ["../task-manager/src/*"]
5
- }
6
- }
7
- }