F8 Editor Componentbind Workflow
Developmentf8-editor-componentbind-workflowF8 Editor Componentbind Workflow is an Agent Skill for development published in the TippingGame/F8Framework repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when working with ComponentBind editor tools — auto-generating component reference code from UI hierarchies in F8Framework.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/TippingGame/F8Framework/blob/HEAD/Tests/AISkills/f8framework-skills/editor/f8-editor-componentbind-workflow/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/f8-editor-componentbind-workflow, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
ComponentBind Editor Workflow
Use this skill when
- The task involves auto-binding UI component references in code.
- The user asks about component naming conventions for auto-generation.
- Troubleshooting null component references or binding code issues.
Path resolution
- Editor code: Assets/F8Framework/Editor/ComponentBind
- Runtime config: Assets/F8Framework/Runtime/ComponentBind/DefaultCodeBindNameTypeConfig.cs
Sources of truth
- Runtime module: Assets/F8Framework/Runtime/ComponentBind
- Editor module: Assets/F8Framework/Editor/ComponentBind
Naming conventions
Component references are auto-generated based on child GameObject naming:
| Format | Example | Generated Field |
|---|---|---|
SimpleName_ComponentType | Title_Text | Text Title_Text |
Name_ComboType | Btn_Button_Image | Button Btn_Button; Image Btn_Image |
Name_Type[index] | Item_Image[0] | Array of Image components |
Rules
- Only allows: letters, digits, underscores, and Chinese characters
- First character cannot be a digit
- Final format:
SimplifiedName_ComponentType - Combo types separated by underscore:
Button_Image - Arrays supported:
Image[0],Image[1] - May need to click generate button twice
Workflow
- Create UI hierarchy with properly named child GameObjects.
- Attach BaseView script to root GameObject.
- Click the component bind generation button in Inspector.
- Generated code appears between auto-generated markers in BaseView.
- Add new type mappings in
DefaultCodeBindNameTypeConfig.csif needed.
Common error handling
| Error | Cause | Solution |
|---|---|---|
| Field not generated | Naming convention wrong | Check name format: Name_Type |
| Null reference at runtime | Hierarchy changed after generation | Regenerate bindings |
| Custom type not recognized | Not in DefaultCodeBindNameTypeConfig | Add type mapping |
Cross-module dependencies
- UI: Works with BaseView UI panel system.
Output checklist
- Child objects named with correct convention.
- Binding code generated.
- References validated at runtime.