Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

secure-development-policy安全发展政策

Agent Skill

secure-development-policy 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

297

周安装

12

GitHub Stars

7

下载量

93
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:secure-development-policy(安全发展政策)
来源仓库:https://github.com/hack23/riksdagsmonitor
仓库路径:skills/secure-development-policy
安装命令:
npx skills add https://github.com/hack23/riksdagsmonitor --skill secure-development-policy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hack23/riksdagsmonitor --skill secure-development-policy

简介

secure-development-policy 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在开发流程中辅助安全策略的实施与协作。
  • 通过 npx skills add 命令从指定仓库安装并使用该技能。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

🛡️ Secure Development Policy Skill

🎯 Purpose Statement

Apply Hack23 AB's Secure Development Policy to demonstrate how security-by-design creates competitive advantages through systematic DevSecOps implementation.

Reference: Hack23 Secure Development Policy

This skill provides comprehensive guidance for implementing all phases of the secure development lifecycle with clear, actionable requirements following STYLE_GUIDE.md icon standards.


🔄 Secure Development Lifecycle (SDLC) - All Phases

📋 Phase 1: Planning & Design

Clear Requirements:

  • ✅ Complete project classification per Classification Framework
  • ✅ Document CIA triad levels (Confidentiality, Integrity, Availability)
  • ✅ Define RTO/RPO aligned with business impact
  • ✅ Create SECURITY_ARCHITECTURE.md with Mermaid C4 diagrams
  • ✅ Perform STRIDE threat modeling documented in THREAT_MODEL.md
  • ✅ Complete risk assessment integrated with Risk Register
  • ✅ Calculate security investment ROI based on classification

Deliverables Checklist:

  • README.md includes "Project Classification" section
  • SECURITY_ARCHITECTURE.md created with current state
  • FUTURE_SECURITY_ARCHITECTURE.md created with roadmap
  • THREAT_MODEL.md includes STRIDE analysis
  • Risk assessment documented and registered
  • Cost-benefit analysis approved by CEO

💻 Phase 2: Development

Clear Requirements:

  • ✅ Follow OWASP Top 10 secure coding standards
  • ✅ Implement language-specific security best practices
  • ✅ Require security-focused code review for all changes
  • ✅ Apply data classification to all code assets
  • ✅ Use GitHub secrets, never hardcode credentials
  • ✅ Implement secret rotation procedures
  • ✅ Use parameterized queries (no SQL injection)
  • ✅ Validate and sanitize all inputs
  • ✅ Encode outputs appropriately for context
  • ✅ Implement proper error handling (no information disclosure)

Code Review Security Checklist:

  • No hardcoded secrets or credentials
  • Input validation on all external data
  • Output encoding prevents XSS
  • Parameterized queries prevent injection
  • Authentication/authorization properly implemented
  • Error messages don't leak sensitive info
  • Logging captures security events
  • Dependencies are approved and scanned
  • Code follows least privilege principle
  • Sensitive data encrypted at rest and in transit

🧪 Phase 3: Security Testing

Clear Requirements:

🔬 SAST (Static Application Security Testing)

  • ✅ SonarCloud integration on every commit
  • ✅ Quality gate must pass (no Critical/High vulnerabilities)
  • ✅ Security hotspots reviewed and resolved
  • ✅ Code coverage ≥80% lines, ≥70% branches

📦 SCA (Software Composition Analysis)

  • ✅ Automated dependency scanning (Dependabot/Renovate)
  • ✅ SBOM generation (CycloneDX or SPDX format)
  • ✅ License compliance via FOSSA scanning
  • ✅ Vulnerability remediation per classification SLAs:

- Critical: 24 hours - High: 7 days - Medium: 30 days - Low: 90 days

⚡ DAST (Dynamic Application Security Testing)

  • ✅ OWASP ZAP scanning in staging environment
  • ✅ API security testing (authentication, authorization, input validation)
  • ✅ Annual penetration testing for High/Critical projects

🔍 Secret Scanning

  • ✅ GitHub secret scanning enabled
  • ✅ Pre-commit hooks prevent secret commits
  • ✅ Immediate rotation for any exposed secrets

🔒 Test Data Protection

  • NEVER use production data in test environments
  • ✅ Anonymize/pseudonymize/mask all test data
  • ✅ Securely delete test data after use
  • ✅ Restrict test environment access (least privilege)

🚀 Phase 4: Deployment

Clear Requirements:

  • ✅ Automated CI/CD with security gates
  • ✅ All GitHub Actions pinned to SHA commits
  • ✅ Harden-runner enabled with egress auditing
  • ✅ Least privilege permissions in workflows
  • ✅ Manual approval required for production
  • ✅ Deployment checklist completed
  • ✅ Security metrics and monitoring configured
  • ✅ Rollback plan documented and tested

GitHub Actions Security Pattern:

permissions:
  contents: read  # Least privilege default

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: step-security/harden-runner@<SHA>
        with:
          egress-policy: audit

      - uses: actions/checkout@<SHA>

      # Pin ALL actions to SHA, not tags

🔧 Phase 5: Maintenance & Operations

Clear Requirements:

  • ✅ Active vulnerability management per Vulnerability Management
  • ✅ Security metrics tracked per Security Metrics
  • ✅ Regular dependency updates (automated via Dependabot)
  • ✅ Security patches applied per classification SLAs
  • ✅ Incident response integration per Incident Response Plan
  • ✅ Annual security review and threat model update
  • ✅ Quarterly dependency and license audits
  • ✅ Continuous monitoring and alerting

Monitoring Requirements:

  • Security event logging enabled
  • SIEM integration configured
  • Vulnerability alerts routed to security team
  • Performance metrics track security impact
  • Compliance dashboards updated real-time

🤖 AI-Augmented Development Controls

Clear Requirements for ALL AI-assisted development:

🔐 AI as Proposal Generator Only

  • ✅ All AI outputs require human review and approval
  • ✅ AI cannot bypass CI/CD, security gates, or approvals
  • ✅ Human developer retains accountability for all changes
  • ✅ AI cannot weaken security controls
  • ✅ AI cannot autonomously deploy to production

📋 Mandatory PR Review Process

  • ✅ All AI-assisted code goes through standard PR workflow
  • ✅ PR description documents AI assistance used
  • ✅ Security gates enforced (no exceptions for AI)
  • ✅ Human reviewer verifies security controls intact
  • ✅ Testing requirements unchanged (80%+ coverage)

🔧 Curator-Agent Governance

  • ✅ Changes to .github/agents/*.md require CEO approval
  • ✅ Changes to .github/copilot-mcp*.json require CEO approval
  • ✅ Changes to .github/workflows/copilot-setup-steps.yml require CEO approval
  • ✅ Treat as Normal Changes per Change Management
  • ✅ Document risk assessment for capability expansion
  • ✅ All new integrations require security review

🛡️ Security & Audit Requirements

  • ✅ Agents operate with least-privilege tool access
  • ✅ MCP configurations under change control
  • ✅ All agent activities logged and auditable
  • ✅ Capability expansion requires security review
  • ✅ Quarterly agent ecosystem security audit

🎯 Unit Test Coverage Requirements

Clear Requirements:

  • ✅ Minimum 80% line coverage
  • ✅ Minimum 70% branch coverage
  • ✅ Tests run on every commit and PR
  • ✅ UnitTestPlan.md documented in repository
  • ✅ Public coverage reports via badges
  • ✅ Historical coverage tracking (no regression)
  • ✅ Coverage reports published to public URL

Reference Implementations:


🌐 End-to-End Testing Requirements

Clear Requirements:

  • ✅ All critical user journeys covered
  • ✅ E2ETestPlan.md documented in repository
  • ✅ Public Mochawesome/Cypress reports
  • ✅ Cross-browser testing (Chrome, Firefox, Safari)
  • ✅ Performance assertions within tests
  • ✅ Authentication/authorization flows tested
  • ✅ Error handling and edge cases covered

Reference Implementations:


🕷️ Threat Modeling Requirements

Clear Requirements per Threat Modeling Policy:

📋 Required Documentation

  • THREAT_MODEL.md in repository root
  • ✅ STRIDE framework application (all 6 categories)
  • ✅ MITRE ATT&CK technique mapping
  • ✅ Attack tree analysis with probability/impact
  • ✅ Threat agent classification (external/internal/supply chain)
  • ✅ Quantitative risk assessment with business impact
  • ✅ Security control mapping with effectiveness validation

🔄 Maintenance Requirements

  • ✅ Threat model created during design phase
  • ✅ Updated for all architectural changes
  • ✅ Annual comprehensive review
  • ✅ Quarterly update cycle
  • ✅ Incident-driven updates after security events

Reference Implementations:


🎖️ Public Evidence Requirements

Clear Requirements per STYLE_GUIDE.md:

Required Badges in README.md

  • ✅ OpenSSF Scorecard (target: ≥7.0)
  • ✅ CII Best Practices (minimum: Passing)
  • ✅ SLSA Level 3 attestation
  • ✅ SonarCloud Quality Gate (must be "Passed")
  • ✅ Code Coverage badge (≥80%)
  • ✅ License badge (OSI-approved)
  • ✅ Threat Model link badge

Example Badge Configuration:

[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/ORG/REPO/badge)](https://scorecard.dev/viewer/?uri=github.com/ORG/REPO)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/ID/badge)](https://bestpractices.coreinfrastructure.org/projects/ID)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=ORG_REPO&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=ORG_REPO)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=ORG_REPO&metric=coverage)](https://sonarcloud.io/summary/new_code?id=ORG_REPO)
[![Threat Model](https://img.shields.io/badge/Threat_Model-Documentation-blue)](https://github.com/ORG/REPO/blob/main/THREAT_MODEL.md)

📋 Master Verification Checklist

Use this comprehensive checklist before ANY deployment:

Phase 1: Planning & Design ✅

  • Project classification complete (CIA + RTO/RPO + Business Impact)
  • SECURITY_ARCHITECTURE.md created with C4 diagrams
  • FUTURE_SECURITY_ARCHITECTURE.md created with roadmap
  • THREAT_MODEL.md includes STRIDE + MITRE ATT&CK
  • Attack trees documented with probability/impact
  • Risk assessment registered
  • Cost-benefit analysis approved

Phase 2: Development ✅

  • OWASP Top 10 mitigations implemented
  • Language-specific security standards followed
  • Code review completed with security focus
  • Asset classification applied
  • No hardcoded secrets (verified with secret scanning)
  • Input validation implemented
  • Output encoding implemented
  • Error handling doesn't leak sensitive info
  • Logging captures security events

Phase 3: Testing ✅

  • SAST passed (SonarCloud quality gate green)
  • SCA clean (all vulnerabilities remediated per SLA)
  • DAST completed (OWASP ZAP scan clean)
  • Secret scanning clean
  • Test data properly anonymized
  • Unit test coverage ≥80% lines, ≥70% branches
  • E2E tests cover all critical paths
  • UnitTestPlan.md documented
  • E2ETestPlan.md documented

Phase 4: Deployment ✅

  • CI/CD security gates passed
  • All GitHub Actions pinned to SHA
  • Harden-runner enabled
  • Least privilege permissions
  • Manual approval obtained for production
  • Deployment checklist complete
  • Security metrics configured
  • Rollback plan tested

Phase 5: Operations ✅

  • Vulnerability management active
  • Security metrics monitored
  • Dependency updates automated
  • Incident response integrated
  • Annual review scheduled
  • Quarterly audits scheduled

AI Controls ✅

  • Human review for all AI outputs
  • No autonomous deployments
  • PR documentation complete
  • Agent permissions least-privilege
  • MCP config under change control
  • Audit trail enabled

Documentation ✅

  • SECURITY_ARCHITECTURE.md
  • FUTURE_SECURITY_ARCHITECTURE.md
  • THREAT_MODEL.md
  • SECURITY.md (vulnerability disclosure)
  • WORKFLOWS.md (CI/CD documentation)
  • UnitTestPlan.md
  • E2ETestPlan.md
  • CRA-ASSESSMENT.md (if applicable)
  • README includes classification section
  • All required badges displayed

Public Evidence ✅

  • OpenSSF Scorecard ≥7.0
  • CII Best Practices (Passing+)
  • SLSA Level 3 attestation
  • Quality Gate passed
  • Coverage ≥80%
  • License compliance (FOSSA clean)

📚 Authoritative References

- Threat Modeling - Vulnerability Management - Classification Framework - Change Management - Incident Response Plan - Security Metrics


💡 Key Takeaways

  • 🛡️ Security by Design: Build security in from the start, not bolt on later
  • 🌟 Transparency: Public evidence through badges and documentation
  • 🏷️ Classification-Driven: All decisions aligned with project classification
  • 🔄 Continuous Improvement: Regular reviews, updates, and learning from incidents
  • 🤖 Human Accountability: AI assists, humans decide and approve
  • 📊 Evidence-Based: Every security claim backed by public, verifiable proof
  • Comprehensive Coverage: ALL 5 SDLC phases with clear, actionable requirements

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.4%
按下载量换算36

Claude

29.39%
按下载量换算27

Cursor

20.23%
按下载量换算19

Gemini CLI

8.6%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills