Intent Engineering - Make Agents Optimize for What You Actually Want

PendingStatic analysis audit pending.

Overview

No static analysis result has been recorded yet. Pattern checks will appear here once the artifact has been analyzed.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

If INTENT.md contains incorrect or stale priorities, wired subagents may optimize for those priorities across future tasks.

Why it was flagged

The skill intentionally changes subagent task prompts by adding a persistent intent layer. This is purpose-aligned and user-directed, but it can broadly steer subagent behavior if wired into all spawns.

Skill content
In any subagent spawn, prepend the intent context to the task description
Recommendation

Review and test INTENT.md before enabling the loader broadly, and keep the file under user control.

What this means

Subagents may see and act on snippets from prior workspace memory or routing decisions.

Why it was flagged

The loader reads persistent workspace memory and routing logs, then injects matching snippets into subagent context. This is expected for the skill, but persistent memory can contain stale, private, or poisoned content.

Skill content
const episodic = getRecentEpisodicEntries(taskType, workspaceRoot, 3); const routing  = getRecentRoutingDecisions(taskType, workspaceRoot, 3);
Recommendation

Keep workspace memory curated, remove sensitive or untrusted entries, and verify what context is being passed to subagents.

What this means

A tampered or untrusted correction-tracker.js could affect the context added to subagent tasks or execute when the loader runs.

Why it was flagged

The loader optionally loads another local workspace module if present. This is related to the context-loader purpose, but it means the behavior also depends on the provenance and integrity of correction-tracker.js.

Skill content
const trackerPath = path.join(workspaceRoot, 'lib', 'correction-tracker.js'); ... tracker = require(trackerPath);
Recommendation

Only use a trusted correction-tracker.js, inspect it before installation, and avoid placing untrusted code in the workspace lib directory.

What this means

A caller might believe intent was propagated even when no intent context was actually attached.

Why it was flagged

On an unexpected failure, the loader can return an empty context while still marking intent_propagated as true. This is not malicious, but it could give callers a false success signal.

Skill content
return { context: '', intent_propagated: true };
Recommendation

Consider changing failure handling to report intent_propagated: false when context generation fails, and log or surface setup errors during testing.