Huntable-CTI-Studio: Skill for Claude Code

.claude/skills/create-migration/SKILL.md

create-migration is a skill for Claude Code from dfirtnt/Huntable-CTI-Studio. It costs 109 tokens per session (809 once invoked), scanned A, original, MIT.

A project-specific way to change the database structure, such as adding a table or column. It uses standalone Python scripts instead of Alembic, a commonly used database-migration tool.

In plain words
What is it for?
Use it to update the ORM models, write and apply an idempotent migration, and verify a schema change against the development database.
Why use it?
It keeps the live database, application models, and test database aligned. The scripts are safe to run again without repeating an already-applied change.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions AGENTS.md.

This is dfirtnt/Huntable-CTI-Studio's own configuration. It tells Claude Code how to work on Huntable-CTI-Studio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Huntable-CTI-Studio configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/dfirtnt/Huntable-CTI-Studio/main/.claude/skills/create-migration/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dfirtnt/Huntable-CTI-Studio

Made for: Claude Code.

Wrote 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.

agentmods badge for create-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/dfirtnt/huntable-cti-studio/create-migration/github.svg)](https://agentmods.dev/skills/dfirtnt/huntable-cti-studio/create-migration)
Your own site
<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.

agentmods 80×15 button for create-migration

Your own site · 80×15
<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>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash 9fc6c4b452e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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.

.claude/skills/create-migration/SKILL.md · 60 lines

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

  1. Update the ORM model first. src/database/models.py is a contract source of truth (see AGENTS.md). The test DB is built from these models by scripts/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 update src/config/workflow_config_schema.py and check whether the 9 quickstart presets in config/presets/AgentConfigs/quickstart/ need the new field.

  2. Write scripts/migrate_add_<name>.py following the canonical example. Non-negotiables, because operators re-run these scripts freely:

    • Idempotent: check information_schema.columns (or to_regclass for tables) and skip silently if already applied.
    • DATABASE_URL from 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.
  3. Apply to the dev database. The live DB runs in the cti_postgres container: DATABASE_URL=... python scripts/migrate_add_<name>.py Verify directly afterward: docker exec cti_postgres psql -U cti_user -d cti_scraper -c "\d <table>"

Read the full file on GitHub · 60 lines

Changes

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.

  1. 10d ago First seen · 60 lines · 109 tokens per session scan A 9fc6c4b452e4

Subscribe to this mod's changes

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.

Related

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…

26zl/cybersec-toolkit · 81 tokens

Blue Team Defense & Hardening

System hardening, detection engineering, security baseline monitoring, patch management, defense-in-depth architecture, and security posture improvement.

Masriyan/Claude-Code-CyberSecurity-Skill · 30 tokens

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…

26zl/cybersec-toolkit · 79 tokens

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.

26zl/cybersec-toolkit · 44 tokens

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…

26zl/cybersec-toolkit · 96 tokens

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…

26zl/cybersec-toolkit · 108 tokens