Skip to content

Added component scaffold skill#39

Merged
brYch97 merged 4 commits into
TALXIS:masterfrom
brYch97:users/dominik.brych/instructions
Jun 9, 2026
Merged

Added component scaffold skill#39
brYch97 merged 4 commits into
TALXIS:masterfrom
brYch97:users/dominik.brych/instructions

Conversation

@brYch97

@brYch97 brYch97 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Add scaffold-component-skill Copilot skill

Adds a new Copilot skill at .github/skills/scaffold-component-skill/SKILL.md that scaffolds new React component folders according to this repository's coding conventions.


What the skill does

Invoke it with:

name=<ComponentName> overridableUi=<yes|no>

The skill creates a new component subfolder (kebab-case) inside the current folder and generates the canonical files:

overridableUi Generated files
no <ComponentName>.tsx, styles.ts, index.ts
yes Above + components/components.tsx, components/index.ts

Conventions encoded in the skill

  • Folder names — kebab-case derived from the PascalCase component name
  • Props interfaceI<ComponentName>Props, defined in the main .tsx file
  • StylesmergeStyleSets from @fluentui/react, factory exported as get<ComponentName>Styles, called inside useMemo
  • Overridable UII<ComponentName>Components interface + default mappings object; merged in component body as { ...DefaultComponents, ...props.components }
  • Exports — every folder gets a barrel index.ts re-exporting the component
  • No inline styles, no any, no fake business logic in generated scaffolds

Why

Ensures every new component starts from the same structural baseline and enforces repository conventions (naming, styling, overridable UI pattern) without having to remember them or look them up.

@brYch97 brYch97 marked this pull request as ready for review June 9, 2026 09:56
@brYch97 brYch97 changed the title Users/dominik.brych/instructions Added component scaffold skill Jun 9, 2026
@brYch97 brYch97 merged commit 0cc6a51 into TALXIS:master Jun 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant