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

erode-check

Use this skill whenever code changes introduce new imports, API calls, database connections, message queues, or service-to-service communication. Also use before any commit or push. Catches undeclared dependencies and architecture violations using Erode.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.6 KB

SKILL.md(원문)

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

Architecture Drift Check

Run erode check against local changes to detect undeclared dependencies and architecture violations before pushing.

When to Activate

Run this check proactively:

  1. After adding new integrations -- run when you write code that introduces new imports, API calls, database connections, message queue producers/consumers, or service-to-service communication
  2. Before committing -- run before creating any commit to verify no drift was introduced during the session
  3. On request -- run when the user mentions "architecture check", "drift check", or "erode"

Skip this check for changes that cannot introduce new dependencies:

  • Documentation-only changes (no code paths affected)
  • Test-only changes (test code is not part of the production architecture)
  • Config/tooling changes like tsconfig, eslint, or prettier (no runtime dependencies)
  • Refactors that modify existing logic without adding external calls

How to Run

Choose the mode based on git state:

Unstaged changes exist (you just wrote code):

npx @erode-app/cli check --format json

Changes are staged (ready to commit):

npx @erode-app/cli check --format json --staged

Commits exist on the branch (ready to push):

npx @erode-app/cli check --format json --branch main

The model path is read from .eroderc.json (adapter.modelPath). Pass <model-path> as a positional argument to override it.

Add --fail-on-violations when you want a non-zero exit code on drift.

The repository URL is auto-detected from the git remote. Use --repo <url> only if auto-detection fails.

Interpreting Results

Parse the JSON output. The key fields are:

  • status: "success" (no drift), "violations" (drift found), or "error"
  • analysis.violations[]: each violation has severity (high, medium, low), description, file, line, and suggestion
  • analysis.summary: human-readable overview
  • analysis.modelUpdates: suggested relationship changes for the architecture model
  • dependencyChanges[]: each entry has type (added, removed, modified), dependency, file, and description -- use this to explain what dependency changes were detected

When violations are found

  1. Read each violation and its suggestion
  2. Decide the right fix -- either:
    • Refactor the code to use the declared dependency path (e.g., call through an API gateway instead of directly)
    • Or note that the architecture model needs updating (the dependency is intentional but undeclared)
  3. Tell the user what you found, the severity, and your recommended fix
  4. Do not silently suppress violations -- always surface them

When no violations are found

Briefly confirm: "Architecture check passed, no undeclared dependencies detected."

When the command fails

If erode check exits with an error, read the error message. Common causes: the AI provider API key is not set, the model path in .eroderc.json does not exist, or there is no git remote configured. Report the error to the user with the suggested fix from the error message.

Configuration

The model path and provider are read from .eroderc.json at the repository root. API keys come from environment variables (ERODE_GEMINI_API_KEY, ERODE_OPENAI_API_KEY, or ERODE_ANTHROPIC_API_KEY).

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

adr

무료

Create and manage Architecture Decision Records (ADRs). Use when making architectural changes (refactoring, API versioning, new domain layers, schema changes), when reviewing recent commits for documentation needs, or when the user mentions ADR, architecture decisions, or documenting technical decisions.

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

erode-app/erode542026년 10월 15일 업데이트

doc-sync

무료

Detect documentation and architecture-model drift by comparing source-of-truth code (CLI commands, flags, env vars, GH Action inputs/outputs, package structure, pipeline stages, providers, adapters, platforms) against web docs, README, and LikeC4 architecture model (.c4 files). Use when files that define the user-facing interface or internal structure change, when the user asks to check docs, or when mentioning doc drift, architecture drift, stale docs, or documentation sync.

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

erode-app/erode542026년 10월 15일 업데이트

Enforce the project's documentation voice when writing or reviewing public-facing content. Triggers on edits to doc files (packages/web/src/content/docs/**/*.md) and README.md. Catches LLM prose patterns, marketing language, and messaging drift.

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

erode-app/erode542026년 10월 15일 업데이트

Generate product pitch videos for the Erode project from screenshots. Use this skill whenever the user wants to create, update, or regenerate the product demo video, landing page animation, or pitch clip for erode.dev or the GitHub repo. Also trigger when the user mentions "product video", "demo video", "pitch video", "update the video", "regenerate video", or "landing page animation" in the context of Erode.

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

erode-app/erode542026년 10월 15일 업데이트

Conventional commits with project conventions. Use when the user asks to commit, make a commit, or wants to follow the project's git commit standard.

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

erode-app/erode542026년 10월 15일 업데이트

Sync the local LikeC4 syntax guide with the upstream LikeC4 skills repository (github.com/likec4/likec4/tree/main/skills/likec4-dsl). Use when the user asks to update, sync, or check the LikeC4 syntax guide, when upstream LikeC4 DSL changes are suspected, or when mentioning likec4 syntax sync, DSL drift, or syntax guide update.

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

erode-app/erode542026년 10월 15일 업데이트

erode-app의 스킬 모두 보기

이 스킬의 문제 신고