create-command
하는 일
이 스킬은 Forge 코딩 앱용 맞춤 명령을 작성하는 방법을 설명합니다. 각 명령은 이름, 설명, 단계 목록이 있는 마크다운 파일입니다. Forge에서 반복 가능한 작업 흐름을 원하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓커밋 전에 코드를 확인하는 것처럼 반복 가능한 작업 흐름을 Forge 명령으로 저장하고 싶을 때.
- ✓기존 Forge 명령을 바꾸고 싶을 때.
- ✓Forge 명령 파일의 구조를 이해하고 싶을 때.
스킬 링크
https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/create-command/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“커밋하기 전에 린터와 테스트를 실행하는 Forge 명령을 만들어 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 짧은 머리글과 단계 목록이 있는 마크다운 파일을 작성합니다. lint와 test 같은 특별한 태그가 해당 단계를 표시해서 Forge가 이를 자동으로 실행할 수 있게 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Create Commands
Create and manage commands for the code-forge application. Commands are modular workflows that can be invoked to perform specific tasks.
File Location
CRITICAL: All command files must be created in the <cwd>/.forge/commands directory, where <cwd> is the current working directory of your code-forge project.
- Directory:
<cwd>/.forge/commands - File format:
{command-name}.md - Example: If your project is at
/home/user/my-project, commands go in/home/user/my-project/.forge/commands/
This is the only location where forge will discover and load custom commands.
Command File Structure
Every command file must have:
YAML Frontmatter (required):
name: Command identifier (use hyphens for multi-word names)description: What the command does
Command Body (required):
- List of steps to execute
- Special tags for automated workflows
- Clear instructions for each step
Example Command File
---
name: check
description: Checks if the code is ready to be committed
---
- Run the `lint` and `test` commands and verify if everything is fine.
<lint>cargo +nightly fmt --all; cargo +nightly clippy --fix --allow-staged --allow-dirty --workspace</lint>
<test>cargo insta test --accept --unreferenced=delete</test>
- Fix every issue found in the process
Complete Sample Command
This sample demonstrates all three tag types:
---
name: sample-command
description: Sample command demonstrating the command file structure
---
This is a sample command that demonstrates the structure of command files.
- First step: Perform an initial action
<lint>echo "Running linting..."</lint>
- Second step: Execute tests
<test>echo "Running tests..."</test>
- Third step: Complete the workflow
<shell>echo "Workflow complete!"</shell>
- Final step: Verify everything worked correctly
Creating a New Command
Step 1: Determine Command Purpose
Identify what the command should accomplish:
- What task will it perform?
- What steps are involved?
- Are there automated checks or tests needed?
- What should the user do with the results?
Step 2: Choose Command Name
Use verb-based names with hyphens for multi-word commands:
- Good:
check,fixme,pr-description,run-tests - Bad:
checker,fixing,PRdescription
Step 3: Write the Command File
Create the file in the <cwd>/.forge/commands directory with the format: {command-name}.md
IMPORTANT: The file MUST be in <cwd>/.forge/commands where <cwd> is your current working directory. Commands placed anywhere else will not be discovered by forge.
Frontmatter
---
name: your-command-name
description: Clear, concise description of what this command does
---
Command Body
Use markdown lists for steps. Each step should:
- Start with a clear action verb
- Be specific and actionable
- Include context about what to do
Special Command Tags
Use these tags for automated workflows:
<lint> Tag
For linting/formatting commands:
<lint>cargo +nightly fmt --all; cargo +nightly clippy --fix --allow-staged --allow-dirty --workspace</lint>
<test> Tag
For testing commands:
<test>cargo insta test --accept --unreferenced=delete</test>
<shell> Tag
For general shell commands (not linting or testing):
<shell>rm -rf target/debug</shell>
Using Tags
Tags should be placed on their own line after the step description:
- Run linting and testing
<lint>your-lint-command</lint>
<test>your-test-command</test>
Command Types
Simple Commands
Single-step or instruction-only commands:
---
name: fixme
description: Looks for all the fixme comments in the code and attempts to fix them
---
Find all the FIXME comments in source-code files and attempt to fix them.
Multi-Step Commands
Commands with multiple sequential steps:
---
name: pr-description
description: Updates the description of the PR
---
- I have created a Pull Request with all the accepted changes
- Understand the current PR deeply using the GH CLI and update the PR title and description
- Make sure the title follows conventional commits standard
- Top-level summary should contain 2-3 lines about the core functionality improvements
Automated Workflow Commands
Commands that include automated checks:
---
name: check
description:
자주 묻는 질문
명령은 어디에 저장되나요?
프로젝트의 forge 폴더 안에 있는 commands 폴더에 저장됩니다.
특별한 태그는 무엇인가요?
lint나 test 같은 태그는 Forge가 프로젝트 안에서 명령으로 실행하는 단계를 표시합니다.
명령에 이름이 필요한가요?
네. 머리글에 이름이 필요하며, 여러 단어로 된 이름은 하이픈으로 잇습니다.
상세 정보
작성자의 원본 설명
Create new commands for the code-forge application. Commands are stored as .md files in the <cwd>/.forge/commands directory with YAML frontmatter (name, description) and markdown body containing command steps. Use when users need to add new commands, modify existing commands, or understand the command file structure. Supports special command tags like <lint> and <test> for automated workflows.
repo: tailcallhq/forgecode
인기도
- GitHub 스타
- 7.6k
- 순위
- #13109
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
create-agent
7.6k에이전트가 Forge 코딩 앱용 맞춤 에이전트를 만들거나 바꾸도록 가르칩니다. 설정이 맨 위에 있는 마크다운 파일로 저장됩니다.
create-github-issue
7.6k에이전트가 저장소의 이슈 템플릿을 따르고, 알맞은 항목과 라벨을 갖춘 GitHub 이슈를 등록하도록 돕습니다.
create-plan
7.6k에이전트가 복잡한 작업을 위해 단계, 위험, 대안을 담은 상세한 구현 계획을 코드 변경 전에 작성하도록 돕습니다.
github-pr-comments
7.6k에이전트가 GitHub 풀 리퀘스트의 인라인 댓글을 하나씩 처리하며, 요청된 변경을 한 번에 하나씩 적용하도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.