Byte code rules
Your own ByteDance, powered by Codex skills.
npx -y skills add elan6666/your-bytedance-skills --skill byte-code-rulesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Apply Your ByteDance engineering behavior rules for writing, reviewing, refactoring, planning, or executing code in Byte OS. Use with byte-build, byte-plan, byte-review, byte-iterate, byte-auto, or any coding task to avoid overengineering, keep edits surgical, surface risky assumptions, and define verifiable success criteria.
SKILL.md
4.2 KB, as published. Nobody here has run it
Byte Code Rules
This is the Byte OS engineering guardrail layer. It adapts the MIT-licensed Karpathy-inspired coding guidelines from forrestchang/andrej-karpathy-skills into the Your ByteDance workflow.
Core Rules
-
Think before coding.
- Inspect the relevant project files before editing.
- State assumptions only when they affect the implementation or product decision.
- If multiple interpretations would produce different code, ask or present the tradeoff before committing.
- Push back when a simpler or safer approach better serves the product goal.
-
Simplicity first.
- Build the smallest thing that satisfies the plan, acceptance criteria, and user request.
- Do not add speculative features, generic frameworks, unused configuration, or single-use abstractions.
- If the implementation becomes much larger than the problem, simplify before continuing.
- Prefer existing project patterns, dependencies, and local helpers.
-
Surgical changes.
- Keep every changed line traceable to the user request, current plan, or verification need.
- Match the surrounding style instead of restyling adjacent code.
- Do not refactor, reformat, rename, or delete unrelated code.
- Clean up only unused imports, variables, files, or comments created by the current change.
- Mention unrelated dead code or design debt in logs or review notes instead of silently removing it.
-
Goal-driven execution.
- Turn each coding task into concrete success criteria before implementation.
- For bugs, reproduce the failure with a test or minimal check when practical, then make it pass.
- For features, define acceptance criteria and verify the first user workflow.
- Run the most relevant available tests, linters, type checks, builds, browser checks, or manual verification.
- Record what was verified and what remains unverified.
-
Navigate large codebases deliberately.
- Read
AGENTS.md,CLAUDE.md,.byte-os/CODEBASE_MAP.md,.byte-os/HARNESS.md, and.byte-os/AGENTS_AUDIT.mdwhen they exist. - Build the applicable
AGENTS.mdcontext stack from repo root to the task's start directory before broad edits. - Start in the relevant module directory when the task is scoped; do not default to repo root for every search.
- Use scoped test/lint/build commands from local context files or plan metadata.
- If
AGENTS.mdis stale, bloated, missing scoped commands, or missing safe edit boundaries for the touched area, record the gap and repair the harness before broad implementation. - Exclude generated files, build outputs, dependency folders, vendored code, and large artifacts unless they are the task target.
- Prefer LSP or symbol-aware navigation when available; use
rgand direct file reads as the reliable fallback. - Use read-only exploration summaries or subagents before editing unfamiliar subsystems.
- Read
Byte OS Integration
byte-plan: every engineering plan must include write scope, non-goals, acceptance criteria, and verification steps.byte-build: apply these rules before file edits, during implementation, and before marking a plan complete.byte-codebase-harness: create or maintain Claude/Codex context files, codebase maps, scoped command matrices, and noise filters before large-codebase execution.byte-review: flag overengineering, broad unrelated edits, unverified success criteria, and hidden assumptions as findings.byte-iterate: each code change must map to evidence, an OKR, a review finding, a test failure, or real user feedback.byte-auto: keep the same rules even in one-click mode; speed comes from parallelism and clear state, not skipping verification.
Tradeoff
These rules bias toward caution on non-trivial work. For obvious one-line fixes, apply the spirit quickly: make the minimal change, verify what is cheap to verify, and avoid unnecessary process.