agentinit 1.0.1 → 1.2.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/CHANGELOG.md +36 -0
- package/README.md +103 -8
- package/dist/agentinit-1.2.0.tgz +0 -0
- package/dist/index.js +19230 -3325
- package/dist/templates/rules/git.toml +30 -0
- package/dist/templates/rules/use_git_worktrees.toml +30 -0
- package/dist/templates/rules/use_linter.toml +30 -0
- package/dist/templates/rules/use_subagents.toml +30 -0
- package/dist/templates/rules/write_docs.toml +30 -0
- package/dist/templates/rules/write_tests.toml +30 -0
- package/package.json +11 -9
- package/dist/agentinit-1.0.1.tgz +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[template]
|
|
2
|
+
id = "git"
|
|
3
|
+
name = "Git Enforcement"
|
|
4
|
+
description = "Enforce proper Git usage and workflow practices"
|
|
5
|
+
category = "workflow"
|
|
6
|
+
priority = 1
|
|
7
|
+
|
|
8
|
+
[[rules]]
|
|
9
|
+
text = "Always initialize a Git repository if one doesn't exist (git init)"
|
|
10
|
+
|
|
11
|
+
[[rules]]
|
|
12
|
+
text = "Make atomic commits with clear, descriptive commit messages"
|
|
13
|
+
|
|
14
|
+
[[rules]]
|
|
15
|
+
text = "Use conventional commit format: type(scope): description"
|
|
16
|
+
|
|
17
|
+
[[rules]]
|
|
18
|
+
text = "Create feature branches for new work, don't work directly on main/master"
|
|
19
|
+
|
|
20
|
+
[[rules]]
|
|
21
|
+
text = "Never commit sensitive data, API keys, or secrets to the repository"
|
|
22
|
+
|
|
23
|
+
[[rules]]
|
|
24
|
+
text = "Review changes with `git diff --staged` before committing"
|
|
25
|
+
|
|
26
|
+
[[rules]]
|
|
27
|
+
text = "Keep commits focused on a single logical change"
|
|
28
|
+
|
|
29
|
+
[[rules]]
|
|
30
|
+
text = "Use meaningful branch names that describe the feature or fix"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[template]
|
|
2
|
+
id = "use_git_worktrees"
|
|
3
|
+
name = "Git Worktrees Workflow"
|
|
4
|
+
description = "Use Git worktrees for parallel development"
|
|
5
|
+
category = "workflow"
|
|
6
|
+
priority = 3
|
|
7
|
+
|
|
8
|
+
[[rules]]
|
|
9
|
+
text = "Use git worktrees for parallel development of different features"
|
|
10
|
+
|
|
11
|
+
[[rules]]
|
|
12
|
+
text = "Keep the main branch clean and stable in the primary worktree"
|
|
13
|
+
|
|
14
|
+
[[rules]]
|
|
15
|
+
text = "Create separate worktrees for feature branches: `git worktree add ../feature-branch`"
|
|
16
|
+
|
|
17
|
+
[[rules]]
|
|
18
|
+
text = "Clean up worktrees after merging: `git worktree remove ../feature-branch`"
|
|
19
|
+
|
|
20
|
+
[[rules]]
|
|
21
|
+
text = "Never modify files across different worktrees simultaneously"
|
|
22
|
+
|
|
23
|
+
[[rules]]
|
|
24
|
+
text = "Use `git worktree list` to see all active worktrees"
|
|
25
|
+
|
|
26
|
+
[[rules]]
|
|
27
|
+
text = "Each worktree should have its own purpose (feature, hotfix, experiment)"
|
|
28
|
+
|
|
29
|
+
[[rules]]
|
|
30
|
+
text = "Switch context by changing directories rather than switching branches"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[template]
|
|
2
|
+
id = "use_linter"
|
|
3
|
+
name = "Enforce Linting"
|
|
4
|
+
description = "Ensure code quality through consistent linting practices"
|
|
5
|
+
category = "quality"
|
|
6
|
+
priority = 1
|
|
7
|
+
|
|
8
|
+
[[rules]]
|
|
9
|
+
text = "Run the project's linter before committing any code changes"
|
|
10
|
+
|
|
11
|
+
[[rules]]
|
|
12
|
+
text = "Fix all linter errors and warnings before proceeding"
|
|
13
|
+
|
|
14
|
+
[[rules]]
|
|
15
|
+
text = "Use the project's existing linter configuration without modification"
|
|
16
|
+
|
|
17
|
+
[[rules]]
|
|
18
|
+
text = "Run code formatters (prettier, black, gofmt, etc.) to maintain consistent style"
|
|
19
|
+
|
|
20
|
+
[[rules]]
|
|
21
|
+
text = "Ensure all code passes CI linting checks before pushing"
|
|
22
|
+
|
|
23
|
+
[[rules]]
|
|
24
|
+
text = "Install and configure linting tools if not already present"
|
|
25
|
+
|
|
26
|
+
[[rules]]
|
|
27
|
+
text = "Follow language-specific linting best practices"
|
|
28
|
+
|
|
29
|
+
[[rules]]
|
|
30
|
+
text = "Don't disable linting rules without proper justification"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[template]
|
|
2
|
+
id = "use_subagents"
|
|
3
|
+
name = "Use Subagents"
|
|
4
|
+
description = "Delegate work to specialized subagents for better results"
|
|
5
|
+
category = "workflow"
|
|
6
|
+
priority = 2
|
|
7
|
+
|
|
8
|
+
[[rules]]
|
|
9
|
+
text = "Break complex tasks into smaller, manageable subtasks"
|
|
10
|
+
|
|
11
|
+
[[rules]]
|
|
12
|
+
text = "Delegate code review tasks to the Code Reviewer subagent"
|
|
13
|
+
|
|
14
|
+
[[rules]]
|
|
15
|
+
text = "Use the QA Engineer subagent for test coverage and quality assurance"
|
|
16
|
+
|
|
17
|
+
[[rules]]
|
|
18
|
+
text = "Coordinate between subagents to ensure consistent approach"
|
|
19
|
+
|
|
20
|
+
[[rules]]
|
|
21
|
+
text = "Let specialized subagents handle their domain expertise areas"
|
|
22
|
+
|
|
23
|
+
[[rules]]
|
|
24
|
+
text = "Use subagents for parallel work on independent components"
|
|
25
|
+
|
|
26
|
+
[[rules]]
|
|
27
|
+
text = "Provide clear context and requirements to subagents"
|
|
28
|
+
|
|
29
|
+
[[rules]]
|
|
30
|
+
text = "Review and integrate subagent outputs before finalizing"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[template]
|
|
2
|
+
id = "write_docs"
|
|
3
|
+
name = "Documentation Requirements"
|
|
4
|
+
description = "Ensure comprehensive documentation for all code"
|
|
5
|
+
category = "documentation"
|
|
6
|
+
priority = 2
|
|
7
|
+
|
|
8
|
+
[[rules]]
|
|
9
|
+
text = "Document all public APIs, functions, and classes with clear descriptions"
|
|
10
|
+
|
|
11
|
+
[[rules]]
|
|
12
|
+
text = "Include practical usage examples in documentation"
|
|
13
|
+
|
|
14
|
+
[[rules]]
|
|
15
|
+
text = "Update README.md when adding new features or changing functionality"
|
|
16
|
+
|
|
17
|
+
[[rules]]
|
|
18
|
+
text = "Add inline comments for complex logic and algorithms"
|
|
19
|
+
|
|
20
|
+
[[rules]]
|
|
21
|
+
text = "Maintain a CHANGELOG.md for user-facing changes"
|
|
22
|
+
|
|
23
|
+
[[rules]]
|
|
24
|
+
text = "Document configuration options and environment variables"
|
|
25
|
+
|
|
26
|
+
[[rules]]
|
|
27
|
+
text = "Include error handling and troubleshooting information"
|
|
28
|
+
|
|
29
|
+
[[rules]]
|
|
30
|
+
text = "Write documentation before or alongside code implementation"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[template]
|
|
2
|
+
id = "write_tests"
|
|
3
|
+
name = "Write Tests"
|
|
4
|
+
description = "Enforce comprehensive testing practices"
|
|
5
|
+
category = "testing"
|
|
6
|
+
priority = 1
|
|
7
|
+
|
|
8
|
+
[[rules]]
|
|
9
|
+
text = "Write tests for all new functionality before or during implementation"
|
|
10
|
+
|
|
11
|
+
[[rules]]
|
|
12
|
+
text = "Don't use mocks unless absolutely necessary - prefer real implementations"
|
|
13
|
+
|
|
14
|
+
[[rules]]
|
|
15
|
+
text = "Test edge cases, error conditions, and boundary values"
|
|
16
|
+
|
|
17
|
+
[[rules]]
|
|
18
|
+
text = "Maintain a minimum of 80% code coverage for all new code"
|
|
19
|
+
|
|
20
|
+
[[rules]]
|
|
21
|
+
text = "Run the full test suite before committing changes"
|
|
22
|
+
|
|
23
|
+
[[rules]]
|
|
24
|
+
text = "Write both unit tests for individual components and integration tests"
|
|
25
|
+
|
|
26
|
+
[[rules]]
|
|
27
|
+
text = "Use descriptive test names that explain what is being tested"
|
|
28
|
+
|
|
29
|
+
[[rules]]
|
|
30
|
+
text = "Test the actual behavior users will experience, not just implementation details"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentinit",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A CLI tool for managing and configuring AI coding agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
"agentinit": "dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "bun build src/index.ts --outdir dist --target node",
|
|
11
|
+
"build": "bun build src/index.ts --outdir dist --target node && cp -r src/templates dist/",
|
|
12
12
|
"dev": "bun run src/index.ts",
|
|
13
|
-
"test": "
|
|
14
|
-
"test:watch": "
|
|
13
|
+
"test": "vitest run",
|
|
14
|
+
"test:watch": "vitest",
|
|
15
|
+
"test_all": "vitest run && tsc --noEmit",
|
|
15
16
|
"lint": "tsc --noEmit",
|
|
16
17
|
"clean": "rm -rf dist",
|
|
17
18
|
"pack": "npm pack --dry-run",
|
|
@@ -37,7 +38,9 @@
|
|
|
37
38
|
],
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"@iarna/toml": "^2.2.5",
|
|
41
|
+
"@modelcontextprotocol/sdk": "^1.18.0",
|
|
40
42
|
"commander": "^12.1.0",
|
|
43
|
+
"contextcalc": "^1.3.5",
|
|
41
44
|
"gray-matter": "^4.0.3",
|
|
42
45
|
"js-yaml": "^4.1.0",
|
|
43
46
|
"kleur": "^4.1.5",
|
|
@@ -48,14 +51,13 @@
|
|
|
48
51
|
"@semantic-release/changelog": "^6.0.3",
|
|
49
52
|
"@semantic-release/git": "^10.0.1",
|
|
50
53
|
"@semantic-release/github": "^11.0.5",
|
|
51
|
-
"@types/jest": "^30.0.0",
|
|
52
54
|
"@types/js-yaml": "^4.0.9",
|
|
53
|
-
"@types/node": "^22.
|
|
55
|
+
"@types/node": "^22.18.5",
|
|
54
56
|
"@types/prompts": "^2.4.9",
|
|
55
|
-
"
|
|
57
|
+
"@vitest/ui": "^3.2.4",
|
|
56
58
|
"semantic-release": "^24.2.7",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
+
"typescript": "^5.6.3",
|
|
60
|
+
"vitest": "^3.2.4"
|
|
59
61
|
},
|
|
60
62
|
"packageManager": "bun@1.1.0"
|
|
61
63
|
}
|
package/dist/agentinit-1.0.1.tgz
DELETED
|
Binary file
|