ctxpipe: Skill for Claude Code

.agents/skills/preview-env/hydrate/SKILL.md

preview-env-hydrate is a skill for Claude Code from ctxpipe-ai/ctxpipe. It costs 31 tokens per session (1,627 once invoked), scanned A, original, MIT.

A test flow that turns a repository commit into a searchable workspace view. It builds stored project knowledge, a code index, and a relationship graph, while recording skipped files and retrying failed work.

In plain words
What is it for?
Use it to test initial hydration, indexing, valid and malformed files, re-hydration after commits, retry behaviour, and the resulting file tree and knowledge records.
Why use it?
It checks that a new or changed repository becomes available to the product instead of remaining stuck while files are being processed. It also verifies that the displayed status matches the backend state.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is ctxpipe-ai/ctxpipe's own configuration. It tells Claude Code how to work on ctxpipe itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ctxpipe configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ctxpipe-ai/ctxpipe. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ctxpipe-ai/ctxpipe/main/.agents/skills/preview-env/hydrate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ctxpipe-ai/ctxpipe

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for preview-env-hydrate

README.md
[![agentmods](https://agentmods.dev/badge/skills/ctxpipe-ai/ctxpipe/hydrate/github.svg)](https://agentmods.dev/skills/ctxpipe-ai/ctxpipe/hydrate)
Your own site
<a href="https://agentmods.dev/skills/ctxpipe-ai/ctxpipe/hydrate"><img src="https://agentmods.dev/badge/skills/ctxpipe-ai/ctxpipe/hydrate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for preview-env-hydrate

Your own site · 80×15
<a href="https://agentmods.dev/skills/ctxpipe-ai/ctxpipe/hydrate"><img src="https://agentmods.dev/badge/skills/ctxpipe-ai/ctxpipe/hydrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,627 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01627
Opus 5.5 $0.00012 $0.00651
Sonnet 5.5 $0.00006 $0.00325
Haiku 4.5 $0.00003 $0.00163

Measured 4d ago against content hash d4c2736a6288, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

preview-env-hydrate scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Workspace **revision** prepare: `workspace-hydrate` rebuilds the projection (Postgres knowledge units, graph, embeddings) and `workspace-index` the code index. Not `POST /repositories`. [Harness](../harness.md) is `PASS`
.agents/skills/preview-env/hydrate/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

preview-env hydrate

Workspace revision prepare: workspace-hydrate rebuilds the projection (Postgres knowledge units, graph, embeddings) and workspace-index the code index. Not POST /repositories. Harness is PASS; worker and codesearch were woken. Flow format: run-setup. Use browser plus curl with a cookie jar exported from account A's session (COOKIE_JAR).

HYD-1 New Workspace reaches an active projection

Requires ONB-4 (Workspace 1 from the knowledge template). Steps

  1. Poll curl -fsS -b "$COOKIE_JAR" "$BASE_URL/$orgSlug/api/v1/workspaces/$workspace1Slug" every 5 s; record hydrateStatus, hydrateError, desiredSha, activeProjectionSha.
  2. When ready, GET …/files/tree (expect 200, not 409) and open Files.
  3. Compare the Settings hydrate chip with the JSON.

Expect (UI) chip Hydrate ready matching the JSON; Files shows the tree with AGENTS.md, the 4 knowledge files, the malformed file, and .agents/skills/ctxpipe-knowledge/SKILL.md from the bootstrap commit. Expect (backend) workspace_commit_projections row for the head SHA; exactly 4 workspace_knowledge_units rows (one per valid knowledge file; AGENTS.md, .agents/, and the malformed file have none); activeProjectionSha equals desiredSha; workspace-hydrate then workspace-index runs succeeded; the bootstrap commit from ONB-4 is part of the projected revision. Budget 60 s / 3 min, Workspace created to hydrateStatus === "ready". If the worker deploy timestamp did not move after enqueue, wake again (harness) and keep polling. Evidence HYD-1-1.png (Settings chips), HYD-1-2.png (Files); JSON status; trace and openworkflow.run.id of both runs.

HYD-2 Malformed file is skipped, not fatal

Requires HYD-1; knowledge/operations/legacy-migration-notes.md from the knowledge template (run-setup). Steps

  1. Open Settings on the Workspace page.
  2. In the Hydrate skipped 1 file notice, select knowledge/operations/legacy-migration-notes.md.
  3. Check the knowledge units for that path.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 73 lines · 31 tokens per session scan A d4c2736a6288

Subscribe to this mod's changes

preview-env-hydrate is a skill published in the GitHub repository ctxpipe-ai/ctxpipe (27 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 1,627 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.

Related

Other skills, from other repositories

browser-journey-test

Validate user stories by simulating real user journeys in a live browser against deployed application. Activate after implementation to verify actual user experience against acceptance criteria, not just code logic.

digipulse-engineering/GAAI-framework · 40 tokens

sidekick-audit

Deterministic UI quality audit of a web page or a whole product — WCAG 2.2 A/AA accessibility (axe-core), Core Web Vitals (LCP/CLS), browser health (console errors, failed requests, mixed content) and tap-target size — reported dimensions-first, with confirmed-vs-uncertain findings clustered into root-cause families…

redevops-io/sidekick · 141 tokens

sidekick-test

Goal-based end-to-end UI testing that PROVES the outcome. Given a URL and a plain-language goal (e.g. 'sign up, create a project, and invite a teammate'), sidekick drives a real browser to do it and then verifies success with a DETERMINISTIC signal on the real page — the execution agent is never allowed to grade its…

redevops-io/sidekick · 137 tokens

validate

Validate Semantica pipelines, extraction quality, graph schemas, and ontology consistency. Returns structured error/warning checklists. Uses PipelineValidator, PipelineBuilder.validatepipeline(), GraphValidator, and OntologyValidator. Sub-commands: pipeline, step, dependencies, extraction, graph, ontology, performance.

semantica-agi/semantica · 0 tokens

agent-evaluation

A guide to measuring whether an AI agent works reliably on the tasks that matter. It covers repeatable test environments, program checks, human-like scoring rules, failure analysis, and experiments that separate model problems from system problems.

bojieli/ai-agent-book · 133 tokens

bad-case-to-dpo

A guide to turning failed production agent runs into training and evaluation data. It explains how to find the first mistake, create preference examples for DPO (Direct Preference Optimization), and check that a fix does not damage other tasks.

bojieli/ai-agent-book · 168 tokens