construct-card-archive

Archives knowledge cards by setting lifecycle to archived via the construct knowledge CLI.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/mabstruct/construct --skill construct-card-archive-mabstruct
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: construct-card-archive
Source: https://github.com/mabstruct/construct/tree/main/CONSTRUCT-CLAUDE-impl/claude/skills/construct-card-archive
Command: npx skills add https://github.com/mabstruct/construct --skill construct-card-archive-mabstruct

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Outdated or superseded knowledge cards clutter a personal knowledge base, but deleting them outright would break existing connections and lose historical context. This Skill retires cards safely by marking them archived while preserving their graph connections. ## Core Features & Use Cases - Dependency-aware archival: Checks whether other cards reference the target via connects_to, connections.json edges, or publish/ documents, and warns the user before proceeding. - Supersession tracking: Prompts for a replacement card and records it in the supersedes field so knowledge lineage stays intact. - CLI-enforced contracts: Delegates the actual file mutation to construct knowledge card archive, which updates lifecycle, preserves connections, and logs the archive_card event automatically. - Use Case: A user realizes their card on an old API version is outdated. They say "archive the legacy API card", review the warning about three connected cards, confirm, and the card is archived with all connections preserved as historical record. ## Quick Start Tell the agent to archive a specific knowledge card by name or ID, for example by saying "archive card legacy-auth-notes".

Frequently Asked Questions about construct-card-archive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I archive a knowledge card in CONSTRUCT?▼

Tell the agent to archive the card by name or ID, such as "archive card legacy-auth-notes". The skill locates the card, warns about existing connections, then runs construct knowledge card archive to set its lifecycle to archived.

What happens to connections when a card is archived?▼

Connections are preserved automatically in connections.json as historical record. Graph views and queries filter archived card connections by default but can include them on request.

Can I mark a card as superseded by a newer card?▼

Yes. During archival the skill asks whether a newer card replaces the old one, and if you provide the replacement card ID it sets the supersedes field before archiving.

Does archiving a card delete the file?▼

No. Archiving only changes the card's lifecycle field to archived; the file and its connections remain on disk. This keeps historical context and avoids dangling references in the knowledge graph.

What happens if the archive CLI command fails?▼

The skill displays the structured error returned by the construct knowledge CLI and offers a retry. No partial changes are made manually since the CLI enforces the archive contract.