icdev-maintain
Run maintenance audit — scan dependencies, check CVEs, compute score, remediate, track SLAs. Use when performing routine dependency audits or remediating vulnerabilities.
- License 许可
- Apache-2.0
- 所属仓库
- icdev-ai/icdev
- 最近更新
- 2026-11-15
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- icdev-maintain
- description
- Run maintenance audit — scan dependencies, check CVEs, compute score, remediate, track SLAs. Use when performing routine dependency audits or remediating vulnerabilities.
- allowed-tools
- Bash, Read, Write, Edit, Glob, Grep
02 资源文件 2
- 参考文档references/auth-setup.md7.2 KB
- 参考文档references/curl-examples.md3.8 KB
03 SKILL.md 正文
$icdev-maintain
What This Does
Runs the full maintenance audit lifecycle for a project:
- Scan Dependencies — Inventory all deps across all detected languages
- Check Vulnerabilities — Check deps against advisory databases (pip-audit, npm audit, cargo-audit, etc.)
- Compute Score — Maintenance score (0-100) based on SLA compliance + staleness
- Remediate — Auto-update vulnerable dependencies (if --auto)
- Generate Report — CUI-marked audit report with trend analysis
Steps
1. Scan Dependencies
Run the CLI command or use MCP tool scan_dependencies MCP tool from icdev-maintenance:
- project_id: from arguments
- offline: from flag (for air-gapped environments)
- Inventories all deps with version, latest version, days stale
python tools/maintenance/dependency_scanner.py --project-id <id> [--offline]
2. Check Vulnerabilities
Run the CLI command or use MCP tool check_vulnerabilities MCP tool from icdev-maintenance:
- project_id: from arguments
- Checks all deps against CVE databases
- Maps severity to SLA deadlines: critical=48hr, high=7d, medium=30d, low=90d
python tools/maintenance/vulnerability_checker.py --project-id <id>
3. Run Maintenance Audit
Run the CLI command or use MCP tool run_maintenance_audit MCP tool from icdev-maintenance:
- project_id: from arguments
- Computes maintenance score, SLA compliance, trend analysis
- Generates CUI-marked markdown report
python tools/maintenance/maintenance_auditor.py --project-id <id> [--offline]
4. Remediate (if --auto or --dry-run)
Run the CLI command or use MCP tool remediate MCP tool from icdev-maintenance:
- project_id: from arguments
- auto: true if --auto flag set
- dry_run: true if --dry-run flag set
- Updates dependency files, creates remediation branches, runs tests
python tools/maintenance/remediation_engine.py --project-id <id> [--auto] [--dry-run]
5. Output Summary
Display:
- Languages detected and scanned
- Total dependencies (by language)
- Outdated dependencies count
- Vulnerable dependencies (by severity)
- SLA compliance percentage
- Overdue SLA items (critical/high)
- Maintenance score: XX/100
- Gate status: PASS/WARN/FAIL
- Remediation actions taken (if --auto)
- Report file path
- Next steps
Example
$icdev-maintain abc123-uuid --auto
$icdev-maintain abc123-uuid --dry-run
$icdev-maintain abc123-uuid --offline
Error Handling
- If project not found: list available projects
- If no dependencies detected: warn and suggest checking project directory
- If package registry unreachable: switch to offline mode automatically
- If remediation fails: rollback, report failure, continue with next
- If SLA overdue: flag as blocking in gate evaluation
04 同仓库更多 Skills
icdev
Work inside an ICDEV project from any coding harness -- the icdev-unified MCP tools, the `icdev` CLI, kanban claim/release, worktree-first branching, and where ICDEV's pre-tool guard lives. Use when a repo has CLAUDE.md/AGENTS.md naming ICDEV, a kanban task id (e.g. omx-dx-02), or you need an ICDEV tool.
icdev-worktree
Create and manage isolated git worktrees for parallel ICDEV™ task execution. Use when invoking /icdev-worktree.
icdev-test
Run the full test suite (pytest unit + behave BDD) with coverage reporting and compliance tracking. Use when validating code quality and coverage before a release.
icdev-status
Display comprehensive project status including compliance, security, deployment, and agent health. Use when checking overall project health or preparing a status report.
icdev-simulate
Run Digital Program Twin simulations and generate COAs for requirements. Use when simulating program scenarios or generating courses of action.
icdev-secure
Run comprehensive security scanning (SAST, dependency audit, secret detection, container scan). Use when scanning code or containers for security vulnerabilities before deployment.