self-improving-security
FreeRuns bundled scriptsNot checkedCaptures vulnerabilities, misconfigurations, access control violations, compliance gaps, incident response patterns, and threat intelligence to enable…
by jose-compu1,357 installs in other catalogsAbout this skill
Self-Improving Security Skill
Log security learnings, incidents, and compliance findings to markdown files for continuous improvement. Security-specific entries track vulnerabilities, misconfigurations, access violations, and incident response outcomes. Mature patterns get promoted to security runbooks, hardening checklists, incident response playbooks, and compliance matrices.
CRITICAL: Sensitive Data Redaction
NEVER log actual secrets, credentials, tokens, private keys, API keys, passwords, connection strings, or PII in any learning or incident entry. Always redact sensitive values before writing. Use placeholders:
| Sensitive Data | Redacted Form |
|---|---|
| API keys | REDACTED_API_KEY |
| Passwords | REDACTED_PASSWORD |
| Access tokens (JWT, bearer, session) | REDACTED_TOKEN |
| Private keys | REDACTED_PRIVATE_KEY |
| Connection strings | REDACTED_CONNECTION_STRING |
| PII (emails, SSNs) | REDACTED_PII |
| IP addresses (internal) | REDACTED_INTERNAL_IP |
| Certificate contents | REDACTED_CERT |
When logging an incident involving exposed secrets, describe what kind of secret was exposed, where it appeared, and the remediation taken — never the secret itself.
First-Use Initialisation
Before logging anything, ensure the .learnings/ directory and files exist in the project or workspace root. If any are missing, create them:
mkdir -p .learnings
[ -f .learnings/LEARNINGS.md ] || printf "# Security Learnings\n\nVulnerabilities, misconfigurations, compliance gaps, and security insights.\n\n**Categories**: vulnerability | misconfiguration | access_violation | compliance_gap | incident_response | threat_intelligence\n**Areas**: authentication | authorization | encryption | network | endpoint | compliance | cloud\n\n---\n" > .learnings/LEARNINGS.md
[ -f .learnings/SECURITY_INCIDENTS.md ] || printf "# Security Incidents Log\n\nVulnerability discoveries, access violations, secrets exposure, and active security incidents.\n\n---\n" > .learnings/SECURITY_INCIDENTS.md
[ -f .learnings/FEATURE_REQUESTS.md ] || printf "# Security Feature Requests\n\nSecurity capabilities and hardening improvements requested or identified.\n\n---\n" > .learnings/FEATURE_REQUESTS.md
Never overwrite existing files. This is a no-op if .learnings/ is already initialised.
If you want automatic reminders or setup assistance, use the opt-in hook workflow described in Hook Integration.
No credentials or access tokens are required by this skill.
Quick Reference
| Situation | Action |
|---|---|
| CVE found in dependency | Log to .learnings/SECURITY_INCIDENTS.md with category vulnerability |
| Secrets exposed in logs/output | Log to .learnings/SECURITY_INCIDENTS.md — REDACT the secret first |
| Access violation or unauthorized access | Log to .learnings/SECURITY_INCIDENTS.md with category access_violation |
| Misconfigured permissions/policies | Log to .learnings/LEARNINGS.md with category misconfiguration |
| Compliance audit failure | Log to .learnings/LEARNINGS.md with category compliance_gap |
| Incident response executed | Log to .learnings/LEARNINGS.md with category incident_response |
| Threat intelligence gathered | Log to .learnings/LEARNINGS.md with category threat_intelligence |
| Security feature needed | Log to .learnings/FEATURE_REQUESTS.md |
| Hardening improvement identified | Log to .learnings/LEARNINGS.md with category misconfiguration |
| SSL/TLS or certificate issue | Log to .learnings/SECURITY_INCIDENTS.md with area encryption |
| CORS misconfiguration | Log to .learnings/LEARNINGS.md with area network |
| Authentication bypass found | Log to .learnings/SECURITY_INCIDENTS.md with area authentication |
| Similar to existing entry | Link with **See Also**, consider priority bump |
| Broadly applicable security pattern | Promote to hardening checklist, runbook, or playbook |
| Proven incident workflow | Promote to AGENTS.md (OpenClaw workspace) |
| Security tool gotcha | Promote to TOOLS.md (OpenClaw workspace) |
| Security principles | Promote to SOUL.md (OpenClaw workspace) |
OpenClaw Setup (Recommended)
OpenClaw is the primary platform for this skill. It uses workspace-based prompt injection with automatic skill loading.
Installation
Via ClawdHub (recommended):
clawdhub install self-improving-security
Manual:
git clone https://github.com/jose-compu/self-improving-security.git ~/.openclaw/skills/self-improving-security
Manual clone is optional. Check out a reviewed tag or commit before use. Do not install an unpinned default branch into a shared environment.
Workspace Structure
OpenClaw injects these files into every session:
~/.openclaw/workspace/
├── AGENTS.md # Incident response workflows, delegation patterns
├── SOUL.md # Security principles, assume-breach mindset
├── TOOL
Install self-improving-security in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the self-improving-security skill do?
Captures vulnerabilities, misconfigurations, access control violations, compliance gaps, incident response patterns, and threat intelligence to enable continuous security improvement. Use when: (1) A CVE or vulnerability is discovered, (2) Secrets are exposed in logs or output, (3) Access control violations or unauthorized access attempts occur, (4) Compliance audit findings or gaps are identified, (5) Security misconfigurations are found in infrastructure or applications, (6) Incident response procedures are executed or improved, (7) Threat intelligence is gathered from advisories or pen test results.
How do I install the self-improving-security skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the self-improving-security skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic