ソース情報
- リポジトリ
- dhth/hours
- ソースの最終更新活動
- 2026年8月7日 05:00
- 検出された SKILL.md の言語
- 英語
- スター
- 345
- フォーク
- 16
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/dhth/hours --skill write-testsコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | write-tests |
| description | Use this skill when creating or updating tests in this repository. |
mise run test.mise run update-snapshots.testify/assert alongside source filesgo-snaps); snapshots in internal/ui/__snapshots__/internal/types has a TimeProvider interface for mocking time in teststests/cli with snapshots in tests/cli/__snapshots__/tests/cli (file-per-command is preferred)TestMain builds the hours binary once per package run and is shared by all tests in the packageNewFixture(t, testBinaryPath) gives each test a t.TempDir() workspace (auto-cleaned)cmd.UseDB() to append a per-test DB path under the fixture temp dirRunCmd executes with timeout and deterministic env (HOME set to fixture temp dir, PATH propagated, explicit overrides via SetEnv)All tests in this codebase should follow the Given-When-Then (GWT) pattern to improve readability and maintainability. This structure makes tests self-documenting and helps both humans and AI agents quickly understand:
Format:
func TestSomething(t *testing.T) {
// GIVEN
// ... setup code, test data, initial state
// WHEN
// ... the action being tested
// THEN
// ... assertions and expected outcomes
}
go-snaps wherever it makes sense, especially for: