skill-host-compat
하는 일
Claude에서만 작동하는 명령을 제거해서, '스킬'(AI 지침)이 다른 환경(Codex와 Cursor)에서 안전하게 쓸 수 있는지 확인합니다.
사용하는 경우
- ✓'스킬'을 추가하거나 수정할 때.
- ✓다른 환경을 위해 '스킬'을 특정 폴더에 복사할 때.
- ✓리뷰가 Codex나 Cursor에서 '스킬'이 안전한지 확인해 달라고 할 때.
스킬 링크
https://github.com/affaan-m/ECC/blob/main/skills/skill-host-compat/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 스킬이 Codex와 Cursor에서 안전한지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스크립트는 '스킬'을 분석하고, Claude 전용 변수를 사용하는 명령을 제거하거나 맞춥니다. 그래서 Codex와 Cursor 같은 다른 시스템에서도 올바르게 작동하도록 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Skill Host Compatibility
Run the same host-compat gate CI uses on skills/ before opening a skill PR.
The check is for Codex and Cursor copies, not Claude-only runtime quality.
When to Activate
- Adding or editing a skill under
skills/ - Copying a skill into
.agents/skills/or.cursor/skills/ - A review asks whether a skill is safe to install into Codex or Cursor
- CI reports
validate-skill-host-compat.jsfindings
Core Concepts
Canonical skills live in skills/. Codex loads .agents/skills/. Cursor loads a
smaller .cursor/skills/ subset. CONTRIBUTING documents that sync as manual.
validate-skills.js only checks that SKILL.md exists and that name /
description are usable YAML. tests/ci/codex-skill-surface.test.js only
sees .agents/skills/. This script is the cross-tree gate:
- Claude-only substitutions in executable
bash/sh/zshfences in Codex/Cursor projections (${CLAUDE_SESSION_ID},${CLAUDE_SKILL_DIR},${CLAUDE_PLUGIN_ROOT},${CLAUDE_PROJECT_DIR},$ARGUMENTS) fail. Codex leaves those tokens as literal text. In a Codex copy, rewrite${CLAUDE_PROJECT_DIR}to$(pwd)or an explicit path. - A Codex copy may only use
name,description,metadata,license, andallowed-tools.origin: ECCmay stay on the canonicalskills/copy and must be stripped on the Codex copy. - A skill listed in
agents/openai.yamlthat has askills/directory must have.agents/skills/<name>/. Cursor copies are optional; when present,name:must match the directory. - CONTRIBUTING checklist items (When to Activate, Anti-Patterns, name
matches directory, 500/800 line caps) warn. They fail only with
--strict-checklist.
validate-skills.js frontmatter WARN default is unchanged (#1663).
Code Examples
From the repo root:
node scripts/ci/validate-skill-host-compat.js
Print counts without failing:
node scripts/ci/validate-skill-host-compat.js --inventory
Promote checklist warnings:
node scripts/ci/validate-skill-host-compat.js --strict-checklist
Slash command:
/skill-host-compat
/skill-host-compat --inventory
Anti-Patterns
Codex and Cursor projections must resolve Claude-only substitutions in executable blocks. Canonical Claude-scoped examples remain valid. POSIX $1 and ${1} parameters are ambiguous and require review rather than failing this gate. This fence is the
forbidden pattern:
echo "${CLAUDE_SESSION_ID}"
ls "${CLAUDE_SKILL_DIR}"
node "${CLAUDE_PLUGIN_ROOT}/scripts/setup.js" $ARGUMENTS
cd "${CLAUDE_PROJECT_DIR}"
Do not add version: or origin: to a Codex copy under .agents/skills/.
Do not treat a passing validate-skills.js run as Codex-safe. Do not require
every skills/ entry to have a Cursor copy.
Best Practices
- Keep canonical
origin: ECCif the CONTRIBUTING template calls for it. - Drop
origin,version, andargument-hinton the Codex copy. - Show host-portable commands in bash fences (
npx,ecc, or a resolved root). Rewrite${CLAUDE_PROJECT_DIR}in Codex copies to$(pwd)or an explicit path. Keep valid Claude-scoped forms in canonical instructions; resolve host variables in the target projection. - Run this script before
npm testwhen the change is a new skill. - Use
--inventoryto see checklist warning volume without failing the tree.
Related Skills
skill-comply— runtime behavioral traces, not host-portabilityskill-stocktake— holistic audit of installed~/.claude/skillsskill-scout— search existing skills before creating a new one
자주 묻는 질문
Codex와 Cursor는 무엇인가요?
'스킬'을 실행할 수 있는 환경이나 시스템입니다. 이 스크립트는 스킬이 둘 다에서 잘 작동하도록 보장합니다.
왜 Claude 전용 명령을 제거해야 하나요?
Claude 전용 명령은 Codex나 Cursor 같은 다른 환경에서 작동하지 않습니다. 스킬이 호환되려면 이를 맞추거나 제거해야 합니다.
이 스크립트를 쓰지 않으면 어떻게 되나요?
호환되지 않는 명령이 들어 있어서, Codex나 Cursor 같은 환경에서 스킬이 제대로 작동하지 않거나 오류를 보일 수 있습니다.
상세 정보
작성자의 원본 설명
Lint ECC skills for Codex/Cursor-safe frontmatter and Claude-only substitutions before a skill PR.
repo: affaan-m/ECC
인기도
- GitHub 스타
- 280k
- 순위
- #409
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
accessibility
280k에이전트가 모든 사람이 쓸 수 있는 인터페이스를 만들도록 돕습니다. 시각 장애나 운동 장애가 있는 사람도 쓸 수 있게 합니다.
agent-architecture-audit
280k에이전트가 모든 것이 올바르게 작동하는지 점검하도록 돕습니다. AI 시스템의 문제를 찾아 고쳐서 기대대로 작동하게 합니다.
agent-eval
280k에이전트가 서로 다른 AI 코딩 도구를 비교하도록 돕습니다. 특정 작업에서 어느 도구가 더 빠르고, 저렴하고, 믿을 만한지 측정합니다.
agent-harness-construction
280k에이전트가 작업을 더 잘 이해하도록 돕습니다. 에이전트가 쓰는 도구와 지시문을 최적화해 성공 가능성을 높입니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.