project-reconstruction
Skill10 starsChanged 2 months agoApache-2.0View on GitHub
Generate and consume the canonical page reconstruction spec, page blueprint and region relationship graph — versioned, machine-readable formats that let another agent rebuild or modify a captured page.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- TashanGKD/tashan-cursor-skillstheir own version, first seen Mar 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- TashanGKD/tashan-cursor-skills★ 21same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- browser-forensicsSkill
- browser-interactionSkill
- browser-state-recoverySkill
- dom-inspectionSkill
- dom-mutationSkill
- dom-targetingSkill
- extension-troubleshootingSkill
- human-like-interactionSkill
- mcp-troubleshootingSkill
- page-annotationSkill
- project-captureSkill
- regression-testingSkill
- selector-recoverySkill
- tab-managementSkill
- viewport-testingSkill
- visual-dom-comparisonSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
read expectedModifications as the work items and verificationRules as the acceptance tests — turn each condition into an executable check …
- Very specific: line 64
Every selector primary actually appears in its region's selectorCandidates.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Skill: Project Reconstruction
PURPOSE
Convert a captured project (regions, DOM, annotations) into the two canonical outputs agents reason from: the page blueprint (architecture: sections, hierarchy, interactive inventory, repeated components, layout relationships) and the reconstruction spec (selectors with fallbacks, constraints, expected modifications, verification rules — with a versioned schema).
WHEN TO USE
- Handing page knowledge to an agent that must rebuild, restyle or modify the page from captured evidence.
- Deriving what to build/modify from the region set instead of re-inspecting the live page.
- Understanding page architecture quickly (major sections, semantic regions, repeated patterns).
- Validating that a modification satisfies the captured verification conditions.
PREREQUISITES
- An existing project with captured regions (project-capture + page-annotation skills).
- For the blueprint and relationship graph derived from live containment: the source page reachable (extension or Node simulation).
WORKFLOW
get_page_blueprint {projectName?}— architectural map:majorSections— landmarks (header/nav/main/aside/footer/section/article + ARIA roles) with bounds, children summary and avisibleflag (zero-size sections in JSDOM simulation are included withvisible: false, not dropped);hierarchytree;keyInteractiveElements(bounded, text/aria/placeholder-scored, each mapped to its section);repeatedComponents— structural signatures grouped from list/grid/cards containers with occurrence counts and sample/container selectors;layoutRelationships(e.g. "content+sidebar layout: sidebar at x=… (left sidebar)", flex/grid body) andsemanticRegions. WithprojectNameit persists tometadata/blueprint.json.
get_region_relationship_graph {projectName}— nodes (page + regions) and edges (contains,sibling-of,ancestor-of,overlaps) derived from live DOM containment when elements resolve.generate_reconstruction_spec {projectName}— writes and returnsmetadata/reconstruction-spec.json:metadata/viewport/structure(domSnapshotFile, domHash, nodeCount);regionswithselectorCandidatesandreconstructionRole;hierarchy,semanticRoles,visualConstraints(top relevant styles per region),interactions(click/type/select-option/navigate/toggle),selectors(primary + up to 4 fallbacks),content,styles,annotations(userComment, intendedChange);expectedModifications— one entry per region that has an intended change;verificationRules— one entry per region that has verification conditions;migration— schema evolution slot.
- Consume as another agent, in this order:
- resolve each region via
selectors.primary, falling back throughfallbacksin order (deterministic resolution); - read
expectedModificationsas the work items andverificationRulesas the acceptance tests — turn each condition into an executable check (wait_for_condition / inspect / compare_page_states); - respect
visualConstraintsandreconstructionRolewhen generating markup; usedomFile/contextDomFilefor exact original structure; - re-verify with the original project: rebuild, then run the verification matrix.
- resolve each region via
- Respect schema versioning: read
schemaVersionbefore interpreting; breaking changes MUST bump it and add amigrationentry — if the version is newer than you understand, stop and check the migration notes rather than guessing fields.
TOOLS
generate_reconstruction_spec, get_page_blueprint, get_region_relationship_graph, get_project, list_region_annotations, get_region_annotation, export_agent_package, import_project
EXAMPLES
tools/call get_page_blueprint { "projectName": "checkout-redesign" }
tools/call get_region_relationship_graph { "projectName": "checkout-redesign" }
tools/call generate_reconstruction_spec { "projectName": "checkout-redesign" }
tools/call get_region_annotation { "projectName": "checkout-redesign", "regionId": "region_m1x9_2" }FAILURE MODES
- PROJECT_NOT_FOUND — spec/blueprint/graph against a missing project;
list_projectsfirst. - Empty or thin blueprint — no regions captured and a page with few landmarks; capture more regions or inspect via
analyze_domto understand what the generator had to work with. - Graph edges missing beyond page→region contains — region elements did not resolve against the live DOM (page changed since capture or selectors stale); run selector-recovery or re-capture.
- Unversioned interpretation — consuming a spec whose
schemaVersionyou did not check; future versions may add/rename sections with migration notes. - Interaction rows say "none" — the region tag/role is not interactive; do not invent interactions the evidence does not support.
VALIDATION
- The spec file exists at
metadata/reconstruction-spec.jsonandschemaVersionis present; every region id in the spec exists inregions/. - Every selector primary actually appears in its region's
selectorCandidates; fallbacks are distinct from the primary. expectedModificationscount must equal the number of regions withintendedChange; same forverificationRulesvs verification conditions.
RECOVERY
- Stale selectors in a spec: re-verify each region on the live page; if resolution fails, use
recover_selectorwith the region's stored snapshot and regenerate the spec — never hand-edit observed selector fields. - Page redesigned since capture: re-capture the project from scratch; diffing old spec vs new capture exposes what moved.
- Consuming agent on a newer schema: read
migration.notes, adapt, and prefer regenerating the spec with the current tools over parsing unknown fields.
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.

