@aigis-ai/cli 1.0.0 → 1.0.2

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 CHANGED
@@ -4,7 +4,9 @@ AI governance guardrails for coding agents. Curated, agent-consumable security a
4
4
 
5
5
  [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
6
  [![npm](https://img.shields.io/npm/v/@aigis-ai/cli)](https://www.npmjs.com/package/@aigis-ai/cli)
7
+ [![PyPI](https://img.shields.io/pypi/v/aigis-cli)](https://pypi.org/project/aigis-cli/)
7
8
  [![Node.js](https://img.shields.io/badge/node-%3E%3D18-brightgreen)](https://nodejs.org)
9
+ [![Python](https://img.shields.io/badge/python-%3E%3D3.9-blue)](https://www.python.org/)
8
10
 
9
11
  ## The problem
10
12
 
@@ -27,9 +29,23 @@ Rework cycle Ships compliant on first pass
27
29
 
28
30
  ## Quick start
29
31
 
32
+ Install the CLI with **npm** (JavaScript / Node.js) or **pip** (Python). Both packages expose the same `aigis` command and behavior.
33
+
34
+ **JavaScript developers — npm**
35
+
30
36
  ```bash
31
37
  npm install -g @aigis-ai/cli
38
+ ```
39
+
40
+ **Python developers — pip**
41
+
42
+ ```bash
43
+ pip install aigis-cli
44
+ ```
45
+
46
+ **After installing (either toolchain)**
32
47
 
48
+ ```bash
33
49
  # Set up for your IDE
34
50
  aigis init cursor # or: claude-code, windsurf, copilot
35
51
 
@@ -167,6 +183,10 @@ Control IDs are in each file's YAML frontmatter, enabling compliance teams to tr
167
183
 
168
184
  ## Architecture
169
185
 
186
+ The governance content lives under `content/` and is shared by both CLIs.
187
+
188
+ **npm package** [`@aigis-ai/cli`](https://www.npmjs.com/package/@aigis-ai/cli) (Node.js)
189
+
170
190
  ```
171
191
  @aigis-ai/cli
172
192
  ├── bin/aigis.js # CLI entry point (commander.js)
@@ -186,6 +206,18 @@ Control IDs are in each file's YAML frontmatter, enabling compliance teams to tr
186
206
  └── package.json
187
207
  ```
188
208
 
209
+ **PyPI package** [`aigis-cli`](https://pypi.org/project/aigis-cli/) (Python)
210
+
211
+ ```
212
+ cli-python/
213
+ ├── pyproject.toml
214
+ └── aigis_cli/ # click + rich + python-frontmatter; mirrors the JS CLI
215
+ ├── cli.py
216
+ ├── classify.py, fetch.py, keywords.py, search.py, annotate.py, init_ide.py
217
+ ├── content/ # same markdown + JSON as above (bundled as package data)
218
+ └── SKILL.md
219
+ ```
220
+
189
221
  No network calls. No telemetry. No LLM API calls. No databases. Everything runs locally, reads local files, prints to stdout.
190
222
 
191
223
  ## Contributing
package/SKILL.md CHANGED
@@ -8,21 +8,17 @@ description: AI governance skill for coding agents. Provides framework-aligned s
8
8
  Use the aigis CLI for governance patterns when building or auditing AI/LLM features.
9
9
 
10
10
  ## Quick start — new feature
11
- \`\`\`bash
12
- # 1. Classify your system to get relevant controls
13
- aigis classify --traits uses-llm,accepts-user-input,processes-pii,is-external --json
14
-
15
- # 2. Fetch implementation patterns for each recommended file
16
- aigis get input-validation pii-handling prompt-security audit-logging
17
-
18
- # 3. Write code applying the patterns from the fetched files
11
+ 1. aigis classify --traits <relevant-traits> --json
12
+ 2. For EACH file in the implement_files list, one at a time:
13
+ a. aigis get <file-id>
14
+ b. Implement the patterns in the code
15
+ c. aigis verify <file-id>
16
+ d. Fix any FAIL or PARTIAL items until all checks pass
17
+ e. Move to the next file
18
+ 3. After all files pass, generate required templates:
19
+ aigis template <template-id>
19
20
 
20
- # 4. After writing code, run verification
21
- aigis verify input-validation pii-handling prompt-security audit-logging
22
-
23
- # 5. If risk tier is HIGH or MEDIUM, generate compliance docs
24
- aigis template ai-impact-assessment intended-purpose-doc
25
- \`\`\`
21
+ IMPORTANT: Do NOT fetch all implement files at once. Work through them one at a time. Implement fully and verify before moving to the next.
26
22
 
27
23
  ## Quick start — audit existing project
28
24
  \`\`\`bash
package/bin/aigis.js CHANGED
@@ -15,7 +15,7 @@ const program = new Command();
15
15
  program
16
16
  .name('aigis')
17
17
  .description('AI governance guardrails for coding agents')
18
- .version('1.0.0');
18
+ .version('1.0.2');
19
19
 
20
20
  // ============================================================
21
21
  // aigis classify
package/lib/init.js CHANGED
@@ -10,19 +10,22 @@ When building any AI or LLM feature, use the aigis CLI for governance patterns:
10
10
 
11
11
  1. Before writing LLM code, classify the system:
12
12
  Run: aigis classify --traits <relevant-traits> --json
13
-
14
- 2. Fetch implementation patterns for each recommended file:
15
- Run: aigis get <file-id> [file-id...]
16
13
 
17
- 3. Apply the patterns when writing code.
14
+ 2. For EACH recommended file in implement_files, work one at a time:
15
+ a) Fetch one file:
16
+ Run: aigis get <file-id>
17
+ b) Implement the patterns in code
18
+ c) Verify that same file:
19
+ Run: aigis verify <file-id>
20
+ d) Fix FAIL/PARTIAL items until all checks pass
21
+ e) Move to the next file
18
22
 
19
- 4. After writing code, verify:
20
- Run: aigis verify <file-id> [file-id...]
21
-
22
- 5. For HIGH/MEDIUM risk systems, generate compliance docs:
23
+ 3. After all files pass, generate compliance docs:
23
24
  Run: aigis template <template-id>
24
25
 
25
- 6. To audit an existing project:
26
+ IMPORTANT: Do NOT fetch all implement files at once. Work through them one at a time. Implement fully and verify before moving to the next.
27
+
28
+ 4. To audit an existing project:
26
29
  Run: aigis audit --scan
27
30
 
28
31
  Available traits: uses-llm, uses-rag, uses-finetuned, uses-thirdparty-api, is-agentic, is-multimodal, processes-pii, handles-financial, handles-health, handles-proprietary, handles-minors, influences-decisions, accepts-user-input, is-external, is-internal, is-high-volume, generates-code, generates-content, multi-model-pipeline, jurisdiction-eu, jurisdiction-us-regulated, jurisdiction-global
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigis-ai/cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "AI governance guardrails for coding agents. Framework-aligned security and compliance patterns from NIST AI RMF, OWASP Top 10 for LLMs, and ISO/IEC 42001.",
5
5
  "main": "bin/aigis.js",
6
6
  "bin": {