In short.
confide:rehydrate is a local skill for people restoring private details in AI analyses, but it requires their original map and a shared replacement engine outside the supplied folder. Its Python wrapper reads an analysis and JSON map, delegates replacement to confide_core, and writes a file containing the original values. An optional check can detect a mismatched source document, but a failed check does not prevent restoration or writing. The shared engine's matching behavior and runtime privacy remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage comprises confide/skills/rehydrate/SKILL.md and confide/skills/rehydrate/scripts/rehydrate.py at revision 4d37d3b0af1f98cb4ac820d9abbce95e38e909fb, plus the repository-root LICENSE notice. The supplied manifest marks this selected scope complete. The imported confide_core module under confide/shared, upstream redaction implementation, tests and surrounding assistant environment are excluded. Complete folder coverage does not establish a standalone runnable package. Nothing was executed; matching behavior, performance, dependency networking and end-to-end privacy remain unverified.
The overview
Identity
confide:rehydrate is the final restoration step in the CONFIDE workflow in glebis/claude-skills. Its folder contains assistant instructions in SKILL.md and a Python command-line wrapper in scripts/rehydrate.py. It is intended to turn an AI analysis containing reserved CONFIDE placeholders back into an analysis containing the original values.
The original source location is [https://github.com/glebis/claude-skills/tree/main/confide/skills/rehydrate]. The supplied source is pinned to revision 4d37d3b0af1f98cb4ac820d9abbce95e38e909fb.
Assessment
This is a useful, narrowly focused resource when an analysis already contains CONFIDE placeholders and the user retains the corresponding private map. It restores values after analysis; it does not perform the initial redaction or establish whether the text sent to an AI service was sufficiently anonymized.
The main operational concern is incorrect map pairing. Even when the optional verification detects a problem, the wrapper continues and writes the restored file. The selected folder also depends on shared code that is not supplied, so it does not establish a complete runnable installation or verified restoration behavior.
Users
The intended users are people completing a reversible CONFIDE redaction workflow: they have a placeholder version of a document, an AI-generated analysis using those placeholders, and the private mapping created earlier by confide:anon.
Beginners need help maintaining the repository layout and choosing the correct local files. Developers can inspect or integrate the process function, which returns restoration counts, output and map paths, and verification information. The skill cannot reconstruct an original value that is absent from the map.
Capabilities
The wrapper accepts an analysis file, an explicit map through --map, a destination through --out, and an optional original placeholder document through --verify-green. Without --map, it searches for a related map filename beside the analysis. It reports restored and unmatched counts.
The instructions describe support for structured and legacy flat maps, repeated execution without further changes, and altered placeholder forms such as [CONFIDE PERSON 0001] or confide_person_0001. They also say unknown placeholders remain unchanged and ordinary phrases such as Person 1 are untouched. These replacement properties depend on the uncaptured shared engine and are not confirmed by execution.
Using it
Requirements
The documented command uses Python 3. Required inputs are a UTF-8 analysis file and its private JSON map. Verification additionally needs the original GREEN document, meaning the document containing placeholders rather than private values.
The wrapper imports confide_core from confide/shared using its position in the repository. Copying only confide/skills/rehydrate is therefore insufficient. The shared module, its dependencies, the minimum Python version, supported operating systems and assistant installation requirements are not established by the supplied files.
Mechanism
The process function reads the analysis and map, optionally compares the map's recorded green_sha256 with a value calculated by core.green_sha256, then calls core.rehydrate. It writes the returned text as UTF-8. For analysis.md, the default destination is analysis.restored.md.
Automatic map discovery removes a final .md or .txt extension and tries the resulting stem. It also tries removing a recognized .green, .restored or .analysis suffix. Discovery uses filename existence rather than proof that the map belongs to the analysis.
The wrapper does not print the restored text itself. Its normal output includes counts, map and output basenames, and applicable warnings. Network behavior inside the imported shared module cannot be determined from this wrapper.
Setup
Obtain the matching repository revision with confide/shared present and keep the private map locally. From the confide directory, an illustrative command is: python3 skills/rehydrate/scripts/rehydrate.py analysis.md --map session.map.json --verify-green session.green.md --out analysis.restored.md.
Use an explicit --map when filenames could be ambiguous. Confirm that the map belongs to the intended document before relying on any restored result: --verify-green provides a warning, not a requirement that must pass before writing. A successful installation or execution is not established by the supplied evidence.
Example
As a hypothetical example, suppose the user's map associates [CONFIDE_PERSON_0001] with the fictional name Avery. The intended restoration changes the analysis sentence “[CONFIDE_PERSON_0001] requested a revision” into “Avery requested a revision” in the local output file.
If the analysis also contains [CONFIDE_PERSON_0099] and the map has no corresponding entry, the documented behavior is to leave it unchanged and report it as unmatched. An unmatched token may be an AI-invented placeholder, but a wrong or incomplete map is also worth checking. This example was not executed.
Assessment & evidence
Limitations
Verification is optional. A mismatched hash, an unreadable verification file or a legacy map without green_sha256 produces verification information but does not prevent replacement and writing. In normal output, the warning is printed after the restored file has already been written.
The destination is opened in write mode, so an existing file at that path is overwritten without confirmation. The restored output is an ordinary text file containing original values; the wrapper does not add encryption or set restrictive file permissions.
Replacement accuracy, placeholder normalization, idempotence and the shared module's handling of malformed maps are not established by the available implementation. The instructions' local-only assurances cannot establish the behavior of the missing dependency or the surrounding assistant environment.
Reasoning
The design separates private values from text used for AI analysis: the analysis carries reserved identifiers, while the local map retains the originals. A recognizable CONFIDE prefix is intended to distinguish replacement targets from ordinary prose.
Correct map pairing matters more than a successful replacement count. Two documents could use the same placeholder identifier for different people, so restoration with the wrong map could produce plausible but incorrect text. The optional hash check helps identify a pairing problem, but its warning does not stop processing and does not verify the factual accuracy of the AI analysis.
Alternatives
No competing restoration tools or comparative results are described in the supplied evidence. The practical choice within this workflow is to continue using the analysis with placeholders or restore original values locally using the retained map.
confide:anon is identified as the upstream redaction and map-generation step, rather than an alternative restoration tool. Its implementation and compatibility with this captured revision are outside the supplied evidence.
Evidence
The supplied source comprises the skill instructions, the Python wrapper and the repository MIT notice. The instructions describe intended behavior; the wrapper directly supports findings about input handling, map discovery, verification control flow, output writing and printed messages.
The pinned skill instructions are at [https://raw.githubusercontent.com/glebis/claude-skills/4d37d3b0af1f98cb4ac820d9abbce95e38e909fb/confide/skills/rehydrate/SKILL.md]. The pinned wrapper is at [https://raw.githubusercontent.com/glebis/claude-skills/4d37d3b0af1f98cb4ac820d9abbce95e38e909fb/confide/skills/rehydrate/scripts/rehydrate.py]. No shared-engine implementation, execution results or benchmarks are supplied.
Access & freshness
Costs
No price, measured processing cost, hardware requirement or support charge is supplied. The visible wrapper contains no paid-service call, but the shared engine has not been supplied for inspection.
Any cost of the earlier AI analysis and the local execution environment is unknown. The MIT license grants software permissions; it does not establish that the complete workflow has zero cost.
Rights
The supplied repository LICENSE is MIT, with copyright attributed to Gleb Kalinin for 2025–2026. It permits use, copying, modification, distribution and sale of the covered software, provided the copyright and permission notices accompany copies or substantial portions. It disclaims warranties.
The captured notice is available at [https://raw.githubusercontent.com/glebis/claude-skills/4d37d3b0af1f98cb4ac820d9abbce95e38e909fb/LICENSE]. Permissions concerning the user's underlying documents and restored private data are not established by this software license.
Freshness
The supplied snapshot was captured at 2026-11-17T13:36:53.849Z and identifies revision 4d37d3b0af1f98cb4ac820d9abbce95e38e909fb. These findings apply to that revision.
The capture timestamp does not establish a release date or last modification date. A release version, subsequent changes and the current contents of the main branch are unknown.
Actions
Before adopting the skill, obtain and inspect the matching confide_core dependency. Use a known matching map and original GREEN document, choose an output path that can safely be written, and do not treat a verification warning as a successful restoration.
Check unmatched placeholders and the restored values locally before relying on the analysis. Keep the map and restored output out of cloud sharing and source-control commits because they contain the original private information.
