AzamCodes

nextjs-portfolio-clean-code

0
0
# Install this skill:
npx skills add AzamCodes/nextjs-portfolio-clean-code

Or install specific skill: npx add-skill https://github.com/AzamCodes/nextjs-portfolio-clean-code

# Description

Clean code and maintainability best practices and AI agent skill for Next.js portfolio websites.

# SKILL.md

Next.js Portfolio Clean Code Best Practices

Code-quality–focused AI Agent Skill for auditing and enforcing clean, maintainable, and idiomatic code in Next.js portfolio websites.

Description

This skill enforces clean code and maintainability best practices commonly used in real-world React and Next.js projects.
It focuses on reducing complexity, improving readability, and encouraging modern Next.js patterns such as Server Components by default.

This is an audit and enforcement skill, not an automatic refactor or code generator.

What This Skill Does

Promotes clean, maintainable React and Next.js code

Encourages Server Components as the default rendering model

Reduces unnecessary client-side logic

Enforces consistent code and folder structure

Improves long-term readability and maintainability

Rules

Follow established React component best practices

Use Server Components by default unless client-side logic is required

Maintain a consistent and predictable code style

Avoid unnecessary client-side state, effects, or logic

Use a clear, scalable folder and file structure

Scope

React component structure and responsibility

Server vs Client Component usage

Code organization and folder hierarchy

Elimination of unnecessary complexity

Maintainability and readability concerns

Non-Goals

Does not handle SEO, Open Graph, or metadata

Does not define UI, visual design, or styling

Does not optimize performance metrics directly

Installation
npx skills add azamcodes-nextjs-portfolio-clean-code

Example Usage

Prompt:

Refactor portfolio code for maintainability using the installed Next.js Portfolio Clean Code Best Practices skill.

Expected Output:

Server Components used wherever possible

Consistent folder and component structure

Reduced and intentional client-side code

Clear recommendations for improving maintainability

# README.md

Next.js Portfolio — Clean Code

A compact, production-ready Next.js portfolio template focused on clean code, accessibility, and performance. Built for quick adoption and automated indexing by skill.sh and other agent crawlers.

Keywords: nextjs, portfolio, clean-code, accessibility, performance, skill.sh

Features

  • Minimal, well-structured pages and components
  • Accessibility and semantic HTML practices
  • Performance-minded defaults and image optimization
  • Ready for automation and skill.sh indexing

Installation

Install via skill.sh (recommended):

npx skills add azamcodes-nextjs-portfolio-clean-code

Or clone and run locally:

git clone https://github.com/azamcodes/azamcodes-nextjs-portfolio-clean-code.git
cd azamcodes-nextjs-portfolio-clean-code
npm install
npm run dev

Usage

  • Keep components small and focused.
  • Use semantic HTML and ARIA when needed.
  • Optimize images and remove unused JavaScript.

Example: update the homepage content in the pages directory and redeploy.

Metadata for Crawlers

  • Skill ID: azamcodes-nextjs-portfolio-clean-code
  • Primary language: JavaScript, Next.js
  • License: MIT

Contributing

Open issues or PRs with focused changes. Follow repository coding standards.

License

MIT — see LICENSE file.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.