How to contribute to WEB-DEV-FUN. Read before your first PR.
Make contributing easy, consistent, and useful. Every contribution should leave the repo better.
- A GitHub account.
- Markdown skills.
- Something useful to add.
You can submit a PR that gets merged.
- README.md
- CODE_OF_CONDUCT.md (add if missing)
- STYLE.md (this file serves as partial style guide)
- AI_AGENT_GUIDE.md β for AI agents contributing
- Fix typos / broken links. Always welcome.
- Improve existing content. Make it clearer, more accurate, more complete.
- Add new sections. See "Adding New Sections" below.
- Add examples / projects / templates.
- Report issues. Use GitHub Issues.
- Suggest improvements. Open a discussion first for big changes.
Every new markdown file MUST follow the standard template:
# <Topic Name>
> One-sentence pitch.
## Purpose
Why this file exists.
## Prerequisites
What you should already know.
## Learning Outcome
What you'll be able to do.
## Dependencies
Tools/libs/sibling files this depends on.
## Related Files
Links to closely-related files.
## AI Instructions
What an AI agent should do with this file.
## Human Notes
Context, opinions, gotchas.
## References
Authoritative external links.
## Further Reading
Books, courses, articles.
## Exercises
Hands-on tasks.
## Projects
End-to-end projects.- Use ATX-style headings (
#, not===underline). - Use fenced code blocks with language tags.
- Use tables for comparisons.
- Use lists for steps.
- Maximum line length: 120 chars (where reasonable).
- Trailing newline at end of file.
- Direct. No fluff.
- Active voice.
- "You" not "we".
- Short sentences.
- Concrete examples.
- Relative links within the repo.
- HTTPS for external.
- Anchor text describes the target. No "click here".
- Verify links work before submitting.
- Always specify language in fences.
- Test the code. If it doesn't run, don't include it.
- Use modern syntax (ES2022+, TS, etc.).
- Comment the WHY, not the WHAT.
- Use digits for numbers (12, not twelve), except for small counts.
- Use K / M / B for large (4K, 1.2M).
- Discuss first. Open a GitHub Discussion or Issue. Get alignment.
- Pick the right folder. Check INDEX.md.
- Create the README.md following the file template.
- Add supplementary files (examples, best-practices, cheat-sheet, etc.) as needed.
- Update INDEX.md with the new entry.
- Update relevant nav links in adjacent files.
- Test every link.
- Open a PR with a clear description.
A topic folder should contain:
README.mdβ main file, follows templatebest-practices.mdβ dos and don'tscheat-sheet.mdβ quick referenceexamples/β code samplesresources.mdβ linksexercises.mdβ practice taskscommon-mistakes.mdβ pitfalls
Not every folder needs every file. Don't pad.
Conventional Commits:
feat: add Vue 3 composition API guidefix: broken link in CSS READMEdocs: clarify Web Vitals targetsrefactor: reorganize AI folderchore: bump dependencies
- Branch from
main. Name itfeat/...,fix/...,docs/.... - One concern per PR.
- Small PRs. < 400 lines diff ideal.
- PR description must include:
- What changed
- Why
- How to verify
- Checklist: [ ] tests pass, [ ] links work, [ ] file template followed
- Self-review before requesting review.
- Respond to every comment (even with "agree, will follow up").
- Rebase on main before merge.
- Squash merge unless commits tell a story.
Reviewers will check:
- Accuracy (technical correctness).
- Completeness (covers the topic usefully).
- Clarity (understandable by target audience).
- Consistency (follows repo style).
- Links work.
- File template followed.
- No plagiarism (cite sources).
- No AI-generated slop (you can use AI tools, but the output must be reviewed and human-quality).
Be kind. Be constructive. Be inclusive. No harassment, no personal attacks, no spam. Disagree on the tech, not the person.
- Cite sources for non-original content.
- Respect licenses (most tech docs are CC-BY or similar; quote briefly with link).
- Don't copy-paste large blocks from other sources.
AI agents are welcome to contribute, but:
- The PR description MUST note that the PR was AI-generated.
- A human MUST review and approve before merge.
- The AI MUST follow AI_AGENT_GUIDE.md.
- No hallucinated packages, APIs, or links.
- Verify everything before submitting.
By contributing, you agree your contributions are licensed under the MIT license. See LICENSE.
All contributors are recognized in the README. (Add a Contributors section if it doesn't exist.)
Thanks for making WEB-DEV-FUN better.
Next: README.md Β· INDEX.md Β· CHANGELOG.md