/cogni-portfolio:portfolio-verifyfrom cogni-portfolio
Verifies web-sourced claims in portfolio entities against their cited sources. Acts as a quality gate to catch stale or misread data before deliverables are generated.
Ships in cogni-portfolio. 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.
Verify web-sourced claims submitted by portfolio research agents against their cited sources. This is the quality gate between enrichment and communicate.
Plugin root resolution. Bash invocations below resolve the plugin root inline as ${CLAUDE_PLUGIN_ROOT:-$(ls -td "$HOME"/.claude/plugins/cache/insight-wave/cogni-portfolio/*/ | head -1)} — the first call works whether or not the harness injects $CLAUDE_PLUGIN_ROOT. Keep the inline form in every call; do not strip it.
Research agents (market-researcher, competitor-researcher, proposition-generator) pull data from the web — market sizes, growth rates, competitor claims, industry benchmarks. Each web-sourced fact is logged as a claim in cogni-claims/claims.json with its source URL. But web data goes stale, gets misread, or comes from unreliable sources.
Verification catches these problems before they propagate into deliverables. The claim-verifier agent revisits each source URL, compares what was claimed against what the source actually says, and flags deviations by severity. A "TAM of $4.2B" that the source actually quotes as $2.4B is a critical deviation — it would undermine every proposal built on that number.
This matters because downstream outputs (synthesis, exports, proposals) inherit whatever the portfolio contains. Catching a wrong number here is cheap; catching it in a client presentation is expensive. The verification gate gives the user a clear picture of data quality and the chance to correct problems while they're easy to fix.
This skill depends on the cogni-workspace:claims skill, which performs the actual source-checking. If that skill is not available, tell the user cogni-workspace is not installed and point them at its installation instructions.
If no cogni-claims/ directory exists in the project, no claims have been submitted yet. Research agents submit claims automatically when web search is used during market research, competitor research, and proposition generation. Suggest running those skills with web research enabled first.
Before reviewing claims, check if the source registry has information about URL freshness. If source-registry.json exists, read it and identify any URL sources with status of stale or unreachable. If found, present them as high-priority verification targets:
"N URL sources in the registry are marked as stale or unreachable. Claims citing these sources should be verified first, as the source content may have changed since the claims were submitted."
List the affected URLs and which claims cite them.
Read cogni-claims/claims.json and present the current state:
Claims Summary:
- Unverified: N
- Verified: N
- Deviated: N (X critical, Y high, Z medium, W low)
- Source unavailable: N
- Resolved: N
Total: N claims from K unique sources
Also show breakdown by submitter (market-researcher, competitor-researcher, proposition-generator) so the user knows where claims originate.
Before running verification, check for stale entities that would make some claims redundant. Read stale_entities from project-status.sh output (or check feature/proposition modification dates against each other). Cross-reference each pending claim's entity_ref.file against stale entity slugs. If any pending claims reference stale entities, present the split:
"N claims are on entities that need refreshing (stale propositions, etc.). Verifying those now would be wasted work — the refresh will discard old content and generate new claims. Recommend verifying the M claims on stable entities instead."
Offer to filter: verify only stable-entity claims now, defer the rest.
Then present the summary and ask:
This step matters because verification hits external URLs — the user should understand the scope before proceeding.
When the user confirms, invoke the cogni-workspace:claims skill with mode verify:
Use the cogni-workspace:claims skill to verify all unverified claims.
Working directory: <project-dir>
The claims skill handles grouping by URL, parallel agent dispatch, and result collection.
After verification completes, show the updated summary. If deviations were found:
high or critical severity deviationscogni-workspace:claims skill with mode inspect for full evidence on any specific claimAsk explicitly:
If deviated claims exist, offer resolution options:
cogni-workspace:claims with mode resolve for eachcogni-workspace:claims with mode dashboard for full overviewNever auto-resolve deviations. The user must decide whether to correct the data, accept the deviation with justification, or flag it for later review. They know their domain best.
Present the verification status as a gate before generating deliverables:
Verification Gate:
- Verified: N claims (safe to use)
- Resolved: N claims (user-approved corrections)
- Deviated (unresolved): N claims (will be flagged in output)
- Unverified: N claims (will be flagged in output)
Recommendation: [Resolve remaining deviations / Ready for communicate]
If all claims are verified or resolved, confirm the portfolio is ready for communicate. If deviations remain, the user may still proceed — the communicate skill will mark unverified content so readers know which data points haven't been checked.
After verification completes, if source-registry.json exists, update URL source entries:
fingerprint.computed_at and last_checked to today's datestatus to "unreachable"status to "stale"This keeps the source registry in sync with verification results so that portfolio-resume and portfolio-lineage can surface URL freshness alongside document freshness.
After resolution, corrected claims need to flow back into the portfolio entity files that originally contained the wrong data. Without this step, a corrected market size stays wrong in markets/*.json and every proposition built on it inherits the error.
This step activates only when resolved claims exist with actions that require entity file changes (corrected, discarded, or alternative_source). If all resolved claims have action disputed or accepted_override, skip this step — those actions explicitly keep the original data.
8a. Scan for propagable resolutions:
Read cogni-claims/claims.json and filter for claims where:
status == "resolved"resolution.action is corrected, discarded, or alternative_sourcepropagated_at is null (not yet applied to entity files)If none found, present the communicate gate summary from Step 6 — verification has already rewritten claims.json and Step 7 the source registry, so the dashboard has new state to show. This path ends the same way — see the Dashboard handoff section in this file.
8b. Locate target entity files:
For each claim, determine the target file:
entity_ref is present: use entity_ref.file and entity_ref.field_path directlyentity_ref is absent (legacy claims without provenance): run the find-text fallback:
bash "${CLAUDE_PLUGIN_ROOT:-$(ls -td "$HOME"/.claude/plugins/cache/insight-wave/cogni-portfolio/*/ | head -1)}/scripts/propagate-corrections.sh" find-text "<project-dir>" "<original_statement>"
8c. Present propagation plan:
Show the user what will change, grouped by entity file. This is a confirmation gate — corrections touch portfolio data, so the user must approve:
Propagation Plan — N corrections across M entity files:
markets/mid-market-saas-dach.json:
[corrected] tam.value: EUR 789.9 Mrd. → EUR 68.25 Mrd. (claim-abc123)
[corrected] tam.description: Updated source text (claim-abc124)
customers/mid-market-saas-dach.json:
[corrected] named_customers[?name=="Sybit"].employees: 350 → 153 (claim-def456)
[discarded] named_customers[?name=="Source Global"].positioning: Remove (claim-ghi789)
Proceed with all corrections? [yes / inspect individual / skip]
8d. Apply corrections:
After user confirmation, apply each correction using the propagation script:
corrected: Replace the value at the target field path
bash "${CLAUDE_PLUGIN_ROOT:-$(ls -td "$HOME"/.claude/plugins/cache/insight-wave/cogni-portfolio/*/ | head -1)}/scripts/propagate-corrections.sh" apply "<project-dir>" "<entity-file>" "<field-path>" "<corrected-value>"
discarded: Remove the data point from the entity file
bash "${CLAUDE_PLUGIN_ROOT:-$(ls -td "$HOME"/.claude/plugins/cache/insight-wave/cogni-portfolio/*/ | head -1)}/scripts/propagate-corrections.sh" remove "<project-dir>" "<entity-file>" "<field-path>"
alternative_source: Update the source URL on the entity
bash "${CLAUDE_PLUGIN_ROOT:-$(ls -td "$HOME"/.claude/plugins/cache/insight-wave/cogni-portfolio/*/ | head -1)}/scripts/propagate-corrections.sh" update-source "<project-dir>" "<entity-file>" "<field-path>" "<new-url>" "<new-title>"
For claims where entity_ref.field_path points to a numeric field but the corrected_statement is prose, extract the numeric value from the corrected statement and apply it to the value field, then apply the full corrected statement to the description field. Example: claim corrects "EUR 51.8 Mrd. Consulting 2025" to "EUR 49.0 Mrd. Consulting 2025" → update both tam.value (49000000000) and tam.description.
8e. Mark as propagated:
For each successfully applied correction, update cogni-claims/claims.json:
propagated_at to the current ISO 8601 timestamppropagated event to cogni-claims/history/{claim-id}.jsonThis prevents double-propagation if portfolio-verify is run again.
8f. Cascade staleness to downstream entities:
Corrections to upstream entities make downstream entities stale — their content was generated from data that has now changed. Determine the cascade:
propositions/*--{market-slug}.jsonsolutions/{same-slug}.jsonFor each stale entity, set "lineage_status": "stale" on the entity JSON (add the field if absent). This integrates with the existing portfolio-lineage refresh system.
Present the cascade:
Staleness cascade:
markets/mid-market-saas-dach.json was corrected
→ 3 propositions marked stale
→ 2 solutions marked stale (downstream of stale propositions)
Run portfolio-lineage in refresh mode to regenerate stale entities.
8g. Report summary:
Propagation complete:
N entity files updated
N claims marked as propagated
N downstream entities marked stale
N claims could not be propagated (no entity_ref, no text match)
Next steps:
- Run portfolio-lineage refresh to regenerate stale propositions/solutions
- Or proceed to portfolio-communicate (stale entities will be flagged)
Regenerate the dashboard and hand the user its link, every time, per $CLAUDE_PLUGIN_ROOT/references/dashboard-handoff.md. Print the link; do not open a browser.
cogni-workspace:claims does the actual verification workcogni-claims/ directory lives inside the portfolio project directory — the directory name is historical; the claim registry is now managed by cogni-workspace:claimsportfolio.json in the project root. If a language field is present, communicate with the user in that language (status messages, instructions, recommendations, questions). Technical terms, skill names, and CLI commands remain in English. If no language field is present, default to English.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cogni-work/insight-wave --plugin cogni-portfolio21 skills in this plugin
/competeAnalyze competitors for portfolio propositions — competitive landscape,
battle cards, positioning, differentiation. Use whenever the user mentions
competitors, competitive analysis, "who else does this", SWOT, win/loss,
how a proposition stacks up, or wants to understand competitive positioning
in a market — even if they don't say "compete" explicitly.
/customersCreate ideal customer profiles and buyer personas per target market.
Use whenever the user mentions customer profiles, ICP, buyer persona,
buying center, target customer, "who buys this", decision-makers,
buying committee, purchase journey, or wants to understand the people
behind a market — even if they don't say "customer" explicitly.
/Other plugins' skills for the same job