소스 정보
- 저장소
- laicluse/agent-fieldkit
- 최근 소스 활동
- 2026년 6월 19일 12:51
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/laicluse/agent-fieldkit --skill run-spec명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Use when corrective work, migrations, living docs, or temporary diagnostic tests leave superseded residue, or before handoff.
Use when corrective work, migrations, living docs, or temporary diagnostic tests leave superseded residue, or before handoff.
Reference for git-discipline commit bodies, trailers, hook denials, examples, and escape hatches.
SKILL.md 표시 중
| name | run-spec |
| user-invocable | true |
| description | Run one spec/test file with the detected project test runner and report PASS or FAIL. |
| argument-hint | <test-or-spec-path> |
| effort | low |
Detects the project's test runner and runs a single test or spec file.
Prints a PASS or FAIL summary line plus the runner's own output.
The skill exits with the test runner's exit code so callers can use it
in shell pipelines.
This skill does not record evidence anywhere. Red-then-green: yes in
the commit body is self-attestation; no cache lookup backs it.
/git-discipline:run-spec <test-or-spec-path>
Example:
/git-discipline:run-spec spec/services/session_spec.rb
/git-discipline:run-spec src/__tests__/session.test.ts
/git-discipline:run-spec internal/session/session_test.go
/git-discipline:run-spec tests/test_session.py
PASS or FAIL summary line and the exit code.The implementation in lib/run-spec.sh inspects the project root for marker
files in this order:
| Marker file | Runner used |
|---|---|
go.mod | go test |
Gemfile or .rspec | bundle exec rspec <path> |
package.json with "jest" key | npx jest <path> |
package.json with "vitest" key | npx vitest run <path> |
pyproject.toml or pytest.ini or setup.cfg | pytest <path> |
If multiple markers are present the order above determines priority. When no
marker matches, the skill prints an error asking the operator to set
GIT_DISCIPLINE_TEST_RUNNER (e.g. export GIT_DISCIPLINE_TEST_RUNNER="bundle exec rspec").
PASS spec/services/session_spec.rb (exit 0)
or
FAIL spec/services/session_spec.rb (exit 1)
The implementation lives in lib/run-spec.sh. Runner detection and test
execution are split into testable functions so the BATS test suite can
exercise them without launching a real test run.