[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74GJB95WB08HW4QQZS6WRER":3,"skill-same:01M74GJB95WB08HW4QQZS6WRER":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M74GJB95WB08HW4QQZS6WRER","devsecops-pipeline",null,"Design security gates into CI\u002FCD — SAST, DAST, SCA\u002Fdependency, secret, and IaC scanning — with severity thresholds, a triage flow, and noise control.","MohammadBafkar\u002Fpolymath","MohammadBafkar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34940462?v=4","01M74G540TQFZWK6KVAPKFVGNR","Mohammad Bafkar","01M74G541HG19QP9V5DQCJVKYE",0,"MIT","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-security\u002Fskills\u002Fdevsecops-pipeline\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: devsecops-pipeline\ndescription: Design security gates into CI\u002FCD — SAST, DAST, SCA\u002Fdependency, secret, and IaC scanning — with severity thresholds, a triage flow, and noise control.\n---\n\n# devsecops-pipeline\n\n> Security scanning that everyone ignores is theater. The skill is gating on what's exploitable, routing the rest to triage, and keeping false positives low enough that red means stop.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- Adding or rationalizing security scanning in CI\u002FCD.\n- Scanners exist but are noisy, advisory-only, or block on findings nobody fixes.\n- A workflow invokes `polymath-security:devsecops-pipeline`.\n\nNot this when: you are reviewing one diff by hand (`owasp-review`), triaging a specific vuln (`polymath-vuln-scan:triage-vulns`), or assessing dependencies for a release (`supply-chain-review`). This designs the pipeline.\n\n## Inputs\n\n- The stack\u002Flanguages, the CI system, and the current scanning (if any).\n- Risk tolerance and where the app is exposed.\n\n## Procedure\n\n1. **Pick the scanner classes** to the stack:\n   - *SAST* — static code analysis for code-level flaws (injection, unsafe APIs).\n   - *SCA \u002F dependency scanning* — known-vuln (CVE) and license checks on dependencies + lockfile.\n   - *Secret scanning* — pre-commit + CI, history-aware, to catch committed credentials.\n   - *IaC scanning* — Terraform\u002FK8s\u002FDockerfile misconfig (ties to `polymath-iac:policy-as-code`).\n   - *DAST* — runtime scanning against a deployed\u002Fstaging instance.\n   - *Container image scanning* — base-image CVEs.\n2. **Shift left, gate right**: fast checks (secret scan, SCA, SAST-diff) on PR; deeper checks (full SAST, DAST, image scan) on main\u002Fnightly so PRs stay fast.\n3. **Set gate thresholds by severity + exploitability**: block on high\u002Fcritical with a known exploit or reachable path; warn\u002Ftriage on the rest. A wall of med\u002Flow advisories blocks nothing and trains people to ignore red.\n4. **Control noise**: baseline existing findings, suppress with justification + expiry (not forever), and dedupe across tools. Track false-positive rate.\n5. **Triage flow**: every non-gating finding routes to an owner + SLA by severity; integrate with the tracker. Define the break-glass\u002Foverride (who approves, logged).\n6. **Secure the pipeline itself**: least-privilege CI tokens, pinned action\u002Fimage digests, protected branches, signed artifacts\u002Fprovenance (SLSA).\n7. **Measure**: mean-time-to-remediate by severity, escaped-vuln rate, gate pass rate.\n\n## Output\n\n```text\nDevSecOps pipeline: refund-service (GitHub Actions, Python + Terraform)\n\nStage          Scanner (class)             Gate\nPR             gitleaks (secrets)          block on any verified secret\nPR             osv-scanner (SCA)           block: critical\u002Fhigh with a fix available AND reachable; else triage\nPR             semgrep, diff-only (SAST)   block: high-confidence injection\u002Fauth rules; else comment\nPR             checkov (IaC)               block: public buckets, open SGs, wildcard IAM\nmain\u002Fnightly   semgrep full, trivy image   triage queue; block release on critical with known exploit\nnightly        ZAP baseline (DAST)         triage queue\n\nNoise:     baseline at adoption; suppressions need justification + 90-day expiry; dedupe by CVE\u002Frule across tools\nTriage:    owner = CODEOWNERS of the path; SLA critical 7d · high 30d · medium 90d; override by AppSec lead, logged\nPipeline:  OIDC to cloud (no long-lived keys); actions pinned by SHA; protected main; SLSA provenance on images\nMetrics:   MTTR by severity · escaped vulns per quarter · gate pass rate · false-positive rate\n```\n\n## Quality bar\n\n- Gating is by severity AND exploitability\u002Freachability, not raw finding count.\n- Secret + dependency scanning run on every PR; heavier scans don't slow PRs.\n- Suppressions require justification and expiry; false-positive rate is tracked.\n- The CI pipeline itself is hardened (least-privilege tokens, pinned digests).\n","# devsecops-pipeline\n\n> Security scanning that everyone ignores is theater. The skill is gating on what's exploitable, routing the rest to triage, and keeping false positives low enough that red means stop.\n\n**Mode:** analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked `[TBD]` or `[VERIFY]`, never filled in.\n\n## When to use\n\n- Adding or rationalizing security scanning in CI\u002FCD.\n- Scanners exist but are noisy, advisory-only, or block on findings nobody fixes.\n- A workflow invokes `polymath-security:devsecops-pipeline`.\n\nNot this when: you are reviewing one diff by hand (`owasp-review`), triaging a specific vuln (`polymath-vuln-scan:triage-vulns`), or assessing dependencies for a release (`supply-chain-review`). This designs the pipeline.\n\n## Inputs\n\n- The stack\u002Flanguages, the CI system, and the current scanning (if any).\n- Risk tolerance and where the app is exposed.\n\n## Procedure\n\n1. **Pick the scanner classes** to the stack:\n   - *SAST* — static code analysis for code-level flaws (injection, unsafe APIs).\n   - *SCA \u002F dependency scanning* — known-vuln (CVE) and license checks on dependencies + lockfile.\n   - *Secret scanning* — pre-commit + CI, history-aware, to catch committed credentials.\n   - *IaC scanning* — Terraform\u002FK8s\u002FDockerfile misconfig (ties to `polymath-iac:policy-as-code`).\n   - *DAST* — runtime scanning against a deployed\u002Fstaging instance.\n   - *Container image scanning* — base-image CVEs.\n2. **Shift left, gate right**: fast checks (secret scan, SCA, SAST-diff) on PR; deeper checks (full SAST, DAST, image scan) on main\u002Fnightly so PRs stay fast.\n3. **Set gate thresholds by severity + exploitability**: block on high\u002Fcritical with a known exploit or reachable path; warn\u002Ftriage on the rest. A wall of med\u002Flow advisories blocks nothing and trains people to ignore red.\n4. **Control noise**: baseline existing findings, suppress with justification + expiry (not forever), and dedupe across tools. Track false-positive rate.\n5. **Triage flow**: every non-gating finding routes to an owner + SLA by severity; integrate with the tracker. Define the break-glass\u002Foverride (who approves, logged).\n6. **Secure the pipeline itself**: least-privilege CI tokens, pinned action\u002Fimage digests, protected branches, signed artifacts\u002Fprovenance (SLSA).\n7. **Measure**: mean-time-to-remediate by severity, escaped-vuln rate, gate pass rate.\n\n## Output\n\n```text\nDevSecOps pipeline: refund-service (GitHub Actions, Python + Terraform)\n\nStage          Scanner (class)             Gate\nPR             gitleaks (secrets)          block on any verified secret\nPR             osv-scanner (SCA)           block: critical\u002Fhigh with a fix available AND reachable; else triage\nPR             semgrep, diff-only (SAST)   block: high-confidence injection\u002Fauth rules; else comment\nPR             checkov (IaC)               block: public buckets, open SGs, wildcard IAM\nmain\u002Fnightly   semgrep full, trivy image   triage queue; block release on critical with known exploit\nnightly        ZAP baseline (DAST)         triage queue\n\nNoise:     baseline at adoption; suppressions need justification + 90-day expiry; dedupe by CVE\u002Frule across tools\nTriage:    owner = CODEOWNERS of the path; SLA critical 7d · high 30d · medium 90d; override by AppSec lead, logged\nPipeline:  OIDC to cloud (no long-lived keys); actions pinned by SHA; protected main; SLSA provenance on images\nMetrics:   MTTR by severity · escaped vulns per quarter · gate pass rate · false-positive rate\n```\n\n## Quality bar\n\n- Gating is by severity AND exploitability\u002Freachability, not raw finding count.\n- Secret + dependency scanning run on every PR; heavier scans don't slow PRs.\n- Suppressions require justification and expiry; false-positive rate is tracked.\n- The CI pipeline itself is hardened (least-privilege tokens, pinned digests).\n",{"name":5,"description":7},"main","23f6e21841a39580c9da2b5ec941f39dda17cd86","plugins\u002Fpolymath-security\u002Fskills\u002Fdevsecops-pipeline","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath","https:\u002F\u002Fgithub.com\u002FMohammadBafkar","2026-10-29 18:34:59",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add MohammadBafkar\u002Fpolymath --skill devsecops-pipeline",{"tool":36,"command":37},"bunx","bunx skills add MohammadBafkar\u002Fpolymath --skill devsecops-pipeline",{"tool":39,"command":40},"pnpm","pnpm dlx skills add MohammadBafkar\u002Fpolymath --skill devsecops-pipeline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-security\u002Fskills\u002Fdevsecops-pipeline\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"routing.yaml","REFERENCE","参考文档",447,"https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-security\u002Fskills\u002Fdevsecops-pipeline\u002Frouting.yaml",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M74GN87EBRHM9N87M7AP1HDD","runbook","Write or refresh an operational runbook for an alert\u002Fsymptom; structured as TL;DR + Pre-checks + Steps + Verification + Rollback + Escalation.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frunbook\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M74GN5GPKEC1JEKP2DFQNEQJ","rfc","Draft a lightweight design RFC to docs\u002Frfcs\u002F\u003Cslug>.md; Summary, Motivation, Detailed design, Drawbacks, Alternatives, Unresolved questions. A proposal to debate, not a recorded decision (adr).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Frfc\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M74GN2F4CWPMV4X09TG4E304","editorial-pass","Review and tighten prose in a Markdown artifact for a target tone (terse, formal, friendly) without dropping information; preserve quotations and load-bearing constraints.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Feditorial-pass\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M74GMZWGYMZ37C4DYGT6P23G","architecture-review-facilitation","Run an architecture review as a process — entry criteria, reviewer checklist, decision log, and follow-up actions — pairing the design artifact with a red-team pass.","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-review-facilitation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M74GMXVX0YX3ETDXS527XDGM","architecture-doc","Write a C4-style architecture document; System Context + Containers (+ Components when interesting) with mermaid diagrams. Describes structure, not a decision (adr) or proposal (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Farchitecture-doc\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M74GMVG1WSMCK066S3KE6V5K","adr","Write an Architecture Decision Record (Michael Nygard format) to docs\u002Fadrs\u002FNNNN-\u003Cslug>.md; frontmatter validated by the ADR artifact schema. Records a made decision, not a proposal to debate (rfc).","https:\u002F\u002Fgithub.com\u002FMohammadBafkar\u002Fpolymath\u002Fblob\u002Fmain\u002Fplugins\u002Fpolymath-writing\u002Fskills\u002Fadr\u002FSKILL.md",[],[]]