{% if let Some(e) = error %}

{{ e }}

{% endif %} {% if let Some(p) = preview %} {% if p.concepts.is_empty() %}

Nothing matched

No visible concept satisfies the rule in step 3, and no ticked file is visible. Loosen the narrowing, choose another bundle, or tick other files.

{% else %}

{{ p.concepts.len() }} concept{{ p.concepts.len()|pluralize }} {{ p.description }}{% if p.package_count > 0 %}, including {{ p.package_count }} skill package{{ p.package_count|pluralize }} copied whole{% endif %}.

{% if p.stale_count > 0 %}

The catalog reports {{ p.stale_count }} concept{{ p.stale_count|pluralize }} as not fresh. They are kept and labelled (a banner or an adjacent *.stale-warning.md; exact bytes are never modified), and the zip carries a FRESHNESS.md report.

{% endif %} {% if p.excluded_count > 0 %}

{{ p.excluded_count }} stale concept{{ p.excluded_count|pluralize }} excluded by the exclude policy; FRESHNESS.md lists them.

{% endif %}

For {{ p.target_label }}: the files go under {{ p.root }} and the harness reads {{ p.index_file }} first.{% if let Some(m) = p.mcp_note %} {{ m }}{% endif %}{% if p.truncated %} The selection hit its limit; raise it under Trust and size in step 3, or narrow the rule.{% endif %}

Download {{ form.name }}.zip {{ p.install_note }} Reading the sources for the download is recorded in the catalog's access log.

Included concepts {{ p.concepts.len() }}

    {% for c in p.concepts %}
  1. {{ c.title.as_deref().unwrap_or(c.concept_id.as_str()) }}{% if let Some(t) = c.concept_type %}{{ t }}{% endif %}{% if let Some(pkg) = c.package %}package ยท {{ pkg.resources.len() }} file{{ pkg.resources.len()|pluralize }}{% endif %}{% if let Some(r) = c.resource %}{{ r.class }} of {{ r.package_concept_id }}{% endif %}{{ c.trust_tier }}{% if c.freshness.is_stale() %}stale{% endif %}
    {{ c.bundle_name }} / {{ c.path }}
  2. {% endfor %}

Files in the zip {{ p.file_paths.len() }}

The same build from an agent (the build_workspace_plugin MCP call)

Any MCP client connected to pgokf-mcp can call the tool with these arguments; with output_dir it writes the tree into the workspace directly.

{{ p.mcp_call }}
{% endif %} {% else if !form.has_selection %}

Nothing selected yet

Tick files in step 3, or take everything in a bundle and narrow it. The preview appears here as soon as something is selected.

{% endif %}