Security Precheck logo

Security Precheck

Community
LeeYudok
security-precheck

외부 보안팀 코드 검사 전 자체 사전점검. security-audit 에이전트(+ 설정돼 있으면 SonarQube 보안 핫스팟)를 돌려 P0/P1/P2로 정리하고, 발견사항을 이슈로 쪼개 병렬 서브에이전트로 고친다. "보안 검사", "보안 점검", "코드 감사" 언급 시 사용.

Overview

PublisherLeeYudok
Repositoryagents-scaffold
Skill namesecurity-precheck
Stars
38
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by LeeYudok on GitHub. Read the source before you install it.

Installation

Install the Security Precheck AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LeeYudok/agents-scaffold/tree/main/.claude/skills/security-precheck
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeeYudok/agents-scaffold.git /tmp/agents-scaffold
mkdir -p .claude/skills
cp -r /tmp/agents-scaffold/.claude/skills/security-precheck .claude/skills/security-precheck
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Security Precheck in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Security Precheck on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Security Precheck is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

보안 사전점검 (외부 감사 대비)

외부 보안팀이 쓸 기준과 같은 기준으로 먼저 훑어서 고쳐두는 워크플로.

1. 스캔 (병렬)

동시 실행:

Agent(subagent_type: "security-audit") — P0 코드 규칙 12항목(하드코딩 시크릿·인증누락·PII로깅 등)
  + 에이전트 설정 8항목(.claude/훅·MCP·permissions·프롬프트 인젝션) grep 기반 스캔
bash
# SonarQube 보안 핫스팟 (TO_REVIEW만) — sonar-project.properties 없으면 이 단계는
# 스킵하고 스킵 사실만 보고. 호스트/토큰 하드코딩 금지:
# 환경변수 $SONAR_HOST_URL / $SONAR_TOKEN 사용.
if [ -f sonar-project.properties ]; then
  key=$(grep 'sonar.projectKey' sonar-project.properties | cut -d= -f2-)
  curl -s -u "${SONAR_TOKEN}:" \
    "${SONAR_HOST_URL}/api/hotspots/search?projectKey=$key&status=TO_REVIEW&ps=500" \
    | python3 -c "import sys,json; d=json.load(sys.stdin); print('TO_REVIEW:', len(d['hotspots'])); [print(h['ruleKey'], h['component'], h.get('line','')) for h in d['hotspots']]"
fi

security-audit 프롬프트에는 이 프로젝트의 구체 맥락(인증 방식, 세션 처리, CORS 설정, 데이터 접근 계층, PII 필드)을 짚어주면 결과 품질이 좋아짐 — 기억으로 서술하지 말고 스킬 실행 시점에 레포의 인증/세션/CORS/데이터접근 진입점을 grep 으로 확인해서 실제 발견한 것을 반영.

2. 등급 분류 + 보고

  • P0(치명적): 즉시 에스컬레이션 대상. 하드코딩 시크릿, 인증 우회, SQL 인젝션, .env git 유출 등.
  • P1(권장 개선): 이 스킬의 주 타겟. rate-limit 부재, 쿠키 속성 누락, 상수시간 비교 누락, 과도한 permission allow, PII 로깅 등.
  • 통과: 확인했지만 문제없는 항목도 명시(무엇을 확인했는지 신뢰도 근거로).

표 형식으로 보고: P0 N건 / P1 N건 / 통과 N건.

3. 이슈 등록 (P1 이상만, 트리비얼 제외)

같은 파일/같은 주제끼리 묶어서 이슈 하나로 — 발견사항당 이슈 남발 금지. 예: 같은 인증 컨트롤러에서 발견된 rate-limit·쿠키속성·상수시간비교 3건은 이슈 1개로.

bash
# forge CLI 는 rules/forge.md 기준
gh issue create -t "<제목>" -b "<사전점검 배경 + 구체적 발견사항 + 관련 파일>"       # GitHub
glab issue create -t "<제목>" -d "<사전점검 배경 + 구체적 발견사항 + 관련 파일>" -y  # GitLab

로컬 설정(.claude/settings.local.json allow 트림, MCP 권한 재검토 등)은 이슈 없이 바로 처리 — 코드가 아니라 로컬 스코프 설정이라 P1 워크플로 대상이 아님.

4. 병렬 처리 (모델 티어 분산)

이슈를 성격별로 나눠 동시에 Agent 호출. 같은 파일을 건드리는 이슈는 한 에이전트에 몰아서 — 별도 에이전트로 쪼개면 같은 파일 동시수정 충돌.

작업 성격subagent_typemodel
인증/암호/세션 등 보안 판단이 들어가는 백엔드 수정sdlc-developeropus
일반 구현(로깅/검증/설정)sdlc-developersonnet
조사만 하고 근거 있으면 유지, 없으면 수정하는 단순 검토general-purposehaiku

각 Agent 호출에 isolation: "worktree" 필수(병렬 파일 수정 충돌 방지), 브랜치 생성 후 push/merge는 하지 말고 커밋까지만 하도록 프롬프트에 명시 — 머지는 부모 세션이 순차로 게이트한다(동시에 여러 worktree가 main을 건드리면 레이스 발생).

5. 순차 머지 + 클로즈 (PR/MR 경유)

에이전트 완료 알림 올 때마다:

  1. 보안/인증 관련 변경이면 diff를 직접 읽고 검토(상수시간 비교 방식, 세션 키 선택, rate-limit 스코프 등 — 틀리면 사전점검의 의미가 없어짐)
  2. git push -u origin <branch> → PR/MR 생성(본문 Closes #N). 기본 브랜치에 로컬 merge·직접 push 금지(P1 — main/develop 직접 커밋 금지)
  3. CI 와 프로젝트 빌드/테스트 게이트(.claude/hooks/pre-commit.sh 의 스택 게이트가 기준) 통과 후 머지. PR/MR 은 하나씩 머지하고, 다음 것은 기본 브랜치를 반영(git merge origin/<default>)한 뒤 게이트를 다시 확인 — 동시 머지 레이스 방지
  4. git worktree remove <path> --force && git branch -d <branch>
  5. forge 컨벤션(rules/forge.md)대로 이슈 클로즈 확인 — 자동 클로즈 안 된 것만 수동

6. 메모리 기록

.claude/memory/project_security-precheck.md에 날짜·발견건수·처리 이슈번호· 받아들이기로 한 리스크(예: rate-limit 키가 프록시 뒤에서 부정확할 수 있음, 특정 MCP allow 유지 결정 등)를 남긴다. 다음 점검 때 이미 검토하고 유지하기로 한 항목을 또 묻지 않기 위함.

Learned warnings

  • Rate-limit/lockout 키로 원시 클라이언트 주소(request.getRemoteAddr() 등)만 쓰면 리버스프록시 뒤에서 전체 요청이 프록시 IP로 잡혀 전역 잠금이 될 수 있음 — 배포 토폴로지에 따라 X-Forwarded-For 파싱 필요 여부를 검증 단계에서 확인.
  • worktree에는 설치된 의존성(node_modules, venv 등)이 없어 프론트/빌드 게이트가 환경적으로 실패하는 경우가 있음 — 백엔드 전용 변경이면 심링크로 우회 가능(커밋 대상 아님), 프론트 변경이 포함된 이슈라면 해당 worktree에서 패키지 설치 (lockfile 고정)를 먼저 실행하도록 에이전트 프롬프트에 명시.
  • MCP 권한(mcp__*)은 툴 단위 grant라 "읽기 전용만 허용" 같은 세분화가 불가능 — 실사용 필요성이 있으면 무리하게 제거하지 말고 근거를 메모리에 남기고 유지.

Frequently asked questions

What does the Security Precheck AI skill do?

외부 보안팀 코드 검사 전 자체 사전점검. security-audit 에이전트(+ 설정돼 있으면 SonarQube 보안 핫스팟)를 돌려 P0/P1/P2로 정리하고, 발견사항을 이슈로 쪼개 병렬 서브에이전트로 고친다. "보안 검사", "보안 점검", "코드 감사" 언급 시 사용.

Why use Security Precheck on TypingMind?

Because you install it once and use it with any model. Security Precheck is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Security Precheck in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LeeYudok/agents-scaffold/tree/main/.claude/skills/security-precheck. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Security Precheck?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Security Precheck?

As many as you like. As long as a model supports skills, you can use Security Precheck with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Security Precheck AI skill free?

Yes. It is published on GitHub by LeeYudok under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇