Skip to content
Agentmart
Submit a tool

Global Best Practices

Universal principles for clean, maintainable, and robust code across all environments.

Skill by fierzone

IndexedApache-2.0★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/fierzone-global-best-practices

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Universal principles for clean, maintainable, and robust code across all environments.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/global-best-practices

What's inside

Skill name
Global Best Practices
Description
Universal principles for clean, maintainable, and robust code across all environments.
License
Apache-2.0
Instructions
51 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "Global Best Practices" does not match folder "best-practices"

Files (3)

  • SKILL.md
  • CODE_STRUCTURE.md · references/
  • EFFECTIVENESS.md · references/

SKILL.md (first lines)

# Global Best Practices

## **Priority: P0 (FOUNDATIONAL)**

## 🏗 SOLID & Architectural Principles

- **SRP (Single Responsibility)**: One class/function = One reason to change. Separate business logic from delivery (UI/API).
- **OCP (Open-Closed)**: Extended via composition/interfaces; closed to source modification.
- **LSP (Liskov)**: Subtypes must be transparently replaceable for base types. Use `@override` carefully.
- **ISP (Interface Segregation)**: Granular interfaces > "Fat" general-purpose ones.
- **DIP (Dependency Inversion)**: Depend on abstractions (interfaces), not concretions. Use DI containers.
- **Modular Design**: Break complex systems into small, independent, and swappable components to reduce cognitive load.

## 🧹 Clean Code Standards (KISS/DRY/YAGNI)

- **KISS**: Favor readable, simple logic over "clever" one-liners.
- **DRY**: Abstract repeated logic into reusable utilities. No magic numbers/strings.
- **YAGNI**: Implement only current requirements. Avoid "just in case" abstractions.
- **Meaningful Names**: Use intention-revealing names (`isUserAuthenticated` > `checkUser`).
- **Naming Conventions**: Follow language-specific standards:
  - `camelCase`: Variables/Functions (JS/Java/Dart).
  - `snake_case`: Variables/Functions (Python/Ruby).
  - `PascalCase`: Classes/Types (universal).
  - `kebab-case`: Files/CSS/URLs.

## 🛡 Security & Performance Foundations

- **Sanitization**: Always validate external input (API, User, Env) to prevent Injection/XSS.
- **Early Return**: Guard clauses first to minimize nesting and improve readability.
- **Lazy Loading**: Defer heavy initialization or data fetching until actually needed.
- **Resource Cleanup**: Always close streams, file handles, and database connections to prevent leaks.

## 🧱 Error Handling

- **Predictable Failures**: Use custom exception types over generic Catch-Alls.
- **Graceful Degradation**: Fallback values/UI for non-critical failures.
- **Log Context**: Log actionable metadata (ID, State) along with errors. Avoid silent failures.

## 🚫 Anti-Patterns

- **Magic Numbers**: `**No Hardcoded Constants**: Use named constants or config.`
- **Pyramid of Doom**: `**No Deep Nesting**: Use guard clauses and early returns.`
- **Mutable Globals**: `**No Global State**: Use dependency injection or state management.`
- **Silent Failures**: `**No Empty Catch**: Always handle, log, or rethrow errors.`

## 📚 References

- [Code Structure & Modular Design Examples](references/CODE_STRUCTURE.md)
- [Skill Token Economy & Effectiveness](references/EFFECTIVENESS.md)

From fierzone/agent-skills-standard, Apache-2.0.

More from fierzone/agent-skills-standard

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Feb 4, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from fierzone

Cite this page

Global Best Practices skill. Agent Mart. https://agentmart.dev/skills/fierzone-global-best-practices (last updated 2026-10-24)