agentic-code 0.6.1 → 0.6.3

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.
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: ai-development-guide
3
- description: |
4
- Technical anti-pattern detection, fail-fast design principles, debugging techniques, and implementation completeness guidelines.
5
- Use when: implementing features, reviewing code quality, debugging errors, refactoring code, or detecting code smells.
3
+ description: "Detects code smells, anti-patterns, and debugging issues. Use when: fixing bugs, reviewing code quality, or refactoring."
6
4
  ---
7
5
 
8
6
  # AI Developer Guide
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: coding-rules
3
- description: |
4
- Coding principles for maintainability, readability, and quality.
5
- Use when: implementing features, refactoring code, reviewing code quality, or establishing coding standards.
3
+ description: "Applies coding standards for clean, maintainable code. Use when: writing functions, handling errors, refactoring, or reviewing code style."
6
4
  ---
7
5
 
8
6
  # Development Rules
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: documentation-criteria
3
- description: |
4
- Documentation creation criteria including PRD, ADR, Design Doc, and Work Plan requirements with templates.
5
- Use when: creating technical documents, determining which documents are required, reviewing document quality, or planning feature implementation.
3
+ description: "Guides PRD, ADR, Design Doc, and Work Plan creation. Use when: planning features, writing specs, or creating technical documents."
6
4
  ---
7
5
 
8
6
  # Documentation Creation Criteria
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: implementation-approach
3
- description: |
4
- Implementation strategy selection framework with meta-cognitive approach, verification levels, and integration point definitions.
5
- Use when: planning implementation strategy, selecting development approach (vertical/horizontal/hybrid), or defining verification criteria.
3
+ description: "Selects implementation strategy (vertical/horizontal/hybrid) with risk assessment. Use when: planning features or deciding development approach."
6
4
  ---
7
5
 
8
6
  # Implementation Strategy Selection Framework (Meta-cognitive Approach)
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: integration-e2e-testing
3
- description: |
4
- Integration and E2E test design principles, behavior verification rules, mock boundaries, and review criteria.
5
- Use when: designing integration tests, E2E tests, writing test skeletons, or reviewing test implementation quality.
3
+ description: "Designs integration and E2E tests with mock boundaries. Use when: writing E2E tests, integration tests, or reviewing test quality."
6
4
  ---
7
5
 
8
6
  # Integration Test & E2E Test Design/Implementation Rules
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: metacognition
3
- description: |
4
- Self-assessment checkpoints and protocol for AI agents.
5
- Use when: task type changes, after completing tasks, encountering errors, before starting new features, or switching between phases.
3
+ description: "Validates approach and checks assumptions before/after tasks. Use when: starting work, encountering errors, or switching phases."
6
4
  ---
7
5
 
8
6
  # Metacognition Protocol
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: testing
3
- description: |
4
- Testing principles including TDD process, test quality criteria, coverage standards, and mock usage guidelines.
5
- Use when: writing tests, designing test strategies, reviewing test quality, or establishing testing standards.
3
+ description: "Applies TDD process, test quality criteria, and mock guidelines. Use when: writing unit tests, using mocks, or reviewing test quality."
6
4
  ---
7
5
 
8
6
  # Testing Rules
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: testing-strategy
3
- description: |
4
- ROI-based test selection framework with calculation formula, critical user journey definitions, and test prioritization guidelines.
5
- Use when: designing test strategy, selecting which tests to write, calculating test ROI, or prioritizing test coverage.
3
+ description: "Prioritizes tests based on ROI and critical user journeys. Use when: deciding test coverage, selecting test types, or budgeting effort."
6
4
  ---
7
5
 
8
6
  # Test Strategy: ROI-Based Selection
package/README.md CHANGED
@@ -4,7 +4,7 @@ Your AI (LLM), guided by built-in workflows. Describe what you want, and it foll
4
4
 
5
5
  [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
6
6
  [![AGENTS.md](https://img.shields.io/badge/AGENTS.md-compliant-blue.svg)](https://agents.md)
7
- [![Version](https://img.shields.io/badge/version-0.5.1-blue.svg)](package.json)
7
+ [![Version](https://img.shields.io/badge/version-0.6.2-blue.svg)](package.json)
8
8
 
9
9
  ![Demo: Building a Slack bot with Agentic Code](.github/assets/demo.gif)
10
10
 
@@ -110,11 +110,20 @@ cp -r path/to/agentic-code/.agents .
110
110
 
111
111
  `.agents/skills/` contains reusable skill files in the [Codex Skills format](https://github.com/openai/codex/blob/main/docs/skills.md). Each skill has a `SKILL.md` with instructions that AI agents can discover and apply.
112
112
 
113
- **Codex**: You can install skills globally so Codex picks them up across all projects:
113
+ **Codex**: Install skills for Codex CLI:
114
114
 
115
115
  ```bash
116
+ # User scope (all projects)
116
117
  npx agentic-code-install-skills --codex
117
118
  # Installs to ~/.codex/skills/agentic-code/
119
+
120
+ # Project scope (current project only)
121
+ npx agentic-code-install-skills --codex --project
122
+ # Installs to ./.codex/skills/agentic-code/
123
+
124
+ # Custom path
125
+ npx agentic-code-install-skills --path ./custom/skills
126
+ # Installs to ./custom/skills/agentic-code/
118
127
  ```
119
128
 
120
129
  ## Common Questions
@@ -7,10 +7,28 @@ const os = require('os');
7
7
  // Parse command line arguments
8
8
  const args = process.argv.slice(2);
9
9
 
10
+ // Scope types
11
+ const SCOPES = {
12
+ user: 'user',
13
+ project: 'project'
14
+ };
15
+
16
+ // Get target directory based on target and scope
17
+ function getTargetDir(targetKey, scope) {
18
+ if (targetKey === 'codex') {
19
+ if (scope === SCOPES.project) {
20
+ return path.join(process.cwd(), '.codex', 'skills');
21
+ }
22
+ // User scope: respect CODEX_HOME environment variable
23
+ const codexHome = process.env.CODEX_HOME || path.join(os.homedir(), '.codex');
24
+ return path.join(codexHome, 'skills');
25
+ }
26
+ return null;
27
+ }
28
+
10
29
  // Target configurations
11
30
  const TARGETS = {
12
31
  codex: {
13
- dir: path.join(os.homedir(), '.codex', 'skills'),
14
32
  name: 'agentic-code',
15
33
  description: 'OpenAI Codex CLI',
16
34
  postInstall: 'Restart Codex to load the skills.\nNote: Enable skills with --enable skills flag or in config.toml'
@@ -24,26 +42,70 @@ if (args.includes('--help') || args.includes('-h')) {
24
42
  Usage: agentic-code-install-skills [options]
25
43
 
26
44
  Options:
27
- --codex Install skills to ~/.codex/skills/.agentic-code (default)
28
- --help Show this help message
45
+ --codex Install skills to Codex CLI (default)
46
+ --project Install to project scope instead of user scope
47
+ --path <path> Install to custom path
48
+ --help Show this help message
49
+
50
+ Scopes:
51
+ user (default) Install to user directory (~/.codex/skills/ or $CODEX_HOME/skills/)
52
+ project Install to current project (./.codex/skills/)
29
53
 
30
54
  Examples:
31
- agentic-code-install-skills # Install to Codex (default)
32
- agentic-code-install-skills --codex # Install to Codex (explicit)
55
+ agentic-code-install-skills # Install to ~/.codex/skills/ (user scope)
56
+ agentic-code-install-skills --codex # Same as above (explicit)
57
+ agentic-code-install-skills --codex --project # Install to ./.codex/skills/ (project scope)
58
+ agentic-code-install-skills --path ./my-skills # Install to ./my-skills/agentic-code
33
59
  `);
34
60
  process.exit(0);
35
61
  }
36
62
 
63
+ // Parse --path option
64
+ function getCustomPath() {
65
+ const pathIndex = args.indexOf('--path');
66
+ if (pathIndex === -1) return null;
67
+
68
+ const customPath = args[pathIndex + 1];
69
+ if (!customPath || customPath.startsWith('-')) {
70
+ console.error('Error: --path requires a path argument');
71
+ process.exit(1);
72
+ }
73
+ return path.resolve(customPath);
74
+ }
75
+
76
+ const customPath = getCustomPath();
77
+
37
78
  // Determine target (default: codex)
38
- let targetKey = 'codex';
79
+ let targetKey = customPath ? 'custom' : 'codex';
39
80
  if (args.includes('--codex')) {
40
- targetKey = 'codex';
81
+ targetKey = customPath ? 'custom' : 'codex';
41
82
  }
42
83
 
43
- const target = TARGETS[targetKey];
44
- if (!target) {
45
- console.error(`Error: Unknown target '${targetKey}'`);
46
- process.exit(1);
84
+ // Determine scope (default: user)
85
+ const scope = args.includes('--project') ? SCOPES.project : SCOPES.user;
86
+
87
+ // Get skills directory
88
+ let skillsDir;
89
+ let target;
90
+
91
+ if (customPath) {
92
+ skillsDir = customPath;
93
+ target = {
94
+ name: 'agentic-code',
95
+ description: 'custom path',
96
+ postInstall: null
97
+ };
98
+ } else {
99
+ target = TARGETS[targetKey];
100
+ if (!target) {
101
+ console.error(`Error: Unknown target '${targetKey}'`);
102
+ process.exit(1);
103
+ }
104
+ skillsDir = getTargetDir(targetKey, scope);
105
+ if (!skillsDir) {
106
+ console.error(`Error: Cannot determine target directory for '${targetKey}'`);
107
+ process.exit(1);
108
+ }
47
109
  }
48
110
 
49
111
  // Get source directory (from installed package or local)
@@ -89,16 +151,17 @@ function main() {
89
151
  process.exit(1);
90
152
  }
91
153
 
92
- const targetDir = path.join(target.dir, target.name);
154
+ const targetDir = path.join(skillsDir, target.name);
155
+ const scopeLabel = customPath ? 'custom' : (scope === SCOPES.project ? 'project' : 'user');
93
156
 
94
- console.log(`Installing Agentic Code skills to ${target.description}...\n`);
157
+ console.log(`Installing Agentic Code skills to ${target.description} (${scopeLabel})...\n`);
95
158
  console.log(`Source: ${sourceDir}`);
96
159
  console.log(`Target: ${targetDir}\n`);
97
160
 
98
161
  // Create target parent directory if not exists
99
- if (!fs.existsSync(target.dir)) {
100
- fs.mkdirSync(target.dir, { recursive: true });
101
- console.log(`Created: ${target.dir}`);
162
+ if (!fs.existsSync(skillsDir)) {
163
+ fs.mkdirSync(skillsDir, { recursive: true });
164
+ console.log(`Created: ${skillsDir}`);
102
165
  }
103
166
 
104
167
  // Remove existing target directory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-code",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Task-oriented context engineering framework for LLM coding agents - AGENTS.md standard compliant",
5
5
  "files": [
6
6
  "bin/",