benbrastmckie/nvim/skill-cslib-research-hard
Claude Code and agent skill by benbrastmckie/nvim
- community
Checking that the SKILL.md file is still in the repository.
Research CSLib formalization patterns with hard-mode contracts (H2 anti-analysis, H3 reference grounding with BibKey verification, H4 adversarial verification). Invoke for --hard cslib research tasks.
Install
npx vskill@latest install benbrastmckie/nvim/skill-cslib-research-hardSKILL.md
CSLib Research Hard Skill
Hard-mode wrapper that delegates CSLib research to cslib-research-hard-agent subagent. Extends skill-cslib-research with hard-mode behavioral contracts (H2, H3, H4) and postflight logging of adversarial verification status.
Relationship to base skill: This skill is structurally identical to skill-cslib-research except it dispatches to cslib-research-hard-agent and logs adversarial_verification_triggered. Maintenance note: changes to skill-cslib-research postflight should be mirrored here.
Context References
Reference (do not load eagerly):
- Path:
.claude/context/formats/return-metadata-file.md- Metadata file schema - Path:
.claude/context/contracts/anti-analysis.md- H2 contract (loaded by agent) - Path:
.claude/context/contracts/reference-grounding.md- H3 contract (loaded by agent) - Path:
.claude/extensions/cslib/context/project/cslib/standards/citation-conventions.md- BibKey format (loaded by agent) - Path:
.claude/context/patterns/postflight-control.md- Marker file protocol
Trigger Conditions
This skill activates when:
/research N --hardis invoked and task type iscslib- Not currently routing-reachable: the routing-ladder collapse retired the skill-side
routing/
routing_hard manifest blocks and their resolver. This skill is pending migration onto hard_contracts (a separate, not-yet-dispatched follow-on); until then it is reachable only by direct invocation, not through /research --hard dispatch
Execution Flow
Stage 1: Input Validation
Validate required inputs:
Stage 1.5: Hard-Mode Cost Note
Emit one-time cost note on first hard-mode invocation:
Stage 2 + Stage 3: Preflight Status Update and Postflight Marker
Source skill-base.sh once, then follow @.claude/context/patterns/skill-preflight-flow.md in full for Stage 2 (preflight status update) and Stage 3 (marker creation):
Stage 3a: Read Artifact Number
Stage 4a: Memory Retrieval (Auto)
Note: lit_flag is independent of clean_flag. Using --clean --lit suppresses memory retrieval but still injects literature briefing. Literature briefing is gated solely on lit_flag == "true".
Stage 4: Prepare Delegation Context
Stage 4b: Read Format Specification
Stage 5: Invoke Subagent
Include format specification, memory context, and literature briefing in prompt.
- If
memory_contextis non-empty, include it as a<memory-context>block after the format specification. - If
lit_contextis non-empty, include it as a<literature-briefing>block after the memory context. - Do NOT inject empty blocks when content is empty.
Stage 5b: Self-Execution Fallback
If Agent tool was not used, write .return-meta.json with status "researched" before postflight.
Postflight (ALWAYS EXECUTE)
Stage 6: Parse Subagent Return
Read metadata file and extract: status, artifact_path, artifact_type, artifact_summary, memory_candidates, and adversarial_verification_triggered.
Stage 6a: Validate Artifact Content (non-blocking)
Stage 7: Update Task Status (Postflight)
Stage 7a: Propagate Memory Candidates
Same as skill-cslib-research Stage 7a.
Stage 8: Link Artifacts
Same as skill-cslib-research Stage 8 (two-step jq pattern for Issue #1132 safety).
Stage 8a: Lifecycle TTS Notification
Stage 9: Cleanup
Follow @.claude/context/patterns/skill-postflight-flow.md's Stage 9 (cleanup):
MUST NOT (Postflight Boundary)
After the agent returns -- whether with status researched, partial, or failed -- this skill MUST proceed immediately to postflight (Stage 6). The skill MUST NOT:
- Edit Lean/report files - All research work is done by agent
- Run `lake build` or other Lean tooling - Verification is agent work
- Use MCP or WebSearch tools - Research tools are for agent use only
- Analyze or grep source - Analysis is agent work
- Write reports - Artifact creation is done by agent
PROHIBITION: If the subagent returned partial or failed status, the lead skill MUST NOTattempt to continue, complete, or "fill in" the subagent's work. Report the partial/failedstatus and let the user re-run/research --hardto resume.
The postflight phase is LIMITED TO:
- Reading agent metadata file
- Calling
update-task-status.shfor status updates (state.json + TODO.md) - Linking artifacts in state.json
- Cleanup of temp/marker files
Reference: @.claude/context/standards/postflight-tool-restrictions.md
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent-system/extensions/cslib/skills/skill-cslib-research-hard/SKILL.md
Popularity
- Repository stars
- 445
- Repository forks
- 454
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/benbrastmckie/nvim/skill-cslib-research-hard)