本文へ移動
cccskills
無料GitHub で公開

research-ritual-hooks

Use when automating research session rituals in Claude Code with hooks, such as session-start context injection, daily research logging, session-end persistence, or pre-commit guards that block secrets and unverified citations.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Research Ritual Hooks

When to use

Use this skill when a recurring research habit should become an automatic part of the Claude Code session lifecycle: loading project context at start, appending to a daily log, persisting state at session end, or guarding commits. It pairs with the memory-vault-architect skill, which designs what the rituals read and write. It is not for anonymizing sensitive data before a hook touches it; that is sensitive-data-anonymization-gate.

Inputs

  • The ritual to automate, described as a habit rather than a script.
  • The vault or notes layout the ritual touches.
  • Operating system and shell, since hook commands are environment specific.
  • The user's tolerance for automation acting without confirmation.

Workflow

  1. Name the ritual before choosing the mechanism. A ritual that cannot be described in one sentence is not ready to automate.
  2. Map the ritual to a lifecycle event: context loading to session start, logging and persistence to session end, guarding to the moment before a tool or commit runs.
  3. Decide the failure direction deliberately. Context and logging hooks fail open, a broken logger must never block a session. Guard hooks fail closed, a broken secret scan must block the commit it cannot check.
  4. Keep each hook script small enough to read in one screen, and let it write one log line saying what it did.
  5. Let hooks read the vault freely and write only to designated locations, the daily note and the log, never restructuring content on their own.
  6. Test with a dry run in isolation before registering the hook, and measure the session start delay it adds.
  7. Version the hook scripts with the project, and document each hook in one line: trigger, input, output, failure direction. When a guard hook must touch paths that may contain participant data, route the anonymization check to sensitive-data-anonymization-gate before the hook is registered.

Output

Return:

  • A ritual to hook-event map.
  • The hook configuration and the script skeletons.
  • The failure direction decision per hook, with the reason.
  • A dry run test plan and its results.
  • The one-line documentation block for the project README or CLAUDE.md.
  • What to record at session end: the ritual-to-hook-event map, the dry run results and measured start delay, the failure direction decision per hook, and a one-line note for the AI-use disclosure.

Verification

  • Every hook has a recorded dry run result.
  • The failure direction of every hook is explicit and matches its role, open for context and logging, closed for guards.
  • No hook stores or echoes credentials, and secret material stays in environment stores.
  • Measured session start delay is stated, and hooks that slow the start noticeably are trimmed or deferred.
  • Each hook writes a log line per run, so silence means it did not run.
  • Before closing: the dry run results and measured start delay are recorded, every hook's failure direction is documented, and any hook that touches participant-data paths has been cleared through sensitive-data-anonymization-gate.

Safety

A hook is automation that runs without asking, so destructive operations do not belong in ritual hooks. No deletion, no outbound network calls carrying vault content, no rewriting of notes. Guards may block actions, and that is the only force a ritual hook should apply.

Example prompt

"Her oturum başında bugünün günlük notunu ve aktif proje kartını yüklesin, oturum sonunda yapılanları günlüğe eklesin, bunu hook'larla kur."

Expected smoke output:

  • A two-ritual map, session start context injection and session end logging.
  • Script skeletons with fail-open behavior and one-line logging.
  • A dry run plan measuring start delay.

Türkçe kullanım notu

Bu beceri, tekrarlanan araştırma alışkanlıklarını oturum yaşam döngüsüne bağlar. Ritüel önce tek cümleyle tanımlanır, sonra doğru olaya eşlenir ve her kancanın bozulma yönü bilinçli seçilir. Bağlam yükleyici bozulursa oturumu engellemez, gizlilik bekçisi bozulursa commit'i durdurur. Kancalar tek ekranda okunacak kadar küçük kalır, her çalışmada tek satır iz bırakır ve arşiv içeriğini kendi başına yeniden düzenlemez. Kanca katılımcı verisine dokunacaksa önce sensitive-data-anonymization-gate becerisi çalıştırılır.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when a complete research workflow — its instructions, skills, data boundaries, and tool connections — must be assessed for portability across AI agents or environments, so each component is explicitly mapped before migration rather than assumed to transfer.

日本語の概要は準備中です。原文の説明を表示しています。

OnourImpram/claude-code-for-social-scientists22026年9月6日 更新

Use when a Claude Code session loops, drifts from scope, claims a fix that CI rejects, hits context, PATH, or permission walls, or fails in a way another retry will not solve and a root cause diagnosis is needed instead.

日本語の概要は準備中です。原文の説明を表示しています。

OnourImpram/claude-code-for-social-scientists22026年9月6日 更新

Use when AI contribution metadata must match the actual workflow, when model alias and dated identifiers need auditing, when verified and fabricated citation counts feed a release decision, or when a venue's AI disclosure statement needs evidence behind it.

日本語の概要は準備中です。原文の説明を表示しています。

OnourImpram/claude-code-for-social-scientists22026年9月6日 更新

Use when a draft in Turkish, English, or both reads as AI-generated and needs revision that removes machine writing patterns and translation calques while preserving meaning, citations, statistics, and the author's voice.

日本語の概要は準備中です。原文の説明を表示しています。

OnourImpram/claude-code-for-social-scientists22026年9月6日 更新

Use when a reference list needs APA 7 cleanup, when DOIs must be confirmed real against Crossref or PubMed, when the user asks whether AI-suggested citations actually exist, or when a manuscript needs a citation hygiene pass before submission or defense.

日本語の概要は準備中です。原文の説明を表示しています。

OnourImpram/claude-code-for-social-scientists22026年9月6日 更新

Use when authorship order, CRediT contribution roles, or AI-assistance attribution must be recorded transparently for a manuscript, when an author dispute needs an evidence trail, or before a contributorship statement is required at submission; this skill maintains the human-attribution ledger of who contributed what and in which role (authorship order, CRediT taxonomy, revision responsibilities), which is distinct from the disclosure-metadata audit owned by ai-disclosure-auditor.

日本語の概要は準備中です。原文の説明を表示しています。

OnourImpram/claude-code-for-social-scientists22026年9月6日 更新

OnourImpram のスキルをすべて見る

このスキルの問題を報告する