coding-standards

Enforce Nextcloud PHP and JavaScript/TypeScript coding standards with PHP CS Fixer and ESLint.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/renne/skills --skill coding-standards-renne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/renne/skills/tree/main/nextcloud/coding-standards
Command: npx skills add https://github.com/renne/skills --skill coding-standards-renne

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the need for consistent, readable, and maintainable code within the Nextcloud ecosystem by enforcing established coding standards for PHP and JavaScript/TypeScript.

Core Features & Use Cases

  • Enforces PHP Coding Standards: Utilizes PHP CS Fixer for formatting, naming conventions, and best practices.
  • Enforces JavaScript/TypeScript Standards: Leverages ESLint for consistent JavaScript and TypeScript code.
  • Facilitates Code Reviews & CI: Ensures all code adheres to project guidelines, streamlining the review process and passing automated checks.
  • Use Case: When contributing to Nextcloud, use this skill to ensure your code adheres to the project's specific formatting rules, naming conventions, and best practices before submitting a pull request.

Quick Start

Use the coding-standards skill to check the formatting of your PHP code.

Frequently Asked Questions about coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Nextcloud coding standards for PHP and JavaScript?

To enforce Nextcloud coding standards for PHP and JavaScript, you apply specific linting tools like PHP CS Fixer and ESLint to check formatting, naming conventions, and best practices. This ensures consistent code style and maintainability across the Nextcloud ecosystem.

What is the best way to prepare a Nextcloud pull request for code review?

The best way to prepare a Nextcloud pull request for code review is to run automated linting checks using PHP CS Fixer and ESLint. Verifying your PHP and JavaScript code against these project guidelines streamlines the review process and ensures passing CI checks.

Does the Nextcloud code quality skill support TypeScript linting?

Yes, Nextcloud code quality enforcement supports TypeScript linting by leveraging ESLint. It applies established project standards to ensure consistent formatting, readability, and maintainability for both JavaScript and TypeScript development.

Can I use PHP CS Fixer to check formatting rules for Nextcloud contributions?

Yes, you can use PHP CS Fixer to check formatting rules for Nextcloud contributions. The coding standards enforcement utilizes PHP CS Fixer specifically to apply and validate the required PHP naming conventions and formatting best practices.

Why does my Nextcloud code fail automated CI checks during a pull request?

Your Nextcloud code might fail automated CI checks during a pull request because it does not adhere to established coding standards. Running PHP CS Fixer and ESLint locally ensures your PHP and JavaScript code meets the required style and formatting guidelines before submission.