본문으로 건너뛰기
cccskills
무료GitHub에 공개

security-check

Scan staged changes before a commit and commit history before a push for API keys, access tokens, and other common credentials. The guidance explains how to replace exposed values, move them to environment variables, and clean affected history.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

提交或推送前的安全检查,扫描 API Key、访问令牌等敏感信息。

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Checking staged changes for credentials before committing
  • Scanning commits for secrets before pushing
  • Finding and cleaning commits that contain sensitive values

포함된 파일(3)

  • SKILL.md1.6 KB
  • scripts/security_check.sh1.5 KB
  • scripts/security_reset.sh4.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

安全检查

在提交和推送代码前,必须检查是否包含敏感信息,特别是 API Keys 和访问令牌。

检查内容

API Keys 和访问令牌

  • sk- 开头的 API Keys(如 OpenAI、Anthropic、阿里云等)
  • AIzaSy 开头的 Google API Keys
  • pk_ 开头的公钥
  • 其他常见的 API 令牌格式

提交前(Commit)

先进行检查

bash skills/security-check/scripts/security_check.sh commit

若未输出 staging area is clear,说明暂存区存在敏感信息。

若存在敏感信息

  1. 立即删除或替换:将真实 API Key 替换为占位符
  2. 使用环境变量:将敏感信息移到环境变量中
  3. 添加到 .gitignore:确保包含敏感信息的文件不被提交
  4. 必须拒绝提交和推送动作

推送前(Push)

先进行检查

bash skills/security-check/scripts/security_check.sh push

若未输出 all commits are clear,说明存在敏感信息,相关 commit hash 已写入 task/sensitive_commits.txt。

若存在敏感信息

  1. 立即删除或替换:将真实 API Key 替换为占位符
  2. 使用环境变量:将敏感信息移到环境变量中
  3. 添加到 .gitignore:确保包含敏感信息的文件不被提交
  4. 必须使用下面的脚本清理历史记录
# 根据 task/sensitive_commits.txt 中的检查结果 reset,避免 commit 记录泄密
bash skills/security-check/scripts/security_reset.sh
  1. 必须拒绝提交和推送动作

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Review LoongCollector code changes for concrete defects, security risks, and architectural mismatches. It tracks review history to focus on new changes and produces evidence-backed findings, lifecycle checks, and practical fix and validation plans.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Review a pull request for security or behavior regressions
  • Recheck whether earlier review comments were fixed
  • Assess a branch change with architecture context
alibaba/loongcollector2.2천2026년 10월 24일 업데이트

commit

무료

Use this skill to turn a Git diff or supplied change context into a clear Conventional Commits message. It selects a change type and optional scope, explains the reason and impact, and can include issue or breaking change references.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Writing a commit message from a Git diff
  • Choosing a Conventional Commits type and scope
  • Describing why a change was made
alibaba/loongcollector2.2천2026년 10월 24일 업데이트

compile

무료

Build LoongCollector’s C++ core and Go plugins, run C++ unit tests, or create end-to-end and release images. The guide helps choose CI-aligned Docker builds or local CMake workflows, with commands and setup notes for each target.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Build the C++ core using the CI-aligned workflow
  • Run all or selected C++ unit tests
  • Compile Go plugins locally or in CI style
alibaba/loongcollector2.2천2026년 10월 24일 업데이트

Use this skill to write or review technical design documents with a consistent structure. It covers problem context, goals, architecture and flows, concurrency, errors, deployment, and unit tests, with guidance for diagrams, test cases, and design constraints.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Drafting a technical design document
  • Reviewing a design for missing sections
  • Documenting architecture and key flows
alibaba/loongcollector2.2천2026년 10월 24일 업데이트

e2e

무료

Use this skill to design, write, run, and debug LoongCollector end-to-end tests. It explains feature scenarios, registered steps, local Docker Compose execution, log inspection, and common configuration pitfalls so agents can work through test failures.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Planning coverage for a new end-to-end test
  • Writing a feature scenario with registered steps
  • Running one Docker Compose test case locally
alibaba/loongcollector2.2천2026년 10월 24일 업데이트

Learn how the LoongCollector end-to-end test framework connects feature scenarios to Go behavior functions. Use the guide to write BDD test cases, add and register custom steps, and understand existing test actions for setup, triggers, verification, and cleanup.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Understanding the E2E test framework structure
  • Writing feature files with scenarios and steps
  • Adding and registering a custom Go behavior function
alibaba/loongcollector2.2천2026년 10월 24일 업데이트

alibaba의 스킬 모두 보기

이 스킬의 문제 신고