security-check
Skill12 starsChanged 7 days agoMITView on GitHub
Whole-repo security invariants audit: checks every invariant in this skill's numbered list (first: no GET endpoint mutates data under a cookie session) and reports OK or violations with file:line. Read-only, never fixes anything. Run when explicitly asked (/security-check).
34 other projects use a version of this.
Adopted by
Most recently taken up by
- flegaspi700/pmo-project-standardizationtheir own version, first seen Nov 16, 2026
- fatihkan/baditheir own version, first seen Nov 16, 2026
- Kuan-AI-com/agent-skillstheir own version, first seen Nov 15, 2026
- gdhub-io/character-forge-mcptheir own version, first seen Nov 15, 2026
- cecewu3/agent-trading-skillstheir own version, first seen Nov 8, 2026
- simonasrazm/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use fix-bug, write-tests and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JetBrainsSkillfix-bug
End-to-end bug fix workflow for the Exposed project. Accepts a GitHub issue (#NUMBER), YouTrack issue (EXPOSED-NUMBER), or YouTrack URL (https://youtrack.jetbrains.com/issue/EXPOSED-NUMBER). Fetches the issue, creates a failing reproducer test, commits on a new branch, implements the fix, validates, and opens a PR. Use this skill whenever the user wants to fix a bug from an issue tracker, mentions a EXPOSED issue number, or references a GitHub issue to fix.
Also in 3 projects that use this
SentrySkillwrite-tests
Write tests following project conventions. Use when adding new tests or modifying existing ones.
Also in 3 projects that use this
genomewalkerSkilllearn
Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 6 projects that use this
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- alibaba/loongcollector★ 2.2ksame name
- gocronx-team/gocron★ 788same name
- TermiX-official/cryptoclaw★ 100same name
- igmarin/rails-agent-skills★ 26same name
- aws-samples/sample-agentic-coding-harness-benchmarks★ 20same name
- Benkapner/claude-code-basecamp★ 17same name
- DailybotHQ/deepworkplan-website★ 16same name
- YehudaFrankel/clankbrain★ 16same name
- fatihkan/badi★ 8same name
- Nirusan/claude-config★ 7same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adlc-scriptingSkill
- architect-assistantSkill
- big-prod-e2e-testSkill
- ceSkill
- changelogSkill
- check-fix-buildSkill
- db-state-updateSkill
- git-branchingSkill
- github-issuesSkill
- hook-debuggingSkill
- migrations-data-integritySkill
- morning-checkSkill
- nodejs-scriptSkill
- pocSkill
- post-impl-check-client-component-sizeSkill
- post-impl-check-cost-calc-no-autoSkill
- post-impl-check-indexesSkill
- post-impl-check-kb-actualSkill
- post-impl-check-migrationsSkill
- post-impl-check-performance-no-autoSkill
- post-impl-check-security-no-autoSkill
- server-e2e-testsSkill
- session-kb-suggestSkill
- sql-reviewSkill
- ui-componentsSkill
- update-install-instructionsSkill
- use-playwrightSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 26 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read-only: Never edit, fix, refactor or delete anything — not even an "obvious" one-line fix.
- Distinctive: line 17
Check each invariant independently.
- Very specific: line 18
Every violation must cite file:line (repo-relative path, line of the offending decorator / statement) and one sentence on *why* it violates …
- Distinctive: line 23
When unsure whether a code path writes (e.g.
- Distinctive: line 51
Read the handler body and every service method it calls (one level deep, deeper when a callee name does not make it obvious).
- Very specific: line 84
If the caller asked for it, the dated summary is appended to the task's requirements.md Notes.
“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are auditing the whole repository against a fixed list of security invariants. Unlike
post-impl-check-security-no-auto (which looks only at one task's changed files), this check
always scans the full codebase, so it also catches regressions introduced outside any task.
Invariants to check: $ARGUMENTS (empty = all invariants below, in order).
Rules
- Read-only. Never edit, fix, refactor or delete anything — not even an "obvious" one-line fix. Report only. Fixing a violation is a separate task the user decides on.
- Check each invariant independently; one invariant's failure does not stop the others.
- Every violation must cite
file:line(repo-relative path, line of the offending decorator / statement) and one sentence on why it violates the invariant. - A listed allowed exception is reported as an exception, not a violation — but verify it still matches its description (same route, same reason). An exception whose code changed so that the stated reason no longer holds IS a violation.
- When unsure whether a code path writes (e.g. it calls a service you have not opened), open the service method and follow it one level further before deciding. Do not guess from method names.
Invariants
The list is extensible: add a new numbered section below, using the same four parts (Rule, Why, How to find candidates, Allowed exceptions). Never renumber existing invariants — reports and task notes refer to them by number.
1. No GET endpoint mutates data under a cookie session
Rule. A GET handler reachable with the browser session cookie (connect.sid, i.e. guarded by
SessionAuthGuard / AdminGuard / AutoIdentifyGuard, or unguarded) must not change server state:
no DB insert/update/delete/upsert, no req.logIn/session writes, no deletion or rewriting of
files or job rows the user cares about.
Why. CSRF protection is SameSite=Lax only (see user-docs/security-hardening.md).
Lax still sends the session cookie on cross-site top-level GET navigations, so a mutating GET
can be triggered by any external page the logged-in user visits. A mutating GET found here is
converted to POST; if an old hook or installer version calls it, the old GET is kept and listed
as an exception.
How to find candidates.
- Grep
@Get(inserver/src(skip*.spec.ts). Today that is ~79 handlers across ~21 controllers. - For each handler, note the guards on the handler and its
@Controllerclass. Handlers guarded only byApiKeyAuthGuard(X-Api-Keyheader) are not reachable with the cookie — record them as "not cookie-authenticated" and move on. - Read the handler body and every service method it calls (one level deep, deeper when a callee
name does not make it obvious). Flag:
.insert(,.update(,.delete(,onConflictDo*, rawINSERT/UPDATE/DELETESQL,req.logIn,req.session[...] =,fs.writeFile*,fs.unlink/fs.rmof anything that is not a temp file the same request created. .set(/.delete(on an in-memoryMap/Set,createHmac(...).update(and similar are not state changes — ignore them.
Allowed exceptions (agreed when preparing the open-source release):
| Endpoint | Where | Why it is allowed |
GET /static/artisyn-hooks-installer.tgz?v= | server/src/installer/installer.controller.ts (downloadInstaller) | Public, no cookie needed; writes only the max-wins latest-hook-version.json cache; called by old hooks/installers, so it cannot become a POST. |
GET /api/v1/auth/azure | server/src/auth/auth.controller.ts (azure) | Starts Azure OAuth: stores a fresh state/nonce in the caller's own session and redirects. |
GET /api/auth/callback | server/src/auth/azure/azure-callback.controller.ts (callback) | OAuth redirect target (must be a GET); logs in / auto-provisions only after the state and nonce from the session match. |
GET /api/v1/auth/me (Mode 1) | server/src/auth/auth.controller.ts (me, AutoIdentifyGuard) | Mode 1 auto-identify req.logIn — localhost-only, and Mode 1 has no auth model to protect. |
GET /api/v1/admin/logs-archive | server/src/admin/admin-panel.controller.ts (downloadLogsArchive) | Creates and then deletes its own temp archive; no persistent state changes. |
Token-authorised flows (email confirmation, password reset) are SPA routes that POST a one-time
token — they are not GET mutations.
Report format
One block per invariant checked:
### Invariant <N> — <title>: OK | <k> violation(s)
- VIOLATION <file>:<line> — <METHOD path> — <what it writes, one sentence>
- EXCEPTION <file>:<line> — <METHOD path> — <which allowed exception, still valid: yes/no>
- NOTE <file>:<line> — <anything checked and deliberately out of scope, e.g. API-key-only GET that writes>
Scanned: <number of candidates inspected>End with a one-line summary: security-check <YYYY-MM-DD>: <passed>/<checked> invariants OK, <n> violation(s).
If the caller asked for it, the dated summary is appended to the task's requirements.md Notes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

