skill-security

This skill activates when the user mentions "security audit", "skill audit", "проверка безопасности скилла", "аудит скилла", "skill-security", "проверить скилл", "пересобрать скилл", "rebuild skill", "security check", "dual memory audit", "credential isolation check". Also activates on /skill-security command. Use this skill when the user wants to audit, validate, or rebuild any Claude Code skill for security compliance.

Best use case

skill-security is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

This skill activates when the user mentions "security audit", "skill audit", "проверка безопасности скилла", "аудит скилла", "skill-security", "проверить скилл", "пересобрать скилл", "rebuild skill", "security check", "dual memory audit", "credential isolation check". Also activates on /skill-security command. Use this skill when the user wants to audit, validate, or rebuild any Claude Code skill for security compliance.

Teams using skill-security should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/skill-security/SKILL.md --create-dirs "https://raw.githubusercontent.com/ai-mindset-org/pos-sprint/main/skills/skill-security/skills/skill-security/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/skill-security/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How skill-security Compares

Feature / Agentskill-securityStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

This skill activates when the user mentions "security audit", "skill audit", "проверка безопасности скилла", "аудит скилла", "skill-security", "проверить скилл", "пересобрать скилл", "rebuild skill", "security check", "dual memory audit", "credential isolation check". Also activates on /skill-security command. Use this skill when the user wants to audit, validate, or rebuild any Claude Code skill for security compliance.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# skill-security — Global Security Meta-Skill

Audits and rebuilds any Claude Code skill against a 7-volume security checklist.
Ensures credential isolation, dual memory with sanitization, first-install UX,
cache isolation, shareability, architectural uniformity, and code correctness.

## Structure

```
skills/skill-security/
├── SKILL.md                    # This file
├── config/
│   └── config.json             # Token patterns, required files, categories
├── data/
│   ├── memory.json             # Shared memory (sanitized audit patterns)
│   └── checklist.json          # 7-volume checklist (machine format)
├── scripts/
│   ├── ss_memory.py            # Dual memory (check/record/list/confirm/promote)
│   ├── ss_security.py          # Secret scanner
│   ├── ss_templates.py         # Canonical file templates + gap analysis
│   ├── ss_analyze.py           # A1: deep-understand + A: audit
│   ├── ss_validate.py          # C: validation (syntax + structure + security + functional)
│   ├── ss_report.py            # Report generator (JSON → markdown)
│   └── ss_engine.py            # Pipeline orchestrator (A1→A→B→C↔D→E)
└── references/
    └── security-patterns.md    # All security patterns documentation
```

Scripts path:
```bash
cd /root/.claude/plugins/marketplaces/claude-plugins-official/plugins/skill-security/skills/skill-security/scripts
```

## Безопасность

**Этот мета-скилл НЕ имеет собственных API-credentials, но:**

- НИКОГДА не читать credentials.json целевых скиллов через Read/cat/head/tail
- Проверка credentials целевых скиллов: только через их `*_auth.py check-credentials`
- Токены целевых скиллов НИКОГДА не выводятся в контекст разговора
- Все пути в shared memory проходят sanitization

## Разделение данных (двойная память)

### В shared memory (data/memory.json) — деперсонализированное:
- Общие паттерны аудита: "скиллы без _sanitize_text() = утечка"
- Типовые исправления: "добавить chmod 600 при сохранении credentials"
- Паттерны архитектуры: "check-credentials должен возвращать {ok, data: {exists}}"

### В private memory (~/.config/skill-security/memory.json) — персональное:
- Пути к конкретным скиллам пользователя
- Результаты аудита конкретных скиллов
- Количество раундов, исправления для конкретного скилла

### НИКОГДА в shared:
- Абсолютные пути пользователя (/home/user/...)
- Названия приватных сервисов
- Реальные данные из целевых скиллов

## Algorithm

### Step 0 — Check memory (ОБЯЗАТЕЛЬНО)

```bash
python3 ss_memory.py check "<контекст запроса пользователя>"
```

Если есть релевантные записи — использовать как подсказку для аудита.

### Step 1 — Resolve target path

Parse user input to get absolute skill path. Validate:
- Path exists and is a directory
- Contains SKILL.md

### Step 2 — A1: Deep Understanding

```bash
python3 ss_analyze.py deep-understand "$SKILL_PATH"
```

Output: service profile (name, auth type, base_url, endpoints, credential fields).

If documentation research needed, use **WebSearch** to find:
- Service API documentation
- Auth flow details
- Required credential fields

### Step 3 — A: Deep Audit

```bash
python3 ss_analyze.py audit "$SKILL_PATH"
```

Output: 7-volume audit report with PASS/FAIL/WARN per check.

### Step 4 — B: Rebuild

```bash
python3 ss_engine.py run "$SKILL_PATH" --phase B
```

For automated gap-filling. For complex issues, manually fix using Read/Edit/Write.

### Step 5 — C↔D: Validation & Correction Loop

```bash
python3 ss_engine.py run "$SKILL_PATH" --phase all
```

Or manually:
1. Validate: `python3 ss_validate.py validate "$SKILL_PATH"`
2. If FAILs exist → fix → goto 1
3. Repeat until all PASS

### Step 6 — E: Self-learning

Record findings to memory:
- Shared (sanitized): generic patterns, fix recipes
- Private (as-is): specific paths, results, round counts

### Step 7 — Report

Present results to user:
- Summary table (7 volumes)
- Fixes applied
- Remaining manual issues (if any)

## Response Language

Respond in the same language as the user's request.

Related Skills

writing-content

7
from ai-mindset-org/pos-sprint

Интерактивный процесс написания текстов для вайб-маркетинга на основе Julian Shapiro framework. **Новые возможности (v2.0):** - Research & Gap Analysis (Perplexity → WebSearch fallback) - Scoring 0-5 вместо binary (Novelty + Resonance + Hook + Clarity) - AI-Slop Detection на всех этапах (10 типов patterns) - 3 варианта intro с self-scoring - Markdown export всех промежуточных результатов **Русские triggers:** "напиши пост по шапиро", "написать статью по фреймворку шапиро", "создай текст в стиле julian shapiro", "помоги написать контент по методу shapiro", "контент по julian shapiro фреймворку", "пост по julian shapiro", "напиши в стиле шапиро" **English triggers:** "write content using julian shapiro framework", "create post with shapiro method", "write article shapiro style", "help with julian shapiro writing" **Generic triggers:** "напиши статью", "помоги написать контент", "создай текст", "начать писать", "хочу написать пост", "нужна помощь с текстом", "write content", "write article", "создай контент", "придумай идею для статьи", or requests help with content creation process.

Content & DocumentationClaude

YT Transcribe — YouTube → Whisper → Obsidian

7
from ai-mindset-org/pos-sprint

Транскрибирует YouTube-видео через mlx-whisper (Apple Silicon, Metal-native) с параллельными чанками.

/tg-saved v2 — Telegram Saved Messages → Deep Analysis → Obsidian

7
from ai-mindset-org/pos-sprint

## Назначение

summarize-comments

7
from ai-mindset-org/pos-sprint

Делает LLM-выжимку из комментариев менеджеров об одном или нескольких подрядчиках. Используй этот скилл когда нужно понять что говорят менеджеры о конкретном подрядчике, или получить JSON с выжимкой для дальнейшей обработки.

session-status

7
from ai-mindset-org/pos-sprint

Statusline shown in Claude Code UI status bar via settings.json. No action needed in responses.

session-save

7
from ai-mindset-org/pos-sprint

Compress and save current session context for handoff to next session. Use when: (1) context pressure >50%, (2) user says "сохрани сессию", "session save", "checkpoint", (3) before ending a long productive session, (4) switching to a different task mid-session. Supports named sessions: /session-save vpn-fix

continue-session

7
from ai-mindset-org/pos-sprint

Restore context from a named or latest session checkpoint. Use when: (1) user says "продолжи", "continue", "что было в прошлой сессии", (2) starting work after a crash or context overflow, (3) "resume", "восстанови контекст", "где я остановился". Supports named sessions: /continue vpn-fix

compress

7
from ai-mindset-org/pos-sprint

Info-Compressor: compress text/context by 60-70% without losing meaning. Use when: (1) context pressure >50%, (2) user says "сжать", "compress", "compact", (3) need to fit more context into remaining window, (4) preparing handoff blob for next session.

seo-strategist

7
from ai-mindset-org/pos-sprint

Strategic SEO planning and analysis toolkit for site-wide optimization, keyword research, technical SEO audits, and competitive positioning. Complements content-creator's on-page SEO with strategic planning, topic cluster architecture, and SEO roadmap generation. Use for keyword strategy, technical SEO audits, SERP analysis, site architecture planning, or when user mentions SEO strategy, keyword research, technical SEO, or search rankings.

roi-razvitie-draft

7
from ai-mindset-org/pos-sprint

Generates a draft meeting document for the weekly "Roi Развитие" (Wednesday, product Roi Navigator). Use when the user asks for a draft for the meeting, for Wednesday's doc, for "Roi Развитие", or for the weekly team meeting agenda.

project-knowledge-base

7
from ai-mindset-org/pos-sprint

Collects, structures and maintains a Project Knowledge Base (PKB.md) in Obsidian for a marketing agency. Aggregates data from Google Drive, Gmail, Telegram (group chat and DMs via MTProto), moo.team tasks/comments, and local Obsidian meeting transcripts. Uses async parallel collection and a two-stage LLM pipeline for init. Use when the user wants to initialize, update or enrich a project's knowledge base, mentions PKB, project knowledge base, синхронизация проекта, база знаний проекта, init_project_knowledge, update_project_knowledge, or ad_hoc_add_context.

product-strategist

7
from ai-mindset-org/pos-sprint

Strategic product leadership toolkit for Head of Product including OKR cascade generation, market analysis, vision setting, and team scaling. Use for strategic planning, goal alignment, competitive analysis, and organizational design.