/greenfield:runtime-observationfrom greenfield
Defines runtime observation methodology for executing commands inside containers to produce empirical facts. Guides analyzer agents in five-phase observation discipline for testing and behavior documentation.
Ships in greenfield. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runtime observation produces ground truth. When you execute a command and record the output, that observation is an empirical fact -- not an interpretation, not an inference, not a guess. This skill defines how every runtime observation agent operates.
Run it. Record it. Cite it.
You never guess what a target does. You run it and document what happens. Every observation is a witnessed fact: this input produced this output in this environment at this time.
Runtime observation applies to any target that can be executed inside a container:
| Target Type | Observation Method | Primary Agent |
|---|---|---|
| CLI tools | Execute commands, capture stdout/stderr/exit codes | cli-explorer |
| Web applications | HTTP requests, browser automation, form interaction | web-ui-explorer |
| APIs and services | HTTP/gRPC/WebSocket requests, response analysis | behavior-observer |
| Libraries and SDKs | Probe scripts that import and exercise the library | behavior-observer |
| GUI applications | Browser automation for web-based GUIs | web-ui-explorer |
Targets that cannot be executed (static documentation, binary files without a runtime) are handled by other intelligence sources. Runtime observation is additive -- it enhances and corroborates intelligence from all other modes.
All runtime observation output is RAW. Running the target and recording its behavior produces artifacts that require sanitization before reaching the implementer. Even though the observations describe external behavior (not implementation internals), recording the target's responses creates a derivation chain.
Targets that cannot be executed in a sandbox (or where executing them has side effects the user declines to accept) should skip this mode.
workspace/raw/runtime/workspace/output/ or workspace/public/.All runtime observation happens inside containers. No exceptions. The target is never executed on the host machine. This is a hard safety requirement. The container is already running before any runtime observation agent begins work -- the orchestrator sets it up per the container-execution skill.
Agents MUST NOT attempt to build, start, stop, or remove containers. They interact with an already-running container.
Every runtime observation agent follows these five phases in order. You are not required to complete every phase for every target -- proceed as far as the target type and available time allow. But you MUST follow the phase order.
digraph observation_phases {
rankdir=TB;
"Start runtime observation" [shape=doublecircle];
"Phase 1: Explore target surface area" [shape=box];
"Phase 2: Test nominal paths with valid inputs" [shape=box];
"Phase 3: Probe boundaries and limits" [shape=box];
"Phase 4: Trigger error conditions" [shape=box];
"Phase 5: Explore state transitions" [shape=box];
"Convert observations to behavioral claims" [shape=box];
"Observation complete" [shape=doublecircle];
"Start runtime observation" -> "Phase 1: Explore target surface area";
"Phase 1: Explore target surface area" -> "Phase 2: Test nominal paths with valid inputs";
"Phase 2: Test nominal paths with valid inputs" -> "Phase 3: Probe boundaries and limits";
"Phase 3: Probe boundaries and limits" -> "Phase 4: Trigger error conditions";
"Phase 4: Trigger error conditions" -> "Phase 5: Explore state transitions";
"Phase 5: Explore state transitions" -> "Convert observations to behavioral claims";
"Convert observations to behavioral claims" -> "Observation complete";
}
Goal: Discover what the target can do.
Activities:
--help, -h, help, man target)--version, -V, /api/version)Output: A map of the target's surface area. What commands exist. What endpoints respond. What configuration is available. This is the foundation for all subsequent phases.
Provenance: Exploration observations are confidence=confirmed (the target responded with this output). Inferences about what a discovered feature does are confidence=inferred until tested.
Goal: Exercise the target's happy paths -- standard workflows with valid inputs that produce expected outputs.
Activities:
Recording discipline: For each nominal test, record:
Provenance: Nominal path observations are confidence=confirmed. Each recorded input/output pair is a reproducible fact.
Goal: Probe the edges of the target's input domain to discover validation rules, limits, and type handling.
Activities:
Recording discipline: For each boundary test, record whether the target:
Provenance: Boundary observations are confidence=confirmed. The target's validation behavior (or lack thereof) at each boundary is an empirical fact.
Goal: Deliberately trigger error conditions to document the target's error handling, error messages, and failure modes.
Activities:
Recording discipline: For each error probe, record:
Provenance: Error probing observations are confidence=confirmed. Error messages and codes are empirical facts. Interpretations of what the error means (e.g., "this exit code indicates a permission problem") are confidence=inferred.
Goal: Understand how the target maintains and transitions between states.
Activities:
Recording discipline: State exploration requires before/after snapshots:
# Before: capture state
$RUNTIME exec $CONTAINER sh -c 'find /app /tmp -type f -newer /tmp/start-marker 2>/dev/null' \
> workspace/raw/runtime/observations/state-before.txt
# Action: perform the state change
$RUNTIME exec $CONTAINER sh -c 'target create --name test 2>&1'
# After: capture new state
$RUNTIME exec $CONTAINER sh -c 'find /app /tmp -type f -newer /tmp/start-marker 2>/dev/null' \
> workspace/raw/runtime/observations/state-after.txt
# Diff: what changed
diff workspace/raw/runtime/observations/state-before.txt \
workspace/raw/runtime/observations/state-after.txt \
> workspace/raw/runtime/observations/state-diff.txt
Provenance: Directly observed state transitions are confidence=confirmed. Inferences about internal state management (e.g., "the target probably uses a file-based session store because session files appear in /tmp") are confidence=inferred.
Behavior may differ across locales, terminal sizes, OS versions, or configuration states. Agents should vary the environment where practical:
LC_ALL=C and at least one non-English locale (e.g., LC_ALL=ja_JP.UTF-8)TERM=dumb (no color/formatting) and COLUMNS=40 (narrow terminal)NO_COLOR, DEBUG, CI=trueWhen behavior differs between environments, record both observations and flag the divergence. The goal is not exhaustive environment coverage -- it is catching the obvious cases where behavior is environment-dependent.
Every runtime observation is recorded using this standardized format:
## Observation: OBS-{NNN}
**Action:** {Exact command executed or request made}
**Timestamp:** {ISO 8601 timestamp}
**Agent:** {Your agent name}
**Environment:** {Container name, relevant config state}
**Phase:** {exploration | nominal | boundary | error | state}
**Input:**
{Exact input -- command line, HTTP request, form data}
**Output:**
{Exact output -- stdout, HTTP response body, UI text}
**Exit Code / Status:** {Exit code for CLI, HTTP status for web, or N/A}
**Stderr:** {Stderr output if separate from stdout, or "merged with stdout"}
**Side Effects:** {Files created, state changed, network connections made, or "none observed"}
**Duration:** {Wall-clock time for the operation, if measured}
**Interpretation:** {What this observation tells us about the target's behavior}
**Intent:** {intended | unknown}
**Citation:** <!-- cite: source=runtime-observation, ref=OBS-{NNN}, confidence={confirmed|inferred}, agent={agent-name} -->
OBS-001, OBS-002, etc.**Status: INVALIDATED** -- {reason} but do not reuse.All commands go through $RUNTIME exec $CONTAINER with timeout wrapping. Use the container-execution skill for the full pattern reference.
run_observation() {
local obs_id="$1"
local command="$2"
local output_file="$3"
local start_time=$(date +%s%3N)
timeout "$TIMEOUT" $RUNTIME exec "$CONTAINER" sh -c "$command" \
> "${output_file}.stdout" 2> "${output_file}.stderr"
local exit_code=$?
local end_time=$(date +%s%3N)
local duration=$((end_time - start_time))
if [ $exit_code -eq 124 ]; then
echo "TIMEOUT after ${TIMEOUT}s" >> "${output_file}.stderr"
fi
echo "{\"id\":\"${obs_id}\",\"exit_code\":${exit_code},\"duration_ms\":${duration}}" \
>> "${output_file}.meta"
}
curl -s -D- \
-w "\n---TIMING---\ntime_total: %{time_total}\ntime_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\nhttp_code: %{http_code}\n" \
"http://127.0.0.1:3000${ENDPOINT}" \
> "workspace/raw/runtime/web/request-${ENDPOINT_SLUG}.txt" 2>&1
# Create timestamp marker before operation
$RUNTIME exec $CONTAINER touch /tmp/observation-marker
# Perform the operation
$RUNTIME exec $CONTAINER sh -c 'target create --name test 2>&1'
# Find files modified after the marker
$RUNTIME exec $CONTAINER find /app /tmp -type f -newer /tmp/observation-marker 2>/dev/null \
> workspace/raw/runtime/observations/filesystem-changes.txt
# Examine created files
$RUNTIME exec $CONTAINER cat /app/data/test.json 2>/dev/null \
> workspace/raw/runtime/observations/created-file-contents.txt
for var in "DEBUG=1" "DEBUG=0" "LOG_LEVEL=verbose" "LOG_LEVEL=quiet" \
"NO_COLOR=1" "FORCE_COLOR=1" "NODE_ENV=production" "NODE_ENV=development"; do
varname="${var%%=*}"
timeout 30 $RUNTIME exec -e "$var" $CONTAINER sh -c 'target --version 2>&1' \
> "workspace/raw/runtime/cli/env-${varname}.txt" 2>&1
done
# List network connections the target is making (inside the container)
$RUNTIME exec $CONTAINER sh -c 'ss -tuln 2>/dev/null || netstat -tuln 2>/dev/null' \
> workspace/raw/runtime/network/listening-ports.txt
Observations become behavioral claims through interpretation.
digraph claim_conversion {
rankdir=TB;
"Observation recorded" [shape=ellipse];
"Is it a direct input/output recording?" [shape=diamond];
"Is it a synthesis of multiple observations?" [shape=diamond];
"Use confirmed" [shape=box];
"Use inferred" [shape=box];
"Use assumed" [shape=box];
"Observation recorded" -> "Is it a direct input/output recording?";
"Is it a direct input/output recording?" -> "Use confirmed" [label="yes"];
"Is it a direct input/output recording?" -> "Is it a synthesis of multiple observations?" [label="no"];
"Is it a synthesis of multiple observations?" -> "Use inferred" [label="yes"];
"Is it a synthesis of multiple observations?" -> "Use assumed" [label="no, pattern/generalization"];
}
Absence of observation is not evidence. "The target does not support X" requires trying X and recording the failure. "I did not test X" is not evidence that X does not exist.
When writing claims derived from observations:
The `list` command supports JSON output via the `--output json` flag.
<!-- cite: source=runtime-observation, ref=OBS-017, confidence=confirmed, agent=cli-explorer -->
The JSON output contains objects with `name`, `status`, and `created` fields.
<!-- cite: source=runtime-observation, ref=OBS-017, confidence=confirmed, agent=cli-explorer -->
The `status` field appears to be an enum with values "active" and "inactive".
<!-- cite: source=runtime-observation, ref=OBS-017, confidence=inferred, agent=cli-explorer -->
Note: The first two claims are confirmed (directly observed). The third is inferred (only two values were observed; there might be others).
All runtime observation output lives under workspace/raw/runtime/. Each agent writes to its designated subdirectory:
workspace/raw/runtime/
observations/ # behavior-observer output
cli/ # cli-explorer output
web/ # web-ui-explorer output
ux-flows/ # ux-documenter output
network/ # Shared network observation captures
Runtime observation can discover behaviors that no other mode can find:
These discoveries are flagged as confidence=confirmed (they were observed) but with a note that no other source corroborates them. This makes them high-priority items for the synthesis layer to investigate across other modes.
When runtime observations contradict claims from other modes, the contradiction is valuable data. Record contradictions in the observation file and flag them for the spec-verifier agent at Gate 1. Each contradiction documents:
Every failure mode produces data. Never discard a failed observation -- document it.
Runtime observations serve the pipeline in three key ways:
Corroboration. A behavioral claim from documentation that is also confirmed by runtime observation earns the highest confidence level. Runtime observation is the strongest corroborating evidence.
Discovery. Runtime observation finds behaviors that no other mode can: undocumented flags, hidden endpoints, implicit defaults, timing behaviors, side effects.
Test vectors. Every observation that records an exact input/output pair is a candidate test vector. The test-vector-generator agent in Layer 4 consumes observation records and converts confirmed observations into formal test cases for the implementer.
What SKILL.md sets; muted values are Claude Code's defaults
greenfield@prime-radiant-marketplace is listed by prime-radiant-inc/prime-radiant-marketplace — review the source before installing
npx claudepluginhub prime-radiant-inc/prime-radiant-marketplace --plugin greenfield22 skills in this plugin
/analysis-pipelineReverse engineering - multi-source product intelligence analysis with provenance tracking. Master methodology for all analysis agents./autonomous-discoveryLayer 1 intelligence source discovery - auto-detect available sources, search for public information, negotiate with user, produce inventory manifest/behavioral-spec-writingLayer 3 deep documentation methodology. Per-module behavioral specifications, external and behavioral integration contracts, behavior documentation, end-to-end user journey analysis. Transforms Layer 2 synthesis into implementable behavioral specifications. Loaded by the analyzer agent during Layer 3./binary-analysisLayer 1 methodology for extracting behavioral intelligence from compiled binaries, bytecode archives, managed assemblies, and bundled applications. Covers artifact identification, string extraction strategy, decompilation workflows, provenance requirements, and handoff to source code mode./community-intelligenceLayer 1 skill for community intelligence gathering. Search channels, extraction methodology, consensus analysis, version-aware behavioral changes, structural contamination guard. Loaded by the analyzer agent for community intelligence gathering./container-executionInfrastructure skill for containerized target execution. Runtime detection, container lifecycle, security restrictions, interaction patterns.Other plugins' skills for the same job