@jhm1909/ag-kit 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.
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
trigger: model_decision
|
|
3
|
+
description: Always apply when doing or writing testing
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Pre-Commit Checklist
|
|
7
|
+
|
|
8
|
+
> IMPORTANT: Run this checklist BEFORE every commit. Do not skip.
|
|
9
|
+
|
|
10
|
+
## Verification Steps
|
|
11
|
+
|
|
12
|
+
1. **Skill check**: Did you load the correct skill for this task?
|
|
13
|
+
- If unsure, re-read `.agent/rules/skill-loading.md`
|
|
14
|
+
|
|
15
|
+
2. **Workflow check**: Did you follow the workflow completely?
|
|
16
|
+
- If no workflow was used, state why explicitly
|
|
17
|
+
|
|
18
|
+
3. **Code quality**:
|
|
19
|
+
- [ ] No hardcoded secrets or API keys
|
|
20
|
+
- [ ] No `console.log` debugging left behind
|
|
21
|
+
- [ ] No commented-out code blocks
|
|
22
|
+
- [ ] No TODO without a linked issue
|
|
23
|
+
|
|
24
|
+
4. **Testing** (if code changed):
|
|
25
|
+
- [ ] Tests pass (`npm test` or equivalent)
|
|
26
|
+
- [ ] New code has test coverage
|
|
27
|
+
|
|
28
|
+
5. **Documentation** (if behavior changed):
|
|
29
|
+
- [ ] README or docs updated if user-facing behavior changed
|
|
30
|
+
- [ ] Code comments for non-obvious logic
|
|
31
|
+
|
|
32
|
+
6. **Git hygiene**:
|
|
33
|
+
- [ ] `.env` files are NOT staged
|
|
34
|
+
- [ ] `node_modules/` is NOT staged
|
|
35
|
+
- [ ] Commit message follows Conventional Commits format
|
|
36
|
+
|
|
37
|
+
## When to Skip
|
|
38
|
+
|
|
39
|
+
- Typo-only fixes (docs, comments)
|
|
40
|
+
- Dependency version bumps with no code changes
|
|
@@ -5,13 +5,14 @@ description: Always suggest relevant workflows when user starts a new task or se
|
|
|
5
5
|
|
|
6
6
|
# Workflow Advisor Rule
|
|
7
7
|
|
|
8
|
-
## Critical Rules (
|
|
8
|
+
## Critical Rules (MANDATORY)
|
|
9
9
|
|
|
10
|
-
1. **MUST** suggest relevant workflows when user describes a new project or task
|
|
10
|
+
1. **MUST** suggest relevant workflows when user describes a new project or task. This is not optional.
|
|
11
11
|
2. **MUST** suggest the *next* workflow when a current workflow completes
|
|
12
12
|
3. **MUST** present workflow chains for multi-phase projects, not individual commands
|
|
13
|
-
4. **MUST
|
|
14
|
-
5. **MUST NOT**
|
|
13
|
+
4. **MUST** check `.agent/rules/skill-loading.md` before loading any skill
|
|
14
|
+
5. **MUST NOT** overwhelm — suggest max 3 options at a time
|
|
15
|
+
6. **MUST NOT** skip workflow steps to be "faster" — follow the full workflow
|
|
15
16
|
|
|
16
17
|
## When to Activate
|
|
17
18
|
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
This project uses [Antigravity Kit](https://github.com/jhm1909/antigravity-kit) for AI agent configuration.
|
|
2
2
|
|
|
3
|
+
## Mandatory Rules
|
|
4
|
+
|
|
5
|
+
> IMPORTANT: You MUST follow these rules for EVERY task. No exceptions.
|
|
6
|
+
|
|
7
|
+
1. BEFORE any task: read `.agent/rules/skill-loading.md` to load the correct skill
|
|
8
|
+
2. BEFORE any commit: follow `.agent/workflows/commit.md` completely
|
|
9
|
+
3. BEFORE writing code: check `.agent/rules/clean-code.md` for standards
|
|
10
|
+
4. BEFORE writing tests: check `.agent/rules/testing.md` for requirements
|
|
11
|
+
5. BEFORE writing docs: check `.agent/rules/documents.md` for conventions
|
|
12
|
+
6. When starting a new task: suggest a workflow from `.agent/workflows/`
|
|
13
|
+
|
|
3
14
|
## Structure
|
|
4
15
|
|
|
5
16
|
All agent capabilities are in `.agent/`:
|
|
@@ -25,9 +36,10 @@ Bug Fix: /development -> /gen-tests -> /commit
|
|
|
25
36
|
Debug: /debug -> /commit
|
|
26
37
|
```
|
|
27
38
|
|
|
28
|
-
##
|
|
39
|
+
## Self-Verification
|
|
29
40
|
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
41
|
+
Before completing ANY task, verify:
|
|
42
|
+
- [ ] Loaded the correct skill for this task type
|
|
43
|
+
- [ ] Followed the workflow steps in order (did not skip steps)
|
|
44
|
+
- [ ] Applied relevant rules (testing, docs, git, clean-code)
|
|
45
|
+
- [ ] Code passes lint and tests
|
package/cli/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const fs = require('fs');
|
|
|
14
14
|
const path = require('path');
|
|
15
15
|
|
|
16
16
|
// ─── Constants ───────────────────────────────────────────────────────
|
|
17
|
-
const VERSION = '0.2.
|
|
17
|
+
const VERSION = '0.2.1';
|
|
18
18
|
const KIT_NAME = '@jhm1909/ag-kit';
|
|
19
19
|
const AGENT_DIR = '.agent';
|
|
20
20
|
|