Huntable-CTI-Studio: Skill for Cursor

.cursor/skills/fix-codeql-notes/SKILL.md

fix-codeql-notes is a skill for Cursor from dfirtnt/Huntable-CTI-Studio. It costs 77 tokens per session (2,114 once invoked), scanned A, original, MIT.

A guide for fixing simple CodeQL notes in Python, where CodeQL is a tool that finds potential code problems.

In plain words
What is it for?
Use it when CodeQL reports the specified unused-import, repeated-import, or unused-variable alerts in Python files.
Why use it?
It removes unused imports, repeated imports, and unused variables with small targeted edits, reducing static-analysis noise.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is dfirtnt/Huntable-CTI-Studio's own configuration. It tells Cursor 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/.cursor/skills/fix-codeql-notes/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dfirtnt/Huntable-CTI-Studio

Made for: Cursor.

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 fix-codeql-notes

README.md
[![agentmods](https://agentmods.dev/badge/skills/dfirtnt/huntable-cti-studio/fix-codeql-notes.svg)](https://agentmods.dev/skills/dfirtnt/huntable-cti-studio/fix-codeql-notes)
Your own site
<a href="https://agentmods.dev/skills/dfirtnt/huntable-cti-studio/fix-codeql-notes"><img src="https://agentmods.dev/badge/skills/dfirtnt/huntable-cti-studio/fix-codeql-notes.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,114 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00077 $0.02114
Opus 5 $0.00039 $0.01057
Sonnet 5 $0.00015 $0.00423
Haiku 4.5 $0.00008 $0.00211

Measured 7d ago against content hash 4c344d356e6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

fix-codeql-notes 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 7d 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.

.cursor/skills/fix-codeql-notes/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fix CodeQL Notes (Unused Imports / Variables)

Resolves the following CodeQL rule IDs — all note severity, all mechanical fixes:

Rule ID What triggers it
py/unused-import import X or from M import X where X is never referenced
py/repeated-import The same module imported twice (second import is redundant)
py/unused-local-variable A local variable is assigned but its value is never read
py/unused-global-variable A module-level variable is defined but never referenced

Step 0 — Gather the alert list

Pull the current open alerts from GitHub (do not guess):

gh api repos/{owner}/{repo}/code-scanning/alerts \
  --paginate \
  -q '.[] | select(.state=="open") | select(.rule.id | test("py/unused-import|py/repeated-import|py/unused-local-variable|py/unused-global-variable")) | {rule: .rule.id, file: .most_recent_instance.location.path, start_line: .most_recent_instance.location.start_line, message: .most_recent_instance.message.text}'

Group alerts by file. Process one file at a time (read → edit → verify).


Step 1 — For each file: Read it, then apply the right fix

Read the full file before editing anything. Understand context — an unused name might be inside a try/except guard, a TYPE_CHECKING block, or __all__.

Rule: py/unused-import and py/repeated-import

Fix decision tree (in order):

  1. Is the import in __all__? → Keep it. Not a real unused import; CodeQL can be wrong here.
  2. Is the import inside if TYPE_CHECKING: block? → Keep it; it exists only for type annotations.
  3. Is the import in a try/except ImportError guard and is it truly never referenced anywhere in the file? → Delete the entire from M import X line (or the name from a multi-name import).
  4. Repeated import (py/repeated-import): Delete whichever occurrence is farther from the actual use site. Typically the earlier one is the stale copy.
  5. Plain unused import with no special context: Delete the import line. If it's part of a multi-name import (from M import A, B, C), remove only the unused names; reformat the line if it becomes a single name.

Read the full file on GitHub · 150 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. 7d ago First seen · 150 lines · 77 tokens per session scan A 4c344d356e6a

Subscribe to this mod's changes

fix-codeql-notes is a skill published in the GitHub repository dfirtnt/Huntable-CTI-Studio (11 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 2,114 once invoked, about $0.0004 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

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

building-detection-rule-with-splunk-spl

Build effective detection rules using Splunk Search Processing Language (SPL) correlation searches to identify security threats in SOC environments.

26zl/cybersec-toolkit · 35 tokens

analyzing-supply-chain-malware-artifacts

Investigate supply chain attack artifacts including trojanized software updates, compromised build pipelines, and sideloaded dependencies to identify intrusion vectors and scope of compromise.

26zl/cybersec-toolkit · 42 tokens

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

ctf-rev

Use when solving a CTF reverse engineering challenge — stripped binaries, packed binaries, anti-debug, custom VMs, .NET/Java decomp, Android dex, obfuscated JS, ELF/PE/Mach-O analysis. Provides workflow and tool ordering from the reversing module. Triggers on "ctf rev", "reversing", "reverse engineer", "decompile"…

26zl/cybersec-toolkit · 86 tokens

ctf-pwn

Use when solving binary exploitation / pwn CTF challenges — buffer overflows, ROP, format strings, heap, kernel pwn. Provides a decision tree, exploit primitive catalog, and uses pwntools via the runscript(venv="pwntools") MCP path. Triggers on "ctf pwn", "binary exploit", "rop", "buffer overflow", "format string"…

26zl/cybersec-toolkit · 90 tokens