meltedinhex/analyst-ai-pack / templates/skill-template
skill-template
VerifiedOne to three sentences describing what this skill does and the conditions under which an agent should activate it. Start with a verb, name the tools and artifacts involved, and end with the trigger phrasing (e.g. "Activates for requests involving ...").
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.3 KB |
| references/api-reference.md | markdown | 880 B |
| scripts/analyst.py | script | 2.0 KB |
scripts/analyst.py
View on GitHub#!/usr/bin/env python3
"""Runnable tooling for the <skill-name> skill.
Replace this module with original code that automates the skill's workflow. Keep it
self-contained, dependency-light, and safe to run. Document every public function in
``references/api-reference.md``.
Authoring rules (see CONTRIBUTING.md):
- Original code only. Do not lift or reword scripts from other skill repositories.
- Lint with ``ruff`` before committing.
- Fail safe: never execute a malware sample on the host; operate on files, logs, or
telemetry only.
"""
from __future__ import annotations
import argparse
import hashlib
import json
import sys
from pathlib import Path
def compute_hashes(filepath: str | Path) -> dict[str, str | int]:
"""Return MD5/SHA-1/SHA-256 and size for a file, for identification only."""
data = Path(filepath).read_bytes()
return {
"md5": hashlib.md5(data).hexdigest(), # noqa: S324 - identification, not security
"sha1": hashlib.sha1(data).hexdigest(), # noqa: S324
"sha256": hashlib.sha256(data).hexdigest(),
"size": len(data),
}
def analyze(target: str | Path) -> dict:
"""Entry point for the skill's core logic. Replace with real implementation."""
target = Path(target)
if not target.exists():
raise FileNotFoundError(target)
return {
"target": str(target),
"hashes": compute_hashes(target),
"findings": [],
}
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(description="AnalystAIPack skill tool")
parser.add_argument("target", help="path to the file or artifact to analyze")
parser.add_argument("--json", action="store_true", help="emit JSON output")
args = parser.parse_args(argv)
result = analyze(args.target)
if args.json:
print(json.dumps(result, indent=2))
else:
for key, value in result.items():
print(f"{key}: {value}")
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |