用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Hack23/cia --skill change-management命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | change-management |
| description | Secure change control: RFC process, testing requirements, rollback procedures per ISO 27001 A.8.9, A.8.32 |
This skill provides systematic guidance for implementing secure change control within the CIA platform, ensuring all changes are documented, tested, approved, and reversible per ISO 27001 A.8.9 (Configuration Management) and A.8.32 (Change Management).
Apply this skill when:
Do NOT skip for:
Definition: Low-risk, routine changes with documented procedures and automated security validation.
Examples:
Requirements:
GitHub Actions Workflow:
name: Standard Change Validation
# Pinned: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
on:
pull_request:
paths:
- '**.md'
- 'docs/**'
- 'test/**'
jobs:
validate-standard-change:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Validate documentation
run: |
echo "Validating standard change..."
# Markdown linting
npx markdownlint-cli2 "**/*.md"
- name: Check for security issues
run: |
# Ensure no secrets in documentation
if grep -r "password\|secret\|key" --include="*.md" .; then
echo "ERROR: Potential secrets in documentation"
exit 1
fi
- name: Auto-approve standard change
if: success()
run: echo
Definition: Medium-risk changes requiring CEO review and explicit approval before implementation.
Examples:
.github/agents/*.md, .github/copilot-mcp*.json)Requirements:
Request for Change (RFC) Template:
# RFC: [Change Title]
## Change Information
- **RFC ID**: RFC-2025-001
- **Requester**: Developer Name
- **Date**: 2025-02-10
- **Priority**: Normal
- **Category**: Infrastructure
## Business Justification
Why is this change needed? What business problem does it solve?
## Technical Description
Detailed technical description of the change.
## Risk Assessment
| Risk Category | Level | Mitigation |
|---------------|-------|------------|
| Security | Medium | Security review completed |
| Availability | Low | Blue-green deployment |
| Data Integrity | Low | Database backup before migration |
## Testing Plan
- [ ] Unit tests pass (80% coverage minimum)
- [ ] Integration tests pass
- [ ] Security scanning clean (CodeQL, OWASP)
- [ ] Performance testing completed
- [ ] Staging environment validation
## Rollback Procedure
1. Identify rollback trigger conditions
2. Steps to revert change
3. Data recovery procedures (if applicable)
4. Estimated rollback time: 15 minutes
## Implementation Schedule
- **Planned Start**: 2025-02-15 10:00 UTC
- **Estimated Duration**: 2 hours
- **Planned Completion**: 2025-02-15 12:00 UTC
## Approval
- [ ] CEO Review
- [ ] CEO Approval
- [ ] Deployment Authorization
**CEO Signature**: ____________ : __
Definition: Critical changes required to restore service availability or address active security incidents.
Triggers:
Authorization:
Emergency Change Workflow:
sequenceDiagram
participant Inc as 🚨 Incident
participant CEO as 👨💼 CEO
participant Impl as 🔧 Implementation
participant Monitor as 📊 Monitoring
participant Review as 📋 Post-Review
Inc->>CEO: 1. Incident Detected
CEO->>CEO: 2. Assess Severity
CEO->>CEO: 3. Authorize Emergency Change
CEO->>Impl: 4. Implement Fix
Impl->>Monitor: 5. Verify Fix Applied
Monitor->>CEO: 6. Confirm Resolution
CEO->>CEO: 7. Document Change (4h deadline)
CEO->>Review: 8. Schedule Post-Review (24h)
Review->>Review: 9. Lessons Learned
gitGraph
commit id: "main"
branch feature/new-analysis-tool
checkout feature/new-analysis-tool
commit id: "Implement analysis logic"
commit id: "Add unit tests"
commit id: "Update documentation"
checkout main
merge feature/new-analysis-tool tag: "PR #123 - CEO Approved"
commit id: "Deploy to production"
# .github/branch-protection-config.yml
# Branch protection for main branch
branch-protection:
main:
required_status_checks:
strict: true
contexts:
- "build"
- "test"
- "security-scan"
- "codeql-analysis"
required_pull_request_reviews:
required_approving_review_count: 1
dismiss_stale_reviews: true
require_code_owner_reviews: true
require_last_push_approval: true
restrictions:
users:
- "pethers" # CEO - only authorized deployer
teams: []
enforce_admins: true
require_linear_history: true
allow_force_pushes: false
allow_deletions: false
#!/bin/bash
# Database schema rollback script
set -euo pipefail
BACKUP_DATE=${1:-$(date +%Y%m%d)}
BACKUP_FILE="/backups/database-${BACKUP_DATE}.sql"
rollback_database() {
echo "🔄 Starting database rollback..."
# 1. Create pre-rollback backup
echo "📦 Creating pre-rollback backup..."
pg_dump -h $DB_HOST -U $DB_USER -d cia_database > "/backups/pre-rollback-$(date +%Y%m%d-%H%M%S).sql"
# 2. Stop application services
echo "🛑 Stopping application services..."
systemctl stop cia-application
# 3. Restore from backup
echo "📥 Restoring database from backup..."
psql -h $DB_HOST -U $DB_USER -d cia_database < "${BACKUP_FILE}"
# 4. Verify restoration
echo "✅ Verifying database restoration..."
psql -h $DB_HOST -U $DB_USER -d cia_database -c "\
SELECT COUNT(*) as table_count FROM information_schema.tables \
WHERE table_schema = 'public';"
# 5. Restart application
echo "🚀 Restarting application services..."
systemctl start cia-application
# 6. Verify application health
echo "🏥 Checking application health..."
curl -f http://localhost:8080/actuator/health || {
echo "❌ Application health check failed"
exit 1
}
}
rollback_database
| Metric | Target | Measurement | Review Frequency |
|---|---|---|---|
| Change Success Rate | >95% | Deployments without rollback | Weekly |
| Mean Time to Deploy | <2 hours | From approval to production | Monthly |
| Rollback Rate | <5% | Changes requiring rollback | Monthly |
| Emergency Change Rate | <2% | Emergency vs total changes | Monthly |
| Change Lead Time | <7 days | RFC to deployment | Quarterly |
| Security Gate Pass Rate | 100% | First-time security scan pass | Weekly |
Control Objective: Configuration of systems and networks documented and controlled.
Implementation:
Control Objective: Changes to information processing facilities and systems controlled.
Implementation:
PR.IP-3: Configuration change control processes in place
PR.IP-4: Backups of information conducted, maintained, tested
CIS Control 3.14: Log Configuration Changes
CIS Control 4.1: Establish and Maintain Secure Configuration Process