Index of every page on this site: llms.txt
All skills
siberiacancode avatar

/juniors-best-practice

@49a3a43
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/siberiacancode/agent-skills/juniors-best-practice

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈65 tokens for metadata: the name and description. ≈820 when used: this file. ≈7k more on demand in 27 files.

Description uses 3.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈259 characters, or 3.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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 nesting
  • beginner-double-negation - Avoid !isNotX patterns
  • beginner-unnecessary-destructuring - Keep objects intact for clarity
  • beginner-const-vs-let - Default to const
  • beginner-nullish-vs-or - Use ?? for defaults
  • beginner-useless-return-arrow - Remove redundant return
  • beginner-uppercase-constants - Use UPPER_CASE only for stable constants

2. TypeScript (MEDIUM)

  • typescript-alias-naming - Use safe path alias prefixes
  • typescript-flat-translations - Prefer flat translation keys to reduce duplication

3. React (MEDIUM)

  • react-string-props - Use string literals when possible
  • react-children-prop - Use children for composition
  • react-extends-component - Extend native element props
  • react-props-typing - Keep props typing readable

4. Styling (MEDIUM)

  • styling-classnames-function - Use clsx for conditional classes
  • styling-css-states - Prefer CSS selectors for component states

5. Devtools (MEDIUM)

  • devtools-formatter-linter - Use formatter and linter
  • devtools-sorting-imports - Keep imports ordered and grouped
  • devtools-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 abstractions
  • rest-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.md

Each 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

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo4 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a comprehensive set of best practices for junior React and TypeScript developers. It includes guidelines on coding style, state management, and tooling, referencing both well-known community packages and libraries maintained by the author. No security risks or malicious behaviors were identified.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    25/25 files flagged

Signed by skilld at 49a3a43. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 8 months ago
metadata
{
  "author": "siberiacancode",
  "version": "1.0.0"
}

README badge

README badge for siberiacancode/agent-skills/juniors-best-practice