yzj623/pplab/anchor-patch-protocol
Claude Code and agent skill by yzj623/pplab
- community
Checking that the SKILL.md file is still in the repository.
Route latent samples through anchor image realism or patch realism for few-shot adaptation.
Install
npx vskill@latest install yzj623/pplab/anchor-patch-protocolSKILL.md
The same SKILL.md was published earlier as yzj623/pplab/anchor-patch-protocol.
Anchor and Patch Realism Protocol
Use this skill when a few-shot image adaptation method needs to distinguish latent samples that should be judged against complete target images from samples that should only receive local patch realism. It implements the protocol from the paper in a deterministic, model-agnostic form suitable for full or reduced experiments.
Inputs
- Latent vectors sampled for a training step.
- Saved anchor vectors, usually one per few-shot target image.
- A maximum anchor distance or sampling radius.
Outputs
- One route per latent sample:
imagefor anchor-region samples orpatchotherwise. - Nearest-anchor distances and indices for auditability.
- Aggregate route counts for validating that both realism pathways are represented.
Workflow
- Validate vector dimensionality and require at least one anchor.
- Compute Euclidean distance from each latent to every saved anchor.
- Mark a sample as
imageif its nearest distance is at or below the configured threshold. - Mark all other samples as
patchand report route counts. - Use route counts in recovery to prove the relaxed realism mechanism executed.
Validation
Run python tests/test_anchor_patch.py or validate this skill tree with validate_skill_tree.py --run-tests.
Limitations
This skill does not implement a discriminator. It provides the routing contract that a discriminator or proxy realism term must follow.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingResearchAgent-Skill/skill_library/paperbench/bridging-data-gaps/skill/cdc_few_shot_image_generation/anchor_patch_protocol/SKILL.md
Popularity
- 7-day trend score
- 5
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/yzj623/pplab/anchor-patch-protocol)