security-scan
Lightweight security hygiene for agent configs (skills/hooks/MCP/settings). Use before enabling automation, after config changes, and before release.
- License 许可
- MIT
- 所属仓库
- rexleimo/aios
- 最近更新
- 2026-11-07
- Stars
- ★ 62
- Forks
- 11
01 前言 Front Matter
- name
- security-scan
- tags
- [ "general", "security" ]
- scopes
- [ "global", "project" ]
- clients
- [ "codex", "claude", "gemini", "opencode", "hermes", "workbuddy", "pi", "zcode", "qoder" ]
- description
- Lightweight security hygiene for agent configs (skills/hooks/MCP/settings). Use before enabling automation, after config changes, and before release.
- repoTargets
- [ "codex", "claude", "gemini", "opencode", "hermes", "workbuddy", "pi", "zcode", "qoder" ]
- defaultInstall
- { "global": true, "project": false }
- installCatalogName
- security-scan
03 SKILL.md 正文
Security Scan
Trigger
Use this skill when:
- Onboarding a new repo with agent automation enabled
- Editing skills, hooks, MCP config, or client settings
- Before publishing/releasing changes that affect other projects
Mandatory Privacy Rule (No Bypass)
- For config-like files that may contain keys/tokens/passwords, do not read raw file content directly.
- Always read through Privacy Guard first:
aios privacy read --file <path>(preferred)- or
node scripts/privacy-guard.mjs read --file <path>
- If Privacy Guard reports guard-disabled for sensitive files, enable it first:
aios privacy enable
Quick Path
- Ensure strict mode is on:
aios privacy enforce-on - Run the repo verifier:
aios doctor(preferred when shell integration is installed). - Or run:
scripts/doctor-security-config.sh/scripts/doctor-security-config.ps1.
What To Check (Minimum)
-
Secrets
- No API keys/tokens/cookies committed to git.
- Prefer env vars + local-only config files ignored by git.
- Use Privacy Guard read output when inspection is required.
- If scanning finds secrets, rotate them, then remove from history if needed.
-
Tool/permission scope
- Avoid wildcard allowlists (when the client supports allow/deny config).
- Prefer least-privilege tool access and explicit denies for destructive actions.
-
Hooks safety
- Avoid
curl | bash, silent error suppression, and untrusted string interpolation. - Treat any network egress from hooks as high risk; make it opt-in.
- Avoid
-
MCP / supply chain
- Prefer pinned versions and explicit installs over ad-hoc
npxexecution. - Review MCP servers for network + filesystem access and log behavior.
- Prefer pinned versions and explicit installs over ad-hoc
Output Discipline
- Never paste secret values into chat logs or commits.
- Capture only redacted findings + exact file paths and remediation steps.
04 同仓库更多 Skills
versioning-by-impact
Use when completing a task and deciding whether repository changes require a semantic version bump and changelog entry before commit/push.
verification-loop
Evidence-before-assertions workflow. Use before claiming work is done, before release, and after any behavior change in scripts/skills/MCP.
typesafe-ai
Build AI-powered software with TypeSafe: small units of AI intelligence you can use like programming primitives. Its System One models, including Jev, turn natural language and application state into typed judgments and probabilities that code can combine. Use when a feature needs programmable common sense, when brainstorming what AI could make possible in an app, or when an LLM prompt-and-parse step could become a structured decision. Applications include routing, ranking, extraction, verification, and interactive experiences; these are starting points, not the limits. Read live docs and cookbooks to find useful patterns and discover new combinations.
skill-opt-lite
Train and optimize skill documents using the SkillOpt methodology — the agent acts as both target and optimizer, running tasks, reflecting on failures, proposing edits, and validating improvements in a self-contained training loop. TRIGGER: optimize skill, train skill, improve skill, skill training, skill optimization, SkillOpt, skill evolution, skill iteration loop, skill feedback loop, skill tuning.
skill-constraints
Enforce browser automation safety constraints — tool usage order, anti-detection rules, screenshot discipline, and human-in-the-loop checks. Use when setting up or verifying browser/MCP tool operations, NOT for every skill execution.
seo-geo-page-optimization
Use when improving a single page for SEO and AI answer-engine visibility (GEO), especially when you need faster first-screen conversion and clearer traffic funnels.