nette/claude-code/nette-utils
- community
Checking that the SKILL.md file is still in the repository.
Provides Nette Utils helper classes. Use when working with Arrays, Strings, Image, Finder, FileSystem, Json, Validators, DateTime, Html element builder, Random, Callback, Type, or SmartObject from nette/utils. Do NOT use for Nette Schema, Nette Forms, Nette Database, Latte filters, or DI configuration.
Install
npx vskill@latest install nette/claude-code/nette-utilsSKILL.md
Nette Utils
A collection of useful PHP utility classes for everyday tasks.
For detailed references:
DateTime
Extended DateTime class with strict validation and DST fixes. There is also Nette\Utils\DateTimeImmutable (since 4.1.5) with the same API on top of \DateTimeImmutable — prefer it for new code, mutable date objects are a classic source of action-at-a-distance bugs.
Json
Safe JSON encoding/decoding with exceptions.
Validators
Value validation and type checking.
Expected Types
| Type | Description | ||||
|---|---|---|---|---|---|
int, float, bool, string, array, null | PHP types | ||||
scalar | `int\ | float\ | bool\ | string` | |
list | indexed array | ||||
number | `int\ | float` | |||
numeric | number or numeric string | ||||
unicode | valid UTF-8 string | ||||
email, url, uri | format validation | ||||
alnum, alpha, digit, lower, upper | character classes | ||||
class, interface | existing class/interface | ||||
file, directory | existing path |
FileSystem
File operations with exception handling.
Floats
Safe floating-point comparisons.
Random
Cryptographically secure random values.
Paginator
Pagination calculations.
Html
HTML element builder.
Escaping is explicit and it is the one thing to get right here. setText() / addText() escape, setHtml() / addHtml() do not — reach for the Html variants only when the string is provably safe. add() escapes strings but inserts Html objects as they are.
class and style behave as arrays, which is what makes conditional markup readable — a null item is skipped, so no if is needed around it:
Process
Running external processes (since 4.1.4) — use this instead of exec(), shell_exec() or pulling in symfony/process.
Both take $env, $options, $stdin, $stdout, $stderr, $directory and $timeout (default 60 s) — with that many parameters, pass them as named arguments (timeout: 30). Instance methods: wait(), isRunning(), getExitCode(), isSuccess(), ensureSuccess(), getStdOutput(), getStdError(), terminate(), detach(), getPid(). Reading output throws if it was redirected, discarded or piped instead of captured.
Callback
Working with PHP callables.
Type
PHP type utilities.
SmartObject Trait
Getter/setter property access for classes. Its historical jobs are done by PHP itself now; for new code prefer PHP 8.4 property hooks. The trait is still useful for exposing getters as read-only properties.
The `@property` annotation is mandatory – without it the magic access throws MemberAccessException, because the trait only maps properties declared in the docblock.
Documentation
The full Nette documentation for this topic is bundled with the plugin. Read a page when you need details beyond this skill:
- Arrays – Arrays, ArrayHash, ArrayList
- Strings – string functions and regular expressions
- Images – Image manipulation
- Finder – searching for files
- FileSystem – file operations
- JSON – safe encoding and decoding
- Validators – type checking and validation
- DateTime – date and time
- HTML Elements – the Html builder
- Iterables – working with iterators
- Process – running external programs
- Callback – callable helpers
- Floats – comparing floats
- Helpers –
capture(),clamp(),compare()and other functions - Paginator – pagination math
- Random – generating random strings
- Reflection – PHP reflection helpers
- SmartObject – strict objects and properties
- StaticClass – static classes
- Type – PHP types
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/nette/skills/nette-utils/SKILL.md
Popularity
- Repository stars
- 40
- Repository forks
- 3
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nette/claude-code/nette-utils)