nette-configuration

Configure Nette DI service definitions in Neon files before application boot.

41|4|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/nette/claude-code --skill nette-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nette-configuration
Source: https://github.com/nette/claude-code/tree/main/plugins/nette/skills/nette-configuration
Command: npx skills add https://github.com/nette/claude-code --skill nette-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers to correctly initialize and validate Nette DI configurations, ensuring autowiring and service definitions are correctly prepared before the application starts.

Core Features & Use Cases

  • DI pre-configuration: Define services.neon and parameters before boot.
  • Autowiring guidance: Leverage Nette's autowiring to reduce boilerplate.
  • Environment-ready: Align Neon files with project structure (services.neon, common.neon, env.*.neon).
  • Use Case: A mid-sized app transitions from manual wiring to DI-based services; apply the skill to sketch proper service blocks and autowiring hints.

Quick Start

Use this skill to validate and draft a minimal DI setup: create or adjust services.neon with at least one service, enable autowiring by default, and provide a small example.

Frequently Asked Questions about nette-configuration

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

FAQPage Schema
How do I configure Nette dependency injection before application boot?

Configure Nette dependency injection by defining services in neon files and enabling autowiring before boot. This ensures correct service definitions and reduces manual wiring boilerplate across your application.

What is the best way to structure environment-specific neon configuration files?

Structure neon configuration by separating common.neon for shared settings and environment-specific overrides like development or production neon files. This maintains reliable DI setups across different deployment environments.

How do I enable autowiring for services in a Nette framework project?

Enable autowiring in Nette by defining service blocks in services.neon with autowiring enabled by default. This leverages Nette's DI container to automatically resolve and inject dependencies.

Why does my Nette DI setup fail with invalid neon syntax during boot?

Nette DI setup fails when neon syntax is invalid or service definitions are malformed. Enforce neon syntax accuracy and explicit autowiring rules to satisfy reliable application boot.

Can I transition from manual wiring to DI-based services in an existing Nette application?

You can transition from manual wiring to DI by applying structured neon configuration to sketch proper service blocks. This provides autowiring hints and aligns service definitions before boot.

Does the Nette framework support environment-specific dependency injection overrides?

Nette framework supports environment-specific dependency injection overrides through separate neon files. Aligning common.neon with environment overrides ensures correct service preparation for development, staging, and production.