BF amphp
Writing non-blocking, async PHP code using the AMPHP framework — revolt/event-loop, amphp/amp ^3, and the full amphp/* ecosystem (http-server, http-client, websocket, mysql, redis, parallel, socket, pipeline, file, cache, sync, dns, process). Always use this skill when PHP code involves: amphp/* packages, the Revolt event loop, Amp\Future, Amp\async(), Amp\delay(), PHP Fibers for async I/O, DeferredFuture, TimeoutCancellation, SocketHttpServer, WebsocketClientHandler, or Worker\Task. Also use when the user wants to replace blocking PHP (curl_exec, file_get_contents, PDO, sleep) with AMPHP async equivalents, build a non-blocking PHP HTTP or WebSocket server, run concurrent PHP I/O without pcntl, or debug Revolt event-loop behavior — even if they don't say "amphp" explicitly but the context clearly points to this ecosystem.
As a process F 42/100 · Will not run — References files that are not bundled: templates/http-server.php, templates/websocket-handler.php, templates/parallel-task.php
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill asks for more than the task needs: broad tool access, credential environment variables, binaries. Every extra permission widens the damage from a mistake or a compromise.
Narrow allowed-tools and the variable list to the minimum; replace binaries with readable sources or scripts.
How to improve
- The text references files that are not there: add them or drop the references.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 16
✓ No critical or high findings
Medium and low: 16
-
medium Broad scope
meta-broad-allowed-toolsSKILL.md:1Broad tool permissions pre-approved: Bashallowed-tools: Read Write Edit Bash Glob Grep Agent
-
low Secrets in code
secret-high-entropy-tokendocs/common-mistakes.md:183High-entropy token-like string (may be an id, hash or a credential)new Base…eam(new ReadableBuffer($encoded))
-
low Secrets in code
secret-high-entropy-tokendocs/common-mistakes.md:189High-entropy token-like string (may be an id, hash or a credential)new Base…eam(new ReadableIterableStream([$encoded]))
-
low Secrets in code
secret-high-entropy-tokendocs/constructors.md:86High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)// Use instead of ReadableBuffer as source for Base…eam
detector -
low Secrets in code
secret-high-entropy-tokendocs/namespaces.md:60High-entropy token-like string (may be an id, hash or a credential)use Amp\ByteStream\Base64\Base…eam; // Base64 encode
-
low Secrets in code
secret-high-entropy-tokendocs/namespaces.md:61High-entropy token-like string (may be an id, hash or a credential)use Amp\ByteStream\Base64\Base…eam; // Base64 decode (use ReadableIterableStream as source!)
-
low Secrets in code
secret-high-entropy-tokenexamples/byte-stream.md:58High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition; test fixture / example file)// Required as source for Base…eam (see below).
detectorfixture -
low Secrets in code
secret-high-entropy-tokenexamples/byte-stream.md:125High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)use Amp\ByteStream\Base64\Base…eam;
fixture -
low Secrets in code
secret-high-entropy-tokenexamples/byte-stream.md:126High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)use Amp\ByteStream\Base64\Base…eam;
fixture -
low Secrets in code
secret-high-entropy-tokenexamples/byte-stream.md:132High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)$encoded = buffer(new Base…eam(new ReadableBuffer("hello world")));fixture -
low Secrets in code
secret-high-entropy-tokenexamples/byte-stream.md:135High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)// ReadableBuffer closes itself after returning EOF, which causes Base…eam
fixture -
low Secrets in code
secret-high-entropy-tokenreferences/class-examples.md:235High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)// calls isClosed() mid-stream (e.g. Base…eam).
fixture -
low Secrets in code
secret-high-entropy-tokenreferences/class-examples.md:247High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)### Base…eam / Base…eam
fixture -
low Secrets in code
secret-high-entropy-tokenreferences/class-examples.md:249High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)use Amp\ByteStream\Base64\Base…eam;
fixture -
low Secrets in code
secret-high-entropy-tokenreferences/class-examples.md:250High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)use Amp\ByteStream\Base64\Base…eam;
fixture -
low Secrets in code
secret-high-entropy-tokenreferences/class-examples.md:256High-entropy token-like string (may be an id, hash or a credential) (test fixture / example file)new Base…eam(new ReadableBuffer("hello world"))fixture
Files scanned: 28. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
missing-refreference to a missing file: templates/http-server.php - warning
missing-refreference to a missing file: templates/websocket-handler.php - warning
missing-refreference to a missing file: templates/parallel-task.php - warning
missing-refreference to a missing file: scripts/server-demo.php - warning
missing-refreference to a missing file: scripts/http-client-demo.php
Process rating: all ten parameters 42/100
- 0Tools and files. 5 referenced file(s) missing: templates/http-server.php, templates/websocket-handler.php, templates/parallel-task.php
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Failures and branches. Linear process with no failure handling
- 0Progress reporting. Says nothing while it works
- 30Running it twice. 4 mutating operations with no state check
- 100Steps. 5 steps
- 100When it triggers. States when to use and when not to
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 1593 tokens
- medium 3 test cases, all positive: not one "should refuse" or "should ask first"
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Description length 833: 120–800 characters recommended
- +3Output format is not stated: the model decides each time
- +1No license
- +2Single-language instructions
- +4Structure: 11 headings
- +3Step-by-step instructions: 5 items
- +4Has examples (0 code blocks)
- +4Reference files are cited in the instructions (7 of 7)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 73.