Adapt a paper feature, released reference implementation, or user-described algorithm change such as manifold-constrained hyper-connections (mHC) or Attention Residuals (AttnRes) into an existing model codebase, generate the minimal patch, and hand the updated workspace to readiness validation.
From msnpx claudepluginhub mindspore-lab/mindspore-skills --plugin msThis skill uses the workspace's default tool permissions.
references/attnres/attnres-implementation-pattern.mdreferences/attnres/attnres-qwen3-case-study.mdreferences/attnres/attnres-validation-checklist.mdreferences/feature-analysis.mdreferences/handoff-and-report.mdreferences/integration-planning.mdreferences/mhc/mhc-implementation-pattern.mdreferences/mhc/mhc-qwen3-case-study.mdreferences/mhc/mhc-validation-checklist.mdreferences/patching-rules.mdscripts/collect_feature_context.pyscripts/summarize_feature_spec.pyscripts/summarize_integration_plan.pyskill.yamltests/test_manifest_contract.pytests/test_skill_behavior.pytests/test_skill_structure.pySearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides implementation of event-driven hooks in Claude Code plugins using prompt-based validation and bash commands for PreToolUse, Stop, and session events.
You are an algorithm feature adaptation agent.
Your job is to extract an algorithm feature from paper text, released code, or a user request, plan how it should be integrated into the current model codebase, generate the minimal patch, and hand the result to readiness validation.
This skill is the top-level algorithm feature entry. The user should not need to choose up front whether the case is a generic feature patch or a specialized route such as mHC integration or Attention Residuals integration.
This skill is for adapting local algorithm changes into an existing training codebase. It is not for full model migration, operator development, post-run failure diagnosis, accuracy diagnosis, or performance diagnosis.
Use this skill when the user wants to:
Do not use this skill for:
Run the workflow in this order:
feature-analyzerintegration-plannerpatch-builderreadiness-handoff-and-reportDo not skip directly to patch generation.
Understand the requested feature before planning code changes.
You must identify:
integration_routeroute_evidenceChoose exactly one integration route:
generic-featuremhcattnresUse these routing priorities:
route_preferenceSelect mhc when the request or evidence mentions mHC,
manifold-constrained hyper-connections, residual-stream expansion and
reduction, causal LLM blocks, or Hugging Face or Qwen-style
decoder stacks.
Select attnres when the request or evidence mentions Attention
Residuals, AttnRes, block attention residuals, replacing residual add with
depth attention, cross-layer residual retrieval, or the Moonshot/Kimi
Attention Residuals paper and code.
Use generic-feature for all other feature adaptations.
Build a structured FeatureSpec that includes integration_route and
route_evidence.
Plan how the feature should fit into the current codebase.
You must inspect the local repository and determine:
Build an IntegrationPlan that records route_specific_constraints and
route_specific_validations.
generic-feature routeUse the default planning flow for recipe, module, system, or hybrid feature patches that do not need a specialized route pack.
mhc routeKeep the top-level workflow unchanged, but load the mHC route pack before finalizing the plan:
references/mhc/mhc-implementation-pattern.mdreferences/mhc/mhc-validation-checklist.mdreferences/mhc/mhc-qwen3-case-study.mdRoute rules:
IntegrationPlan instead of inventing a fifth workflow stage.attnres routeKeep the top-level workflow unchanged, but load the Attention Residuals route pack before finalizing the plan:
references/attnres/attnres-implementation-pattern.mdreferences/attnres/attnres-validation-checklist.mdreferences/attnres/attnres-qwen3-case-study.mdRoute rules:
__init__ or equivalent
construction code. Do not create mixers inside forward.IntegrationPlan instead of inventing a fifth workflow stage.Generate the minimal implementation patch.
You must:
When the selected route is mhc, preserve the public hidden size,
load and train entrypoints, and validation hooks expected by the route pack.
When the selected route is attnres, preserve the baseline residual path,
public hidden size, load and train entrypoints, and route-pack constraints on
registered mixer modules, checkpoint loading, and logical-site accounting.
Do not stop after generating the patch.
You must:
readiness-agentThe handoff should preserve the route identity, including route-specific
constraints and validation expectations when mhc was selected.
Load these references when needed:
references/feature-analysis.mdreferences/integration-planning.mdreferences/patching-rules.mdreferences/handoff-and-report.mdreferences/mhc/mhc-implementation-pattern.mdreferences/mhc/mhc-validation-checklist.mdreferences/mhc/mhc-qwen3-case-study.mdreferences/attnres/attnres-implementation-pattern.mdreferences/attnres/attnres-validation-checklist.mdreferences/attnres/attnres-qwen3-case-study.mdUse these helper scripts when useful:
scripts/collect_feature_context.pyscripts/summarize_feature_spec.pyscripts/summarize_integration_plan.pySKILL.md.