Borrowing it
Nothing to install: this file belongs to dfirtnt/Huntable-CTI-Studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dfirtnt/Huntable-CTI-Studio/main/.claude/skills/create-migration/SKILL.mdgit clone --depth 1 https://github.com/dfirtnt/Huntable-CTI-StudioWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dfirtnt/huntable-cti-studio/create-migration)<a href="https://agentmods.dev/skills/dfirtnt/huntable-cti-studio/create-migration"><img src="https://agentmods.dev/badge/skills/dfirtnt/huntable-cti-studio/create-migration/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dfirtnt/huntable-cti-studio/create-migration"><img src="https://agentmods.dev/badge/skills/dfirtnt/huntable-cti-studio/create-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00109 | $0.00809 |
| Opus 5 | $0.00055 | $0.00404 |
| Sonnet 5 | $0.00022 | $0.00162 |
| Haiku 4.5 | $0.00011 | $0.00081 |
Grade A, and why
create-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create Migration
This repo does not use Alembic for migrations, even though alembic appears in
pyproject.toml. The house pattern is a standalone, idempotent Python script in
scripts/migrate_add_<name>.py, applied by hand against the live dev database.
The test database schema is generated directly from the ORM models, not from
migration scripts — which is why step 1 below matters most.
Canonical example
Read scripts/migrate_add_osdetection_fallback_enabled.py before writing anything.
It is the reference implementation: docstring with Why / Adds / Idempotent / Usage
sections, DATABASE_URL from the environment, postgresql+asyncpg:// →
postgresql:// swap, an information_schema existence check so re-runs are
harmless, logging, and a proper exit code.
Workflow
-
Update the ORM model first.
src/database/models.pyis a contract source of truth (see AGENTS.md). The test DB is built from these models byscripts/init_test_schema.py(async_db_manager.create_tables()), so a schema change that only exists in a migration script will silently diverge from every test run. If the change touches workflow configuration, also updatesrc/config/workflow_config_schema.pyand check whether the 9 quickstart presets inconfig/presets/AgentConfigs/quickstart/need the new field. -
Write
scripts/migrate_add_<name>.pyfollowing the canonical example. Non-negotiables, because operators re-run these scripts freely:- Idempotent: check
information_schema.columns(orto_regclassfor tables) and skip silently if already applied. DATABASE_URLfrom env — never hardcode credentials.- Docstring explains why the change exists, not just what it adds.
- Sensible column default so existing rows/installs keep prior behavior.
- Idempotent: check
-
Apply to the dev database. The live DB runs in the
cti_postgrescontainer:DATABASE_URL=... python scripts/migrate_add_<name>.pyVerify directly afterward:docker exec cti_postgres psql -U cti_user -d cti_scraper -c "\d <table>"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 60 lines · 109 tokens per session scan A 9fc6c4b452e4
create-migration is a skill published in the GitHub repository dfirtnt/Huntable-CTI-Studio (11 stars, last pushed 2d ago), licensed MIT. It adds 109 tokens to every session and 809 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
configuring-windows-event-logging-for-detection
Configures Windows Event Logging with advanced audit policies to generate high-fidelity security events for threat detection and forensic investigation. Use when enabling audit policies for logon events, process creation, privilege use, and object access to feed SIEM detection rules. Activates for requests involving…
Blue Team Defense & Hardening
System hardening, detection engineering, security baseline monitoring, patch management, defense-in-depth architecture, and security posture improvement.
analyzing-ransomware-encryption-mechanisms
Analyzes encryption algorithms, key management, and file encryption routines used by ransomware families to assess decryption feasibility, identify implementation weaknesses, and support recovery efforts. Covers AES, RSA, ChaCha20, and hybrid encryption schemes. Activates for requests involving ransomware…
analyzing-slack-space-and-file-system-artifacts
Examine file system slack space, MFT entries, USN journal, and alternate data streams to recover hidden data and reconstruct file activity on NTFS volumes.
conducting-external-reconnaissance-with-osint
Conducts external reconnaissance using Open Source Intelligence (OSINT) techniques to map an organization's external attack surface without directly interacting with target systems. The tester gathers information from public sources including DNS records, certificate transparency logs, search engines, social media…
conducting-mobile-app-penetration-test
Conducts penetration testing of iOS and Android mobile applications following the OWASP Mobile Application Security Testing Guide (MASTG) to identify vulnerabilities in data storage, network communication, authentication, cryptography, and platform-specific security controls. The tester performs static analysis of…