Skip to content

feat(skill): make react-clean-architecture-add-component self-contained with local references#1910

Open
tmt823 wants to merge 10 commits into
github:stagedfrom
tmt823:feat/react-clean-architecture-add-component-skill
Open

feat(skill): make react-clean-architecture-add-component self-contained with local references#1910
tmt823 wants to merge 10 commits into
github:stagedfrom
tmt823:feat/react-clean-architecture-add-component-skill

Conversation

@tmt823

@tmt823 tmt823 commented Jun 3, 2026

Copy link
Copy Markdown

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, or workflow file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, or workflow with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the staged branch for this pull request.

Description

Adds a new skill, react-clean-architecture-add-component, to scaffold React components under src/components with clear ui/features boundaries and strict repository conventions.

This contribution includes:

  • A user-invocable skill definition with required-question flow, classification safeguards, scaffold rules, validation steps, and output contract
  • Bundled local references for component architecture and TypeScript/SCSS rules
  • Documentation index update so the skill is discoverable

Validation performed:

  • npm run build
  • npm run skill:validate

Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • Update to existing instruction, prompt, agent, plugin, skill, or workflow.
  • Other (please specify):

Additional Notes

  • No breaking changes are expected.
  • This PR targets staged.
  • Added skill definition and bundled references.
  • Updated skills documentation index.

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings June 3, 2026 12:42
@tmt823 tmt823 requested a review from aaronpowell as a code owner June 3, 2026 12:42
@github-actions github-actions Bot added new-submission PR adds at least one new contribution skills PR touches skills skill-check-warning Skill validator reported warnings labels Jun 3, 2026
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🔍 Skill Validator Results

⚠️ Warnings or advisories found

Scope Checked
Skills 1
Agents 0
Total 1
Severity Count
❌ Errors 0
⚠️ Warnings 1
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ Found 1 skill(s)
ℹ️ [react-container-presentation-component] 📊 react-container-presentation-component: 878 BPE tokens [chars/4: 1,034] (detailed ✓), 5 sections, 0 code blocks
ℹ️ [react-container-presentation-component] ⚠ No code blocks — agents perform better with concrete snippets and commands.
ℹ️ ✅ All checks passed (1 skill(s))
Full validator output
Found 1 skill(s)
[react-container-presentation-component] 📊 react-container-presentation-component: 878 BPE tokens [chars/4: 1,034] (detailed ✓), 5 sections, 0 code blocks
[react-container-presentation-component]    ⚠  No code blocks — agents perform better with concrete snippets and commands.
✅ All checks passed (1 skill(s))

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a new /add-component skill with supporting references to standardize how React components are scaffolded under src/components.

Changes:

  • Introduces the react-clean-architecture-add-component skill definition and procedure.
  • Adds reference docs for component architecture and TypeScript/SCSS rules used by the skill.
  • Registers the new skill in docs/README.skills.md.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
skills/react-clean-architecture-add-component/references/typescript-and-scss-rules.md Documents TypeScript + SCSS constraints for the scaffolding skill.
skills/react-clean-architecture-add-component/references/component-architecture.md Defines component classification, file layout, and dependency rules.
skills/react-clean-architecture-add-component/SKILL.md Implements the /add-component skill workflow and output contract.
docs/README.skills.md Adds the new skill to the published skills index.


### Style Constraints

- Prefer Mantine first; use SCSS for gaps only.

@tmt823 tmt823 Jun 3, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed. The fix has been committed as 9b9408c

Comment on lines +61 to +62
- `presentation.stories.tsx` (when needed)
- `presentation.module.scss` (when needed)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed. The fix has been committed as 3ef1eb9

Comment thread skills/react-container-presentation-component/SKILL.md
Comment thread skills/react-clean-architecture-add-component/SKILL.md Outdated

@aaronpowell aaronpowell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This skill seems like it might be missing some overall context around "clean architecture" as it really seems to be focusing on a thin slice of how to define a component for React with only somewhat narrow uplift in model skill.


## When To Use

- When the user runs `/add-component`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect based on the name of the skill and could result in the skill running at an incorrect time, or triggering another skill inadvertently.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in commit 1f072db


## Required Questions

If any of the following information is missing, ask using `vscode_askQuestions`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ask_user so it is not VS Code specific.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in commit 4f454b5

Comment on lines +7 to +10
- Do not use `any`.
- Use `type` for props instead of `interface`.
- Explicitly annotate function return types.
- Prefer `@` alias imports and avoid deep relative imports.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These would be better with examples for the agent to follow.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in bae1b9d . Added code examples to the TypeScript rules reference.

@tmt823 tmt823 force-pushed the feat/react-clean-architecture-add-component-skill branch from 06524d2 to bae1b9d Compare June 11, 2026 12:31
@tmt823

tmt823 commented Jun 11, 2026

Copy link
Copy Markdown
Author

This skill seems like it might be missing some overall context around "clean architecture" as it really seems to be focusing on a thin slice of how to define a component for React with only somewhat narrow uplift in model skill.

@aaronpowell

Thank you for the feedback. I've renamed the skill to react-container-presentation-component to better reflect its scope, and added design intent, layer responsibilities, and Container/Presentation separation rules (including anti-patterns and examples) to the reference file to provide the broader design context that was missing.
Addressed in 4717bd0

@aaronpowell

Copy link
Copy Markdown
Contributor

The README needs to be updated with the change to the skill description. Run npm run build to update them.

@tmt823

tmt823 commented Jun 12, 2026

Copy link
Copy Markdown
Author

@aaronpowell
Fixed in commit 4feeb93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-submission PR adds at least one new contribution skill-check-warning Skill validator reported warnings skills PR touches skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants