소스 정보
- 저장소
- ForceInjection/domain-driven-design-skills
- 최근 소스 활동
- 2026년 5월 8일 03:07
- 감지된 SKILL.md 언어
- 영어
- 스타
- 25
- 포크
- 7
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ForceInjection/domain-driven-design-skills --skill cli-e2e-testing명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Conduct deep academic research for philosophy, neuroscience, cognitive science, and theoretical computer science (computability, complexity, AI theory, logic). Use when user asks to: research academic topics, find scholarly papers, conduct literature reviews, analyze citations, synthesize research findings, explore philosophical arguments, investigate consciousness/cognition, study computability/decidability/Turing machines, or analyze academic debates. Triggers on: 'research papers', 'literature review', 'academic sources', 'scholarly articles', 'philosophy of mind', 'computability theory', 'neuroscience studies', 'find papers on', 'what does the research say'.
Create clear action plans with steps, success criteria, and risk awareness. Use before implementing features, making changes, starting projects, or anytime you need a roadmap to success. Triggers on "plan this", "how should we approach", "what's the strategy", "steps to complete", or when facing complex multi-step work.
Add keyboard navigation to a feature using CommandRegistryService. Use when implementing keyboard shortcuts, vim-style navigation, or hotkeys for a page or component.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | CLI E2E Testing |
| description | Guidelines for writing robust CLI end-to-end tests using BATS |
Tests use BATS (Bash Automated Testing System) located in e2e/.
# Run all tests
./e2e/run.sh
# Run specific test file
./e2e/test/libs/bats/bin/bats e2e/tests/02-parallel/t03-volumes.bats
#!/usr/bin/env bats
load '../../helpers/setup'
setup() {
# Use unique names with timestamp to avoid conflicts
export TEST_DIR="$(mktemp -d)"
export RESOURCE_NAME="e2e-test-$(date +%s)"
}
teardown() {
# Always clean up temp directories
[ -n "$TEST_DIR" ] && [ -d "$TEST_DIR" ] && rm -rf "$TEST_DIR"
}
@test "descriptive test name" {
run $CLI_COMMAND subcommand args
assert_success
assert_output --partial "expected text"
}
# Exit status
assert_success # exit code 0
assert_failure # exit code != 0
# Output matching
assert_output --partial "text" # output contains text
refute_output --partial "text" # output does NOT contain text
assert_output --regexp "pattern" # output matches regex
# Line matching
assert_line --index 0 "first line"
# Always use timestamp to prevent test conflicts
export VOLUME_NAME="e2e-volume-$(date +%s)"
export ARTIFACT_NAME="e2e-artifact-$(date +%s)"
Always create config files inline within tests instead of using shared fixture files. This avoids conflicts when multiple test suites run in parallel (each test suite may compose the same config simultaneously).
@test "vm0 compose with custom config" {
echo "# Create config inline"
cat > "$TEST_DIR/vm0.yaml" <<EOF
version: "1.0"
agents:
$AGENT_NAME:
provider: claude-code
description: "Test agent"
EOF
run $CLI_COMMAND compose "$TEST_DIR/vm0.yaml"
assert_success
}
Why inline configs:
$TEST_DIR (created in setup())@test "multi-step test" {
echo "# Step 1: Setup..."
# ... setup code ...
echo "# Step 2: Execute..."
run $CLI_COMMAND ...
echo "# Step 3: Verify..."
assert_success
}
# Extract UUID patterns
CHECKPOINT_ID=$(echo "$output" | grep -oP 'Checkpoint:\s*\K[a-f0-9-]{36}' | head -1)
SESSION_ID=$(echo "$output" | grep -oP 'Session:\s*\K[a-f0-9-]{36}' | head -1)
# Verify extraction succeeded
[ -n "$CHECKPOINT_ID" ] || {
echo "# Failed to extract checkpoint ID"
echo "$output"
return 1
}
@test "valid input succeeds" {
run $CLI_COMMAND volume init
assert_success
}
@test "invalid input fails with error" {
run $CLI_COMMAND volume pull "nonexistent"
assert_failure
assert_output --partial "not found"
}
# Use >/dev/null for setup commands that must succeed
$CLI_COMMAND artifact init >/dev/null
$CLI_COMMAND artifact push >/dev/null
# Only use `run` when you need to check output/status
run $CLI_COMMAND artifact push
assert_success
e2e/
├── tests/
│ ├── 01-serial/ # Tests that must run sequentially (before parallel tests)
│ │ ├── ser-t01-smoke.bats
│ │ └── ser-t02-vm0-scope.bats
│ └── 02-parallel/ # Feature-specific tests (run in parallel with -j 10)
│ ├── t01-validation.bats
│ ├── t03-volumes.bats
│ └── t04-vm0-artifact-checkpoint.bats
└── helpers/
└── setup.bash # Shared setup (loads bats-assert)
Default: Place tests in 02-parallel/. Tests run in parallel with -j 10.
Use 01-serial/ when:
scope set --force)Serial test naming: Use ser-tXX-name.bats prefix for files in 01-serial/.
Note: Config files should be created inline within each test (see "Inline Config Files" pattern above), not stored in a shared fixtures directory.
ser-tXX-feature-name.bats (in 01-serial/)tXX-feature-name.bats (in 02-parallel/)e2e-{type}-$(date +%s)Tests run in two steps:
# Step 1: Run serial tests sequentially (establishes shared state like scope)
bats ./e2e/tests/01-serial/*.bats
# Step 2: Run parallel tests with -j 10
bats -j 10 --no-parallelize-within-files ./e2e/tests/02-parallel/*.bats
-j 10: Run up to 10 test files in parallel--no-parallelize-within-files: Tests within a file run sequentiallyBefore submitting:
setup() and teardown() for cleanup./e2e/run.sh tests/02-parallel/your-test.bats