AgentsConfigHelper / rules
Cursor rule2 starsChanged 3 months agoMITView on GitHub
Dependency & supply chain security (pinning, SBOM, provenance, integrity, private registries)
We split this codeguard-0-supply-chain-security.mdc into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Very specific: line 20
Use deterministic builds: npm ci (not npm install) in CI/CD.
- Distinctive: line 21
Avoid install scripts that execute on install when possible.
- Very specific: line 22
Use .npmrc to scope private registries.
- Distinctive: line 37
Document risk decisions; escalate acceptance to appropriate authority with business justification.
≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: Dependency & supply chain security (pinning, SBOM, provenance, integrity, private registries) globs: **/*.dockerfile,**/*.js,**/*.jsx,**/*.mjs,**/*.yaml,**/*.yml,Dockerfile*,docker-compose* version: 1.0.1 --- rule_id: codeguard-0-supply-chain-security ## Dependency & Supply Chain Security Control third‑party risk across ecosystems, from selection and pinning to provenance, scanning, and rapid response. ### Policy and Governance - Maintain allow‑listed registries and scopes; disallow direct installs from untrusted sources. - Require lockfiles and version pinning; prefer digest pinning for images and vendored assets. - Generate SBOMs for apps/images; store with artifacts; attest provenance (SLSA, Sigstore). ### Package Hygiene (npm focus applicable to others) - Regularly audit (`npm audit`, ecosystem SCA) and patch; enforce SLAs by severity. - Use deterministic builds: `npm ci` (not `npm install`) in CI/CD; maintain lockfile consistency. - Avoid install scripts that execute on install when possible; review for risk. - Use `.npmrc` to scope private registries; avoid wildcard registries; enable integrity verification. - Enable account 2FA for publishing ### Development Practices - Minimize dependency footprint; remove unused packages; prefer stdlib/first‑party for trivial tasks. - Protect against typosquatting and protestware: pin maintainers, monitor releases, and use provenance checks. - Hermetic builds: no network in compile/packaging stages unless required; cache with authenticity checks. ### CI/CD Integration - SCA, SAST, IaC scans in gates; fail on criticals; require approvals for overrides with compensating controls. - Sign artifacts; verify signatures at deploy; enforce policy in admission. ### Vulnerability Management - For patched vulnerabilities: test and deploy updates; document any API breaking changes. - For unpatched vulnerabilities: implement compensating controls (input validation, wrappers) based on CVE type; prefer direct dependency fixes over transitive workarounds. - Document risk decisions; escalate acceptance to appropriate authority with business justification. ### Incident Response - Maintain rapid rollback; isolate compromised packages; throttle rollouts; notify stakeholders. - Monitor threat intel feeds (e.g., npm advisories); auto‑open tickets for critical CVEs. ### Implementation Checklist - Lockfiles present; integrity checks on; private registries configured. - SBOM + provenance stored; signatures verified pre‑deploy. - Automated dependency updates with tests and review gates. - High‑sev vulns remediated within SLA or mitigated and documented.
Trending
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Other versions2 projects use a version of this.
Word for word · 2
- cisco-ai-defense/skill-scanner★ 2.7k100% same
- shrav89/skill-scanner★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 3,978 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/codeguard-0-additional-cryptography.mdcCursor rule
- .cursor/rules/codeguard-0-api-web-services.mdcCursor rule
- .cursor/rules/codeguard-0-authentication-mfa.mdcCursor rule
- .cursor/rules/codeguard-0-authorization-access-control.mdcCursor rule
- .cursor/rules/codeguard-0-client-side-web-security.mdcCursor rule
- .cursor/rules/codeguard-0-cloud-orchestration-kubernetes.mdcCursor rule
- .cursor/rules/codeguard-0-data-storage.mdcCursor rule
- .cursor/rules/codeguard-0-devops-ci-cd-containers.mdcCursor rule
- .cursor/rules/codeguard-0-file-handling-and-uploads.mdcCursor rule
- .cursor/rules/codeguard-0-framework-and-languages.mdcCursor rule
- .cursor/rules/codeguard-0-iac-security.mdcCursor rule
- .cursor/rules/codeguard-0-input-validation-injection.mdcCursor rule
- .cursor/rules/codeguard-0-logging.mdcCursor rule
- .cursor/rules/codeguard-0-mobile-apps.mdcCursor rule
- .cursor/rules/codeguard-0-privacy-data-protection.mdcCursor rule
- .cursor/rules/codeguard-0-safe-c-functions.mdcCursor rule
- .cursor/rules/codeguard-0-session-management-and-cookies.mdcCursor rule
- .cursor/rules/codeguard-0-xml-and-serialization.mdcCursor rule
- .cursor/rules/codeguard-1-crypto-algorithms.mdcCursor rule
- .cursor/rules/codeguard-1-digital-certificates.mdcCursor rule
- .cursor/rules/codeguard-1-hardcoded-credentials.mdcCursor rule
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.

