跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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 的全部技能

报告此技能的问题