用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill fix-security命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | fix-security |
| description | Apply security fixes based on scan findings Use when this capability is needed. |
| metadata | {"author":"agairola"} |
Apply fixes for security vulnerabilities identified by external scanners.
This skill is invoked during the remediation loop when external security scanners (Semgrep, ASH) have identified vulnerabilities. It reads the security context and applies targeted fixes.
state/security-context.mdCheck state/security-context.md for the specific findings that need to be addressed.
For each finding, identify:
Use the appropriate fix pattern for each vulnerability type:
# Before (VULNERABLE)
API_KEY = "sk-abc123..."
# After (SECURE)
import os
API_KEY = os.getenv('API_KEY')
# Before (VULNERABLE)
query = f"SELECT * FROM users WHERE id = {user_id}"
cursor.execute(query)
# After (SECURE)
query = "SELECT * FROM users WHERE id = ?"
cursor.execute(query, (user_id,))
# Before (VULNERABLE)
os.system(f"ls {user_input}")
# After (SECURE)
import subprocess
import shlex
subprocess.run(['ls', shlex.quote(user_input)], check=True)
# Before (VULNERABLE)
with open(f"data/{filename}") as f:
content = f.read()
# After (SECURE)
import os
safe_path = os.path.join("data", os.path.basename(filename))
if not os.path.abspath(safe_path).startswith(os.path.abspath("data")):
raise ValueError("Invalid path")
with open(safe_path) as f:
content = f.read()
// Before (package.json)
{
"dependencies": {
"lodash": "4.17.15" // Vulnerable version
}
}
// After
{
"dependencies": {
"lodash": "^4.17.21" // Patched version
}
}
After applying fixes:
/self-check to validate/fix-security
This skill reads from state/security-context.md and applies fixes to the identified issues.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.