MDF Extension Development Assistant
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_be70aa17/test-skill.
About this skill
Problem
MDF extension work usually breaks down at concrete engineering steps. A workspace may contain multiple front-end projects, so the first issue is identifying the real MDF project root. UI metadata in .yoncode/ must be parsed from XML instead of guessed from memory. Extension scripts must land in vendor or customer-custom directories with the correct file names, object names, and lifecycle entries. Finally, generated code needs to be checked against a framework API whitelist to avoid deprecated or nonexistent methods.
How It Works
The skill follows a reviewable workflow:
- Project detection: prefer
scripts/detect_target_project_root.pyto lock one project root and distinguish vendor from custom development structures. - UI metadata parsing: use
yct dsl indexon.yoncode/{domain}-meta/{appCode}/ui/*.xml, andyct dsl detailfor node-level inspection. - Target location and feasibility: use
cSubId,cBillNo, andcBillTypeto choose the extension entry and decide whether the requirement can be implemented as an extension script. - Code generation: generate
*.Extend.jsor customer-custom extension scripts from templates,API-INDEX.md, andAPI-WHITELIST.md, rather than writing from free-form memory. - Validation and debugging: compare framework API calls against the whitelist, output pass/fail issue lists, or prepare local debug context.
Boundaries
It is aimed at front-end extension scripts for MDF bill pages. It does not manage backend metadata, fetch protocols, generate protocol summaries, or perform design review. If UI metadata is missing, the workflow may try yct metadata search to pull it into .yoncode, but failed retrieval still requires a valid domain and appCode.
Use Cases
- Confirm the MDF project root in a multi-front-end workspace and determine whether the path follows vendor or custom-development structure.
- Parse UI metadata XML in .yoncode to extract cSubId, cBillNo, and control types before choosing the extension target.
- Add save validation, field linkage, or button logic to an MDF bill page and generate a whitelist-compliant extension script.
- Diagnose an unactivated extension script by re-reading files, checking the API whitelist, and preparing local debug context.
Best For
- Engineers extending MDF bill pages who need metadata-driven extension scripts without using non-whitelisted APIs.
- Engineers taking over custom MDF projects who need to identify vendor versus custom directory structures and extension entries.
- Front-end debugging engineers who need to trace inactive extensions using files, API whitelist checks, and local debug context.
- Engineers assessing MDF page changes who need to verify feasibility from UI metadata before writing extension code.
Related Skills
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.
Executes an Eversheet Web CDP login using externally supplied baseUrl, username, and password, then verifies the page reaches a logged-in home state.
Clarify product goals, user flows, pages, data, and permissions, then output an implementation-ready development prompt and lightweight spec.