research-ritual-hooks
Skill2 starsChanged 5 months agoApache-2.0View on GitHub
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.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- agentic-session-debuggerSkill
- agent-portability-matrixSkill
- ai-disclosure-auditorSkill
- anti-ai-trace-revisionSkill
- apa-doi-verifierSkill
- authorship-contribution-ledgerSkill
- bilingual-booklet-pairingSkill
- bilingual-manuscript-scaffoldSkill
- conference-materials-bilingualSkill
- cross-agent-second-opinionSkill
- ethics-irb-ai-protocolSkill
- grant-proposal-workpackage-builderSkill
- journal-fit-screeningSkill
- mcp-research-stack-triageSkill
- memory-vault-architectSkill
- multilingual-concept-validity-auditSkill
- open-science-release-packagerSkill
- peer-review-confidentiality-protocolSkill
- preregistration-analysis-plan-ledgerSkill
- prisma-scoping-review-pipelineSkill
- public-scholarship-ethics-adapterSkill
- qualitative-coding-disciplineSkill
- rebuttal-traceability-matrixSkill
- regional-access-workflowSkill
- repo-release-integrity-checkSkill
- research-lifecycle-pipelineSkill
- sensitive-data-anonymization-gateSkill
- social-science-literature-triageSkill
- source-passport-ledgerSkill
- statistical-consultation-protocolSkill
- teaching-feedback-ai-boundariesSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Keep each hook script small enough to read in one screen, and let it write one log line saying what it did.
- Distinctive: line 26
Test with a dry run in isolation before registering the hook, and measure the session start delay it adds.
- Distinctive: line 42
Every hook has a recorded dry run result.
- Distinctive: line 44
No hook stores or echoes credentials, and secret material stays in environment stores.
- Distinctive: line 47
Before closing: the dry run results and measured start delay are recorded, every hook's failure direction is documented, and any hook that …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Name the ritual before choosing the mechanism. A ritual that cannot be described in one sentence is not ready to automate.
- 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.
- 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.
- Keep each hook script small enough to read in one screen, and let it write one log line saying what it did.
- Let hooks read the vault freely and write only to designated locations, the daily note and the log, never restructuring content on their own.
- Test with a dry run in isolation before registering the hook, and measure the session start delay it adds.
- 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

