Test Guard
amElnagdy/guard-skills
Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.
Creates or modify PHP unit tests for Dolibarr ERP/CRM functions and methods.
$ npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Dolibarr/dolibarr skill-doli-test-phpunit --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Dolibarr/dolibarr.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/skill-doli-test-phpunit .claude/skills/skill-doli-test-phpunit && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "skill-doli-test-phpunit" agent skill from https://github.com/Dolibarr/dolibarr/tree/develop/.agents/skills/skill-doli-test-phpunit into .claude/skills/skill-doli-test-phpunit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skill-doli-test-phpunit", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Dolibarr/dolibarr/tree/develop/.agents/skills/skill-doli-test-phpunitType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Dolibarr/dolibarr skill-doli-test-phpunit --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Dolibarr/dolibarr.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/skill-doli-test-phpunit .agents/skills/skill-doli-test-phpunit && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "skill-doli-test-phpunit" agent skill from https://github.com/Dolibarr/dolibarr/tree/develop/.agents/skills/skill-doli-test-phpunit into .agents/skills/skill-doli-test-phpunit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skill-doli-test-phpunit", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Dolibarr/dolibarr skill-doli-test-phpunit --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Dolibarr/dolibarr.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/skill-doli-test-phpunit .cursor/skills/skill-doli-test-phpunit && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "skill-doli-test-phpunit" agent skill from https://github.com/Dolibarr/dolibarr/tree/develop/.agents/skills/skill-doli-test-phpunit into .cursor/skills/skill-doli-test-phpunit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skill-doli-test-phpunit", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Dolibarr/dolibarr.git --path .agents/skills/skill-doli-test-phpunit--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Dolibarr/dolibarr skill-doli-test-phpunit --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Dolibarr/dolibarr.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/skill-doli-test-phpunit .gemini/skills/skill-doli-test-phpunit && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "skill-doli-test-phpunit" agent skill from https://github.com/Dolibarr/dolibarr/tree/develop/.agents/skills/skill-doli-test-phpunit into .gemini/skills/skill-doli-test-phpunit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skill-doli-test-phpunit", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Dolibarr/dolibarr skill-doli-test-phpunitInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Dolibarr/dolibarr.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/skill-doli-test-phpunit .github/skills/skill-doli-test-phpunit && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "skill-doli-test-phpunit" agent skill from https://github.com/Dolibarr/dolibarr/tree/develop/.agents/skills/skill-doli-test-phpunit into .github/skills/skill-doli-test-phpunit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skill-doli-test-phpunit", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Dolibarr/dolibarr skill-doli-test-phpunit --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Dolibarr/dolibarr.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/skill-doli-test-phpunit .opencode/skills/skill-doli-test-phpunit && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "skill-doli-test-phpunit" agent skill from https://github.com/Dolibarr/dolibarr/tree/develop/.agents/skills/skill-doli-test-phpunit into .opencode/skills/skill-doli-test-phpunit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skill-doli-test-phpunit", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skill-doli-test-phpunitCreates or modify PHP unit tests for Dolibarr ERP/CRM functions and methods.
Skill Doli Test Phpunit is an agent skill from Dolibarr/dolibarr. Creates or modify PHP unit tests for Dolibarr ERP/CRM functions and methods. Use when the user asks to add, write, create, or complete a PHPUnit test for Dolibarr, or mentions testing a specific function, method, or class in the Dolibarr codebase.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing and Forms and invoices. It works with PHP. The repository describes itself as: Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an… The licence is MIT.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e0f8c86. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
read_filewrite_filegrepFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are php).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Skill Doli Test Phpunit loads about 1.3k tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 571 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Dolibarr/dolibarr at commit e0f8c86, republished under its MIT licence (© Dolibarr). 571 words, ~1,253 tokens.
.claude/skills/skill-doli-test-phpunit/SKILL.md (or your agent's skills folder).Use this skill whenever the user asks to create, modify, or complete a PHP unit test for the Dolibarr ERP/CRM project. The goal is to produce a unit test that follows Dolibarr conventions and integrates cleanly into the existing PHPUnit test suite.
The instructions in this file are complementary to the instructions defined in .agents/AGENTS.md.
AGENTS.md contains the general instructions and rules for the project.SKILLS.md contains additional instructions specific to skills.SKILLS.md does not replace or override AGENTS.md.SKILLS.md conflicts with AGENTS.md, follow the rules defined by AGENTS.md.The user request should contain, when available:
test/phpunit/ directory/tmp with --cache-directory "/tmp"assertRegExp(), assertNotRegExp, assertMatchesRegularExpression(), or assertDoesNotMatchRegularExpression() method. Use a simple PHP regex and an assert on result instead.Locate the most appropriate existing PHPUnit test file in test/phpunit/.
If no suitable test file exists, create one using the naming convention FeatureTest.php.
A test method should describe the expected behavior.
Examples:
public function testCreateObject()
public function testDeleteObject()
public function testFetchReturnsExpectedValues()
public function testInvalidInputThrowsException()Prefer specific assertions over generic ones.
Good examples:
$this->assertTrue($result);
$this->assertFalse($result);
$this->assertEquals($expected, $actual);
$this->assertCount(3, $array);
$this->assertNull($value);
$this->assertNotNull($value);When generating code:
Action:
test/phpunit/MyObjectTest.phpAction:
test/phpunit/phpunit test/phpunit/TheTestFile.php| Issue | Validation | Solution |
|---|---|---|
| Test file does not exist | Check test/phpunit/ directory | Create new test file with proper naming |
| Class or method not found | Verify namespace and file location | Use proper use statements and class paths |
| Database dependencies | Review test for external DB calls | Mock database interactions or use test fixtures |
| Non-deterministic behavior | Check for random values or timestamps | Use fixed seeds or mock time |
| Missing PHPUnit | Check project dependencies | Ensure PHPUnit is installed via Composer |
Before generating code:
$conf, $db, $user mocks. Use DolibarrTestCase if availableentity IN ('.getDolEntity('tablename').') to SQL in tests if needed$user->hasRight(). Mock user permissions in testsDOL_DOCUMENT_ROOT constant for paths, not hardcoded values© Dolibarr, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/skill-doli-test-phpunit of Dolibarr/dolibarr.
Open the folder on GitHubat commit e0f8c86
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in Dolibarr/dolibarr, which our catalogue first saw on October 7, 2026.
Skill Doli Test Phpunit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Skill Doli Test Phpunit this skillDolibarr/dolibarr | 7.7k | 1 repos | ~1.3k | Automated safety check: Pass | MIT | |
| Test GuardamElnagdy/guard-skills | 1.3k | 2 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Pest Testingluadotsh/lua | 342 | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Async Test And Doc Syncdiscord-php/DiscordPHP | 1.1k | — | ~3.4k | Automated safety check: Notes | MIT | |
| Pest Testingliberusoftware/real-estate-laravel | 112 | 1 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Pest Testingmnapoli/vibephp | 158 | — | ~1.4k | Automated safety check: Pass | MIT |
amElnagdy/guard-skills
Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.
luadotsh/lua
A skill your agent uses for Pest PHP testing in Laravel projects only.
discord-php/DiscordPHP
Maintain test and documentation alignment — PHPUnit tests, async testing patterns, PHPDoc contracts, guide pages, and documentation workflow.
liberusoftware/real-estate-laravel
A skill your agent uses for Pest PHP testing in Laravel projects only.
mnapoli/vibephp
A skill your agent uses for Pest PHP testing in Laravel projects only.
shopware/shopware-cli
Use Shopware CLI for Shopware project, extension, and account workflows — create and install new projects (project create, project dev install), validate projects or extensions (with…
Dolibarr/dolibarr
Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues.
Dolibarr/dolibarr
A skill your agent uses when developing a Dolibarr ERP/CRM external module, working with database queries, or asking about Dolibarr best practices.
Dolibarr/dolibarr
A skill your agent uses when developing Dolibarr ERP/CRM code, working with database queries, or asking about Dolibarr best practices.
Dolibarr/dolibarr
Create interactive PHP test case scripts for Dolibarr ERP/CRM that allow users to setup test data, view results via direct links, and tear down (clean up) the data.
Dolibarr/dolibarr
Create and maintain Hurl tests for Dolibarr ERP/CRM. An agent skill from Dolibarr/dolibarr.
Works with
Categories
Creates or modify PHP unit tests for Dolibarr ERP/CRM functions and methods. Skill Doli Test Phpunit is an agent skill from Dolibarr/dolibarr. Creates or modify PHP unit tests for Dolibarr ERP/CRM functions and methods.
Skill Doli Test Phpunit fits situations like: the user asks to add; complete a PHPUnit test for Dolibarr; mentions testing a specific function; class in the Dolibarr codebase.
Run `npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a claude-code`. Or copy the skill folder (.agents/skills/skill-doli-test-phpunit in Dolibarr/dolibarr) into .claude/skills/skill-doli-test-phpunit in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a codex`. Or copy the skill folder (.agents/skills/skill-doli-test-phpunit in Dolibarr/dolibarr) into .agents/skills/skill-doli-test-phpunit in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Dolibarr/dolibarr --skill skill-doli-test-phpunit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-doli-test-phpunit, .gemini/skills/skill-doli-test-phpunit, .github/skills/skill-doli-test-phpunit and .opencode/skills/skill-doli-test-phpunit in your project.
SKILL.md names no scripts, command-line tools or credentials: Skill Doli Test Phpunit is instructions for the agent only. Its frontmatter pre-approves these tools: read_file, write_file, grep.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Skill Doli Test Phpunit is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Skill Doli Test Phpunit: Test Guard (amElnagdy/guard-skills, 1.3k stars), Pest Testing (luadotsh/lua, 342 stars), Async Test And Doc Sync (discord-php/DiscordPHP, 1.1k stars) and Pest Testing (liberusoftware/real-estate-laravel, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Dolibarr (a GitHub organization) maintains it in Dolibarr/dolibarr, which has 7,696 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: Dolibarr/dolibarr on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.