juniors-best-practice
Skill23 starsChanged 2 months agoMITView on GitHub
Juniors-focused React and TypeScript best practices. Use this skill when writing or reviewing code to enforce clear, consistent, and maintainable patterns across common scopes like React, TypeScript, styling, devtools, assets, and Git.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/juniors-best-practice/AGENTS.mdAGENTS.md
- skills/react-best-practices/AGENTS.mdAGENTS.md
- skills/react-hooks-best-practices/AGENTS.mdAGENTS.md
- skills/reactuse/AGENTS.mdAGENTS.md
- skills/testing-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- integration-test-grillSkill
- vercel-react-best-practicesSkill
- react-hooks-best-practicesSkill
- reactuseSkill
- testcase-grillSkill
- testing-best-practicesSkill
- unit-test-grillSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 86
Read individual rule files for detailed explanations and examples:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Juniors Best Practice
Juniors-focused best practices for React and TypeScript projects. The rules are short, practical, and organized by scope to guide consistent code reviews, refactoring, and new feature work.
When to Apply
Reference these guidelines when:
- Writing or reviewing React/TypeScript code for clarity and consistency
- Teaching junior developers or establishing baseline team conventions
- Refactoring code to align with simple, maintainable patterns
- Standardizing project-wide practices (imports, tooling, naming, commits)
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
| 1 | Beginner Foundations | HIGH | beginner- |
| 2 | TypeScript | MEDIUM | typescript- |
| 3 | React | MEDIUM | react- |
| 4 | Styling | MEDIUM | styling- |
| 5 | Devtools | MEDIUM | devtools- |
| 6 | Assets | LOW-MEDIUM | assets- |
| 7 | Git | LOW | git- |
| 8 | REST | MEDIUM | rest- |
Quick Reference
1. Beginner Foundations (HIGH)
beginner-early-return- Prefer early returns to reduce nestingbeginner-double-negation- Avoid!isNotXpatternsbeginner-unnecessary-destructuring- Keep objects intact for claritybeginner-const-vs-let- Default to constbeginner-nullish-vs-or- Use ?? for defaultsbeginner-useless-return-arrow- Remove redundant returnbeginner-uppercase-constants- Use UPPER_CASE only for stable constants
2. TypeScript (MEDIUM)
typescript-alias-naming- Use safe path alias prefixestypescript-flat-translations- Prefer flat translation keys to reduce duplication
3. React (MEDIUM)
react-string-props- Use string literals when possiblereact-children-prop- Use children for compositionreact-extends-component- Extend native element propsreact-props-typing- Keep props typing readable
4. Styling (MEDIUM)
styling-classnames-function- Use clsx for conditional classesstyling-css-states- Prefer CSS selectors for component states
5. Devtools (MEDIUM)
devtools-formatter-linter- Use formatter and linterdevtools-sorting-imports- Keep imports ordered and groupeddevtools-package-manager-lock- Use a single package manager
6. Assets (LOW-MEDIUM)
assets-svg-files- Use SVGs as components
7. Git (LOW)
git-commit-convention- Use consistent commit conventions
8. REST (MEDIUM)
rest-scalability-abstractions- Build REST layer around reusable transport abstractionsrest-naming-openapi- Keep REST naming aligned with OpenAPI contracts
How to Use
Read individual rule files for detailed explanations and examples:
rules/beginner-early-return.md
rules/react-props-typing.mdEach rule file contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

