Back to Skills

Managing Timecard

camoneart
Updated Today
23 views
2
2
View on GitHub
Othergeneral

About

This skill manages timecard punch-in/out operations through the `/dakoku` command for recording work hours. It handles commands like `in`, `out`, `break`, and `list` while supporting both Markdown and JSON file formats for data storage. The skill prioritizes TIME MCP Server for time retrieval but includes fallback options when unavailable.

Documentation

Managing Timecard

/dakoku コマンドによる勤怠打刻機能を管理するスキル。

いつ使うか

  • ユーザーが /dakoku in | out | break | list | month を実行した時
  • 勤怠記録の参照・管理が必要な時
  • 勤怠、打刻、タイムカードに関する質問があった時

日時取得の優先順位

  1. 第一優先: TIME MCP Server を使用
  2. 第二優先: ユーザー環境の now エイリアス(date "+%Y-%m-%d %H:%M:%S"
  3. 最終手段: date コマンドでローカル時刻を取得

実行手順

1. コマンド仕様の確認

詳細は .claude/commands/dakoku.md を参照すること。

2. 保存処理

  • パス: _docs/timecard/YYYY/MM/
  • 形式: Markdown と JSON の 2 形式で保存
  • ディレクトリが存在しない場合は自動作成

3. エラーハンドリング

  • TIME MCP Server が利用できない場合は、必ずフォールバック処理を実行
  • now エイリアスが未設定の場合は、.zshrc への追加を提案

参考リンク

Quick Install

/plugin add https://github.com/camoneart/claude-code/tree/main/managing-timecard

Copy and paste this command in Claude Code to install this skill

GitHub 仓库

camoneart/claude-code
Path: skills/managing-timecard

Related Skills