/tstack:security-scanfrom tstack
Find security vulnerabilities in code the user owns, then fix and verify them: a whole project, or one diff handed over by diff-review. This skill MUST be used when the user asks for a security scan, audit or hardening, and for the security part of a diff review. It SHOULD be used before a first public release and after adding authentication, payment, file upload or anything that takes outside input. It MUST fetch the current CWE Top 25, OWASP and related lists at scan time and MUST NOT rely on remembered editions. It MUST NOT be used against systems or code the user does not own or is not authorized to test. Triggers on: 資安掃描、資安審查、漏洞掃描、找漏洞、補漏洞、security scan、security audit
Ships in tstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Find and fix security vulnerabilities in code the user develops. Checks come from two sources: the latest public lists fetched at scan time (CWE Top 25, the OWASP lists and others), and this skill's vulnerability catalog. Every finding needs a code location and a reproducible trigger. Verify again after the fix.
There are two modes:
| Mode | When to use | Scope |
|---|---|---|
| Whole project | The user asks for a scan or a health check | The whole project or the specified directories |
| diff | Handed over by diff-review, or the user wants the security of a diff, PR or MR checked | The diff, plus the existing code its inputs and outputs pass through |
This skill covers vulnerabilities only. Logic errors, implementation defects, performance and maintainability are reviewed by diff-review. Errors with an unknown cause go to investigate.
| Item | How to determine it |
|---|---|
| Mode | diff mode when handed over by diff-review or when the user names a diff, PR or MR; whole-project mode otherwise |
| Scan scope | Whole-project mode: the directories, services or features the user specifies; the whole project when none is specified. diff mode: the specified diff and comparison base; when unclear, determine them from the git state and the target branch of the PR or MR |
| Authorization | The code is the user's own, or the user states they are authorized to test it. When this cannot be confirmed, ask first and do not start the scan |
| Whether to fix directly | When the user says to patch or fix, fix. When the user only says to scan or check, deliver the report first and fix after confirmation. diff mode only reports by default |
| Available test environment | Find how to start the project locally from its configuration and documentation. When no isolated environment is available, replace dynamic verification with static evidence and say so in the report |
Following the rules in references/list-sources.md, fetch the latest edition of each applicable list from its entry page, and record each list's name, version, URL and fetch date. Handle and record lists that cannot be fetched according to that file's rules.
List the following, each with file locations. This inventory decides what the later steps check.
Do all three tracks, then merge the results and remove duplicates.
4a Tool scan. Follow references/scan-tools.md: determine the applicable tools from the files the project actually has, confirm one by one whether each is usable, and run every usable one. Do not install a tool that is not installed yourself; list it in the report's recommendations. Tool output is a lead; confirm every item against the code.
4b List check. Every item from the lists fetched in step 2 needs a conclusion: finding; checked with no finding (state which locations were examined); or not applicable (state the basis).
4c Catalog check. Take the attacker's side: assume every input is controlled by someone trying to break the system, and actively look for paths that bypass authentication, escalate privileges or abuse a flow, not only confirm that a protection exists. Go through the vulnerability catalog section by section. For each entry point from step 3, trace the input all the way to where it is used (query, command, file, response, outbound request) and confirm whether that section's protections are present along the way. Do not only search for dangerous function names: missing authorization, logic flaws and race conditions cannot be found by search; read the flow.
When the scope is large, you may dispatch subagents by section or by module, following agent-delegation. Each dispatch covers a set of files that does not overlap with the others, and its prompt states that files MUST NOT be modified and secret values MUST NOT be output. Reports include file line numbers and the basis for each judgment; the main agent adopts them only after checking them against the code.
Confirm each candidate finding before listing it:
When no workable trigger path is found, it is not a vulnerability; it may go under "Hardening recommendations".
Levels are P0 to P3 from the core Findings and Severity. Criteria for security findings:
| Level | Criteria |
|---|---|
| P0 | Without logging in, or with only an ordinary account, an attacker can execute arbitrary code, obtain or tamper with large amounts of data, take over other people's accounts, or escalate to admin |
| P1 | An attacker can access or modify other users' data or bypass payment or a critical flow, or the required conditions are easy to meet |
| P2 | Requires specific conditions or victim interaction; impact is limited to a single user or to limited data |
| P3 | Very small impact, or requires several conditions that are not easily true at the same time |
For dependency vulnerabilities, confirm two more things: whether the project actually calls the affected functionality, and whether the CVE is on the CISA KEV list. Raise one level when it is on the list.
Handle findings in order from P0 to P3. Fix following software-engineering-guidelines:
Follow steps 1 to 7, with these differences:
The report contains, in order:
NEEDS INVESTIGATION items in the same format.The report goes in the conversation, or in the pull request when the scan is for one. A finding that is not fixed now is recorded as the core's Engineering Documents sets, and the report is written to a dated file as the same section sets only when the user asks to keep it. Both put unfixed vulnerabilities into the repository: when the repository is public or its visibility is unknown, say so and get the user's confirmation before writing either.
| Mistake | Correct approach |
|---|---|
Searching only for keywords like eval and exec and calling it done | Trace the data flow from every entry point; authorization and logic problems require reading the flow |
| Using an old ranking from memory | Fetch the current edition from the entry page every time |
| Marking all of dozens of dependency audit results as P0 | Confirm for each one whether the project uses the affected functionality |
| Finding one instance and fixing only that one | Search for the same pattern and fix all of them at once |
| Treating a secret as fixed once it is deleted from the code | Ask the user to revoke and rotate it |
| Trying attack requests in production | Reproduce only locally or in a test environment |
| In diff mode, looking only at the lines in the diff | Trace sources and destinations beyond the diff; vulnerabilities are often at the boundary between the change and existing code |
| Not rerunning the reproduction steps after fixing | Every fix needs evidence that it fails before the fix and passes after it |
Run a security scan on this project, fix the vulnerabilities you find, and verify after fixing.
Scan only the api/ directory, give me the report first, and do not change the code.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timlai666/tstack --plugin tstack13 skills in this plugin
/acceptance-reviewCheck finished work against what was originally asked: every requirement is matched to a result that was actually exercised, and the original problem is shown to be solved. This skill MUST be used before reporting substantial work as done or handing it back, and when the user asks whether the result meets the request. Work this conversation produced MUST be checked by an independent reviewer who is not given the implementer's summary. It MUST NOT be used outside software engineering work, and MUST NOT replace diff-review, security-scan or test-and-fix. Triggers on: 驗收、有沒有做到、有沒有符合需求、有沒有解決問題、做完了嗎、acceptance review/agent-delegationRules and script for handing work to a subagent or another CLI (OpenCode, Antigravity, Copilot, Codex, Claude). This skill MUST be loaded before dispatching any subagent or CLI, even for a small task, and before changing an existing API's name, signature, usage or behavior. New delegation MUST go through scripts/dispatch.py and its task-local levels, and MUST NOT skip tools based on earlier turns. It MUST NOT be applied to work that is not software engineering. A main agent MUST NOT dispatch through its own CLI. A dispatched worker MUST NOT apply this skill or delegate further. Triggers on: subagent、派工、分工、antigravity、agy、opencode、copilot、codex、誰來寫、用哪個模型、介面變更Other plugins' skills for the same job