@jovianops/cortex 0.3.0 → 1.0.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.
Files changed (70) hide show
  1. package/.agents/plugins/marketplace.json +7 -7
  2. package/.claude-plugin/marketplace.json +8 -8
  3. package/.claude-plugin/plugin.json +2 -2
  4. package/.cursor-plugin/marketplace.json +3 -3
  5. package/.cursor-plugin/plugin.json +2 -2
  6. package/.github/plugin/marketplace.json +146 -0
  7. package/.github/plugin.json +59 -0
  8. package/AGENTS.md +1 -1
  9. package/GEMINI.md +4 -4
  10. package/README.md +103 -26
  11. package/checksums.json +65 -51
  12. package/evals/skill_evals.json +2 -2
  13. package/gemini-extension.json +2 -2
  14. package/package.json +6 -3
  15. package/packs.json +1 -1
  16. package/plugin.json +2 -2
  17. package/premium-skills/accessibility-auditor/SKILL.md +1 -1
  18. package/premium-skills/api-designer/SKILL.md +1 -1
  19. package/premium-skills/code-migration/SKILL.md +3 -1
  20. package/premium-skills/code-migration/scripts/migration_inventory.py +62 -0
  21. package/premium-skills/db-optimizer/SKILL.md +3 -1
  22. package/premium-skills/db-optimizer/scripts/lint_sql.py +99 -0
  23. package/premium-skills/devops-pipeline/SKILL.md +1 -1
  24. package/premium-skills/docker-generator/SKILL.md +1 -1
  25. package/premium-skills/incident-response/SKILL.md +3 -1
  26. package/premium-skills/incident-response/scripts/incident_timeline.py +78 -0
  27. package/premium-skills/observability-setup/SKILL.md +3 -1
  28. package/premium-skills/observability-setup/scripts/check_slo.py +81 -0
  29. package/premium-skills/performance-profiler/SKILL.md +3 -1
  30. package/premium-skills/performance-profiler/scripts/bench_compare.py +62 -0
  31. package/premium-skills/refactoring-assistant/SKILL.md +3 -1
  32. package/premium-skills/refactoring-assistant/scripts/complexity_scan.py +69 -0
  33. package/premium-skills/release-engineering/SKILL.md +1 -1
  34. package/premium-skills/release-engineering/scripts/semver_bump.py +0 -1
  35. package/premium-skills/security-auditor/SKILL.md +1 -1
  36. package/premium-skills/security-auditor/scripts/secret_scan.py +6 -0
  37. package/premium-skills/terraform-generator/SKILL.md +3 -1
  38. package/premium-skills/terraform-generator/scripts/lint_terraform.py +111 -0
  39. package/premium-skills/unit-test-generator/SKILL.md +3 -1
  40. package/premium-skills/unit-test-generator/scripts/test_skeleton.py +58 -0
  41. package/schemas/checksums.schema.json +42 -0
  42. package/schemas/cortex-lock.schema.json +28 -0
  43. package/schemas/packs.schema.json +31 -0
  44. package/scripts/__pycache__/eval_skills.cpython-312.pyc +0 -0
  45. package/scripts/__pycache__/install_skills.cpython-312.pyc +0 -0
  46. package/scripts/__pycache__/package_skills.cpython-312.pyc +0 -0
  47. package/scripts/bump_version.py +119 -0
  48. package/scripts/cortex.py +253 -14
  49. package/scripts/install_skills.py +63 -13
  50. package/scripts/package_skills.py +1 -1
  51. package/scripts/validate_manifests.py +7 -0
  52. package/scripts/validate_skills.py +0 -1
  53. package/scripts/validate_yaml.py +45 -16
  54. package/scripts/verify_site.py +104 -0
  55. package/skills/academic-assistant/SKILL.md +3 -1
  56. package/skills/academic-assistant/scripts/citation_check.py +54 -0
  57. package/skills/anti-hallucination/SKILL.md +3 -1
  58. package/skills/anti-hallucination/scripts/verify_claims.py +57 -0
  59. package/skills/blender-3d-modeling/SKILL.md +1 -1
  60. package/skills/code-review-assistant/SKILL.md +3 -1
  61. package/skills/code-review-assistant/scripts/diff_review.py +76 -0
  62. package/skills/college-report-card/SKILL.md +1 -1
  63. package/skills/documentation-generator/SKILL.md +1 -1
  64. package/skills/memory-manager/SKILL.md +1 -1
  65. package/skills/python-coding-assistant/SKILL.md +3 -1
  66. package/skills/python-coding-assistant/scripts/check_python_ast.py +77 -0
  67. package/skills/testing-automation/SKILL.md +3 -1
  68. package/skills/testing-automation/scripts/check_test_coverage_map.py +65 -0
  69. package/skills/web-scraper/SKILL.md +3 -1
  70. package/skills/web-scraper/scripts/check_robots.py +50 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: memory-manager
3
3
  description: Persist versioned session memory with staleness checks.
4
- version: 0.3.0
4
+ version: 1.0.0
5
5
  author: Athalla Jovian Maharsa (athallajovian9-cyber), Hermes Agent
6
6
  license: MIT
7
7
  platforms: [linux, macos, windows]
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: python-coding-assistant
3
3
  description: Write typed, linted, and tested Python code reliably.
4
- version: 0.3.0
4
+ version: 1.0.0
5
5
  author: Athalla Jovian Maharsa (athallajovian9-cyber), Hermes Agent
6
6
  license: MIT
7
7
  platforms: [linux, macos, windows]
@@ -28,6 +28,8 @@ Write production-grade, strictly typed, cross-platform Python code with mandator
28
28
 
29
29
  ## How to Run
30
30
 
31
+ > **Bundled Helper Script (`v1.0.0`):** Run `python skills/python-coding-assistant/scripts/check_python_ast.py src/` to audit Python ASTs for mutable default args, bare `except:`, and missing return annotations.
32
+
31
33
  ```bash
32
34
  hermes skills tap add JovianOps/cortex
33
35
  hermes skills install JovianOps/cortex/skills/python-coding-assistant --yes
@@ -0,0 +1,77 @@
1
+ #!/usr/bin/env python3
2
+ """Deterministic Python AST quality & safety auditor for python-coding-assistant skill."""
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import ast
7
+ import json
8
+ import sys
9
+ from pathlib import Path
10
+
11
+
12
+ def audit_python_file(path: Path) -> list[dict]:
13
+ findings: list[dict] = []
14
+ try:
15
+ tree = ast.parse(path.read_text(encoding="utf-8"), filename=path.as_posix())
16
+ except SyntaxError as exc:
17
+ return [{"severity": "CRITICAL", "rule": "syntax-error", "file": path.as_posix(), "line": exc.lineno or 1, "message": str(exc)}]
18
+
19
+ for node in ast.walk(tree):
20
+ if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)):
21
+ for default in list(node.args.defaults) + [d for d in node.args.kw_defaults if d is not None]:
22
+ if isinstance(default, (ast.List, ast.Dict, ast.Set)):
23
+ findings.append({
24
+ "severity": "HIGH",
25
+ "rule": "mutable-default-arg",
26
+ "file": path.as_posix(),
27
+ "line": node.lineno,
28
+ "message": f"Function '{node.name}' uses a mutable default argument; use None instead.",
29
+ })
30
+ if not node.name.startswith("_") and node.returns is None:
31
+ findings.append({
32
+ "severity": "LOW",
33
+ "rule": "missing-return-annotation",
34
+ "file": path.as_posix(),
35
+ "line": node.lineno,
36
+ "message": f"Public function '{node.name}' is missing a return type annotation.",
37
+ })
38
+ elif isinstance(node, ast.ExceptHandler) and node.type is None:
39
+ findings.append({
40
+ "severity": "HIGH",
41
+ "rule": "bare-except",
42
+ "file": path.as_posix(),
43
+ "line": node.lineno,
44
+ "message": "Bare 'except:' catches SystemExit/KeyboardInterrupt; catch a specific exception.",
45
+ })
46
+
47
+ return findings
48
+
49
+
50
+ def main(argv: list[str] | None = None) -> int:
51
+ parser = argparse.ArgumentParser(description="Audit Python files via AST for mutable defaults, bare excepts, and missing return types.")
52
+ parser.add_argument("target", type=Path, help="Python file or directory.")
53
+ parser.add_argument("--strict", action="store_true", help="Also fail on LOW severity findings.")
54
+ parser.add_argument("--json", action="store_true", dest="as_json")
55
+ args = parser.parse_args(argv)
56
+ if not args.target.exists():
57
+ print(f"ERROR: Path not found: {args.target}", file=sys.stderr)
58
+ return 2
59
+
60
+ files = [args.target] if args.target.is_file() else sorted(args.target.rglob("*.py"))
61
+ findings: list[dict] = []
62
+ for fp in files:
63
+ findings.extend(audit_python_file(fp))
64
+
65
+ blocking = [f for f in findings if args.strict or f["severity"] in {"CRITICAL", "HIGH"}]
66
+ if args.as_json:
67
+ print(json.dumps({"files_checked": len(files), "count": len(findings), "findings": findings}, indent=2))
68
+ elif not findings:
69
+ print(f"OK: {len(files)} Python file(s) passed AST audit.")
70
+ else:
71
+ for f in findings:
72
+ print(f"[{f['severity']}] ({f['rule']}) {f['file']}:{f['line']} — {f['message']}")
73
+ return 1 if blocking else 0
74
+
75
+
76
+ if __name__ == "__main__":
77
+ raise SystemExit(main())
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: testing-automation
3
3
  description: Build branch-tested pytest suites with CI coverage gates.
4
- version: 0.3.0
4
+ version: 1.0.0
5
5
  author: Athalla Jovian Maharsa (athallajovian9-cyber), Hermes Agent
6
6
  license: MIT
7
7
  platforms: [linux, macos, windows]
@@ -28,6 +28,8 @@ Design, implement, and wire deterministic `pytest` test suites with branch cover
28
28
 
29
29
  ## How to Run
30
30
 
31
+ > **Bundled Helper Script (`v1.0.0`):** Run `python skills/testing-automation/scripts/check_test_coverage_map.py tests/` to detect assertion-free test functions across a Python test suite.
32
+
31
33
  ```bash
32
34
  hermes skills tap add JovianOps/cortex
33
35
  hermes skills install JovianOps/cortex/skills/testing-automation --yes
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env python3
2
+ """Test-suite completeness & assertion-free test detector for testing-automation skill."""
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import ast
7
+ import json
8
+ import sys
9
+ from pathlib import Path
10
+
11
+
12
+ def has_assertion(func: ast.FunctionDef | ast.AsyncFunctionDef) -> bool:
13
+ for node in ast.walk(func):
14
+ if isinstance(node, ast.Assert):
15
+ return True
16
+ if isinstance(node, ast.Call):
17
+ if isinstance(node.func, ast.Attribute) and (
18
+ node.func.attr.startswith("assert") or node.func.attr in {"raises", "warns", "fail"}
19
+ ):
20
+ return True
21
+ if isinstance(node.func, ast.Name) and node.func.id in {"assert_called", "raises"}:
22
+ return True
23
+ return False
24
+
25
+
26
+ def scan_tests(test_dir: Path) -> list[dict]:
27
+ findings: list[dict] = []
28
+ for fp in sorted(test_dir.rglob("test_*.py")):
29
+ tree = ast.parse(fp.read_text(encoding="utf-8"), filename=fp.as_posix())
30
+ for node in ast.walk(tree):
31
+ if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)) and node.name.startswith("test_"):
32
+ if not has_assertion(node):
33
+ findings.append({
34
+ "severity": "HIGH",
35
+ "rule": "assertion-free-test",
36
+ "file": fp.as_posix(),
37
+ "line": node.lineno,
38
+ "test": node.name,
39
+ "message": f"Test '{node.name}' contains no assert / assertEqual / pytest.raises call.",
40
+ })
41
+ return findings
42
+
43
+
44
+ def main(argv: list[str] | None = None) -> int:
45
+ parser = argparse.ArgumentParser(description="Audit Python test suites for assertion-free tests.")
46
+ parser.add_argument("test_dir", type=Path, help="Directory containing test_*.py files.")
47
+ parser.add_argument("--json", action="store_true", dest="as_json")
48
+ args = parser.parse_args(argv)
49
+ if not args.test_dir.exists():
50
+ print(f"ERROR: Directory not found: {args.test_dir}", file=sys.stderr)
51
+ return 2
52
+
53
+ findings = scan_tests(args.test_dir)
54
+ if args.as_json:
55
+ print(json.dumps({"count": len(findings), "findings": findings}, indent=2))
56
+ elif not findings:
57
+ print(f"OK: All test functions under {args.test_dir} contain explicit assertions.")
58
+ else:
59
+ for f in findings:
60
+ print(f"[{f['severity']}] {f['file']}:{f['line']} — {f['message']}")
61
+ return 1 if findings else 0
62
+
63
+
64
+ if __name__ == "__main__":
65
+ raise SystemExit(main())
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: web-scraper
3
3
  description: Scrape web data politely with strict schema validation.
4
- version: 0.3.0
4
+ version: 1.0.0
5
5
  author: Athalla Jovian Maharsa (athallajovian9-cyber), Hermes Agent
6
6
  license: MIT
7
7
  platforms: [linux, macos, windows]
@@ -27,6 +27,8 @@ Build polite, resilient, and anti-hallucination web scraping pipelines that resp
27
27
 
28
28
  ## How to Run
29
29
 
30
+ > **Bundled Helper Script (`v1.0.0`):** Run `python skills/web-scraper/scripts/check_robots.py robots.txt /path` to verify `robots.txt` allow/disallow rules and crawl-delay compliance offline.
31
+
30
32
  ```bash
31
33
  hermes skills tap add JovianOps/cortex
32
34
  hermes skills install JovianOps/cortex/skills/web-scraper --yes
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env python3
2
+ """Offline robots.txt politeness & URL allowance verifier for web-scraper skill."""
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+ import sys
8
+ from pathlib import Path
9
+ from urllib.robotparser import RobotFileParser
10
+
11
+
12
+ def check_robots(robots_text: str, user_agent: str, urls: list[str]) -> dict:
13
+ rp = RobotFileParser()
14
+ rp.parse(robots_text.splitlines())
15
+ delay = rp.crawl_delay(user_agent)
16
+ results = [{"url": u, "allowed": rp.can_fetch(user_agent, u)} for u in urls]
17
+ blocked = [r["url"] for r in results if not r["allowed"]]
18
+ return {
19
+ "user_agent": user_agent,
20
+ "crawl_delay_seconds": delay,
21
+ "checked": len(results),
22
+ "blocked": blocked,
23
+ "results": results,
24
+ }
25
+
26
+
27
+ def main(argv: list[str] | None = None) -> int:
28
+ parser = argparse.ArgumentParser(description="Check target URLs against a local robots.txt file.")
29
+ parser.add_argument("robots_file", type=Path, help="Path to local robots.txt file.")
30
+ parser.add_argument("urls", nargs="+", help="One or more URLs/paths to test.")
31
+ parser.add_argument("--user-agent", default="*", help="Crawler User-Agent token (default: '*').")
32
+ parser.add_argument("--json", action="store_true", dest="as_json")
33
+ args = parser.parse_args(argv)
34
+ if not args.robots_file.is_file():
35
+ print(f"ERROR: File not found: {args.robots_file}", file=sys.stderr)
36
+ return 2
37
+
38
+ res = check_robots(args.robots_file.read_text(encoding="utf-8"), args.user_agent, args.urls)
39
+ if args.as_json:
40
+ print(json.dumps(res, indent=2))
41
+ else:
42
+ print(f"User-Agent: {res['user_agent']} | Crawl-Delay: {res['crawl_delay_seconds']}s")
43
+ for r in res["results"]:
44
+ status = "ALLOW" if r["allowed"] else "DISALLOW"
45
+ print(f" [{status}] {r['url']}")
46
+ return 1 if res["blocked"] else 0
47
+
48
+
49
+ if __name__ == "__main__":
50
+ raise SystemExit(main())