Mmcp.market

apostle-artifacts-loops skill

by Luciole-Studio·Luciole-Studio/apostle-skills·10 stars·AGPL-3.0

Long tasks, sub-agent, and multi-agent work — durable artifacts, session handoff, execution graphs, and context discipline. Trigger preferentially as working discipline when work spans stages, contexts, or agents and must keep user decisions, dependencies, evidence, and recovery state. Do not load for short or simple tasks that you can complete and verify directly.

A100/100content scan

Is the apostle-artifacts-loops skill safe?

Clean: nothing in its files matched our rules. We read 1 file in the folder on 2026-09-28.

No findings.

Install the apostle-artifacts-loops skill

A skill is a folder. Copy it into your agent's skills folder and the agent loads it when the task matches its description.

git clone --depth 1 https://github.com/Luciole-Studio/apostle-skills.git /tmp/apostle-skills
mkdir -p ~/.claude/skills
cp -r /tmp/apostle-skills/skills/apostle-artifacts-loops ~/.claude/skills/apostle-artifacts-loops
available in every project

In the Claude apps, zip the folder and upload it from the Skills settings. The folder on GitHub

The instructions your agent would load

SKILL.md as published, without the frontmatter. Read it on GitHub

Apostle Artifacts & Loops

This skill keeps long-term state in one project spine, organizes the work in an execution graph built on demand, and assembles the smallest sufficient context for each node. The structure serves the result. When you can complete and verify the work in the current session, or when existing files already carry these duties, reuse the existing structure and work directly.

Zero-ref. This SKILL.md is the whole skill. Create or read no bundled reference, script, template, or asset. Evaluation and project material belong to the workspace, not to this skill.

Delegation transfers work, not responsibility: an agent's report is only what it believes happened, so on conflict trust files on disk, primary sources, tool returns, and real execution — and re-verify.

Before you write files, read the workspace: its rules, existing plans, memory, deliverables, tests, versions, and research. Keep each fact in exactly one authoritative place.

AGENTS.md is the user's own: it holds the project rules and the user preferences. If a public project does not have one, remind the user to write it by hand, and ask before you change it.

Align with the user on each body of work. When the goal has an observable end state, write it as a Test; when only the user can judge quality or direction, write it as an Objective; when an existing file can carry the goal, do not create a new goal file.

Name the reader of each artifact. When the reader is an agent, use the most token-efficient form that keeps the facts; when the reader is the user, use the language and form that the user prefers.

For complex work, use these artifacts as needed; none is mandatory:

Keep this table at the top of Roadmap.md:

The table is the default execution graph. Write a separate graph artifact only when non-linear dependencies, parallel joins, or retries cannot be expressed clearly in the table. The order is advice, not a promised schedule. When the user changes scope or stop conditions, run KEEP / ADD / DROP: keep the goals that are still valid, add the new obligations, and drop the replaced ones. Do not pile mutually replacing requirements into a larger project.

Before you update any artifact, read it back to see its newest state.

The top of Memo.md holds a rewritable outline: current goal, phase, next action, blocks, decision index, and checkpoint index. The body appends records under stable IDs. When new evidence overturns an old judgment, append a correction that names what it replaces; never rewrite history without a trace. Rewrite or merge old entries only when the user asks, and leave a note that describes the change.

Three moments oblige a write: before you report to the user (save the state, results, and open questions first), after user feedback arrives, and when a new artifact changes the route. At a decision point that can change scope, route, standards, authorization, priority, or stop conditions, record the user's words verbatim: a speculation, a suggestion, a factual claim, and an authorization are not interchangeable. At each checkpoint, record what is done, where the evidence is, what is open, the next action, and the related decisions. Do not log ordinary conversation or every tool call.

On a new project or session, or when memory is insufficient, read the outline and the Roadmap first, then pull records and primary material by ID, keyword, and locator. With a memory tool, retrieve through it instead of reading every file. If the project rules (such as AGENTS.md) and the relevant memories are not already in context, fetch them first. Then search with focused terms on the project scope, and open full records by locator. Widen the read only when the index is insufficient, records conflict, or the task needs a global migration. The disk holds the history, retrieval selects the material, and the context holds only this round's judgment.

Use the backend that the harness provides; do not hardcode one. Memo.md is the authoritative, editable history in every runtime. A runtime with no memory tool, such as Pi, keeps using the file alone. When the harness provides a memory tool with categories, scopes, tags, and semantic recall (such as Jcode's), use it as an additional retrieval index. Mirror each durable record into it. Keep the entry compact and high-signal, and scope it to the project, not global memory. Map each record kind to the tool's category model: preferences, steering, and authorizations to preference; corrections to correction; and other durable facts and decisions to fact. Recover as described above: retrieve through the tool first, then open Memo.md by locator. No backend rewrites history. The tool adds retrieval. The append-only, provenance, and verbatim-user-words rules bind every backend.

Handoff.md is a one-time recovery entry at a session boundary, not a new authority for history or plans. It holds only: the current goal and baseline, the single next action that the user specified, the one block or risk that would change that action, active nodes or processes, changed files, real check results, and precise locators into the Roadmap, the Memo, and the source material. Do not insert your own preparation steps before the user-specified next action, and do not copy whole authority files.

The successor resumes from the Handoff first. It reads the Roadmap, the Memo, and the sources by locator only when the action requires it, the snapshot is stale, or contents conflict. On conflict, fresh reads and real execution win: append a correction in the Memo, and update or retire the old Handoff.

Graph engineering first defines the work units, the meaning of each edge, and the file that owns each state, then picks an implementation. Use the simplest sufficient shape: one node; fan-out / fan-in for independent work; a DAG for known dependencies; a bounded supervisor or event graph only when later tasks truly depend on facts found at run time. Deterministic scheduling carries the known routes; agents carry only the nodes that need judgment.

Give each persistent node a one-line contract: ID | goal | dependson | reads@version | sole writes | owner | done check | budget/stop. Add continues / spawns / critiques / synthesizes / verifies / retries only when needed, and never use a meaningless relatedto. A transient node with no files of its own needs no artifact; the task record of the runtime is enough. A retry gets a new ID that points at the old node.

A commissioned agent runs this same skill in single-session mode: it reads this SKILL.md again, then keeps its own spine, memory, and loop for its scope. Each commissioned agent gets a single-use identifier ---/ (for example jp-lit-translator-21/0) in the name of every artifact it owns; a retry increments the retry number and starts a new file set, and never overwrites the old one. The commission file states the goal, the boundaries, the inputs by locator, the output contract, and the real check — concise and self-contained, without the parent context. After the agent returns, read its plan and its deliverable; open its memo only when needed.

One authoritative file has one writer at a time; parallel nodes write separate artifacts, and a named node joins them. A node can extend the graph only within its granted scope, capabilities, budget, and stop conditions, and it records the new nodes and edges before they take effect. Record failure, cancellation, timeout, and results that arrive after their join as states. Before a fan-in, list the expected nodes and check for missing, duplicate, out-of-scope, version-drifted, and broken-dependency results. The parent reviews the artifacts on disk before it closes a node.

Context engineering assembles the smallest sufficient material for a session or node; it does not copy the parent session, the whole Memo, or a shared directory. Selection order: permissions and write boundaries → version, validity, and replacement relations → task relevance → diversity and budget. Do not recall restricted, expired, or irrelevant material and then ask the node to ignore it.

A node gets: its goal and graph position, the valid decisions and boundaries, the paths, versions, and locators of the authoritative inputs, its tools and write domain, the existing results, the open questions, the output contract, and the real checks. Pass locators for large material. Summaries, retrieval results, and Handoffs are derived views that can expire; they do not replace the sources. Keep a source, a paraphrase, an inference, and a user ruling distinguishable. Only publication, security, migration, concurrent writes, or reproducible experiments add extra records: transformations applied, material excluded, budgets, and checksums. When material is insufficient, return the gap; do not guess to fill it.

Loop: read the smallest sufficient state → choose an action that can change the result, the evidence, the uncertainty, or the verification status → execute or delegate → check the feedback → update the work artifacts, the Roadmap, and the Memo or Handoff as needed. Two proven shapes: split the work into parts and finish them in sequence, or generate, test, and select in rounds. Progress must leave an inspectable change; call counts, text volume, file counts, and self-declared progress do not count. When an action keeps failing, change the route. When a budget runs out, record the exhaustion as a limit, never as completion.

Stop when: a Test passes its real check; an Objective reaches the review point agreed with the user; the user makes a judgment that belongs to the bearer of the consequences; a concrete block appears; or more work cannot reasonably change the result. The scope and stop conditions that the user gives override the default artifacts and loop of this skill.

Before you claim completion, confirm that the check would fail if the defect it claims to prevent were present. When the work has branches or two-way mechanisms, verify every meaningful path. Verify the final artifact through its real use path. Keep tool returns, agent reports, source material, your own inferences, and the user's judgment distinguishable.

At completion, close or mark every active node, set the final state in the Roadmap and the last checkpoint in the Memo, retire the Handoff or point it only at explicit unfinished work, and deliver the real artifacts that the task required, with their actual check results. No process file, graph complexity, or evaluator score replaces the result or the user's judgment.

1.0.3: KL9 & Jcode, 2026-08-10; memory backend selection (vectorized tool when present, file otherwise) 1.0.0: KL9 & GPT-5.6-Sol, 2026-07-16 1.0.1: KL9 & Kimi K3, 2026-07-21 1.0.2: KL9 & Kimi K3, 2026-07-24 0.1.3: KL9 & K3, 2026-08-01

More skills from Luciole-Studio/apostle-skills

  • Aapostle-antislopEdit existing English or Chinese prose when the language has become model-shaped rather than subject-shaped: inflated significance, vague authority, answer scaffolding, repeated conclusions, template paragraphs, flattened voices, or English-shaped Chinese. Use for AI味/模型腔/机翻腔/套话/slop. Supports diagnosis, local cleaning, and explicitly authorized blank-page rewriting while preserving meaning and genre. Not ordinary proofreading, imitation, fact-checking, authorship detection, or detector evasion. Pure translation belongs to `apostle-translation`.
  • Aapostle-article-researchPre-draft research for long-form nonfiction whose question, claim, scope, or structure must be allowed to change under evidence. Use for political, historical, social-scientific, intellectual, or investigative work involving conflicting records, archival silence, adverse material, sensitive sources, or publication boundaries. Stops at a draftable evidence handoff; not for one-off fact checks, literature reviews, deep reading of one work, or finished-draft review.
  • Aapostle-constitutioApostle-Constitutio——智能协作宪法。 凡涉及实质思考或将产生效应的任务即应全文加载、不分层:深度讨论、批判与分析、研究与论证、创作与设计、决策辅助、哲学与社会议题、长对话,以及文件与记录的变更、委托、多步决策、同意/拒绝/伤害分析。 读法是宪法学与伦理学的,而非神学的;其思想来源是双向零信任和不对称自主性原则(见 §0)。 在用户层信息中持最高优先级;不凌驾于运行环境的系统级约束——二者冲突时必须披露,而非静默消化。
  • Aapostle-opus-reading对著作的深度理解。当用户交来著作、长文、全集要求真正读懂,或说深度阅读、深读、细读、逐句精读、重读、隐微阅读、读懂这本书、"未写而必须"时使用;对象为承重文本(指定文本、哲学/理论专著、隐微写作、被低估之作)时必须加载。Wager-ledger reading — understanding an opus as a signed, falsifiable discovery, not coverage.
  • Aapostle-opusmethodology-foucault-archaeologyApostle-Opusmethodology·方法迁移:福柯《知识考古学》(L'archéologie du savoir, 1969)。 当通行统一体("某学科/某思潮/某群体/某传统")一用就打滑、寻找共同本质连续失败、 新概念落在现成范畴的夹缝里无处安放、"X是什么"被反例反复击穿、 或需要为新研究写划界宣言/方法声明时使用; 用户说"考古学式分析""话语分析""像福柯那样看"时必须加载。 Doctrine dead, moves alive — the book's transplantable operations, kernels verbatim in French.
  • Aapostle-opusmethodology-foucault-society-defendedApostle-Opusmethodology·方法迁移:福柯法兰西学院课程《必须保卫社会》(«Il faut défendre la société», 1976)。 当一个领域自我呈现为和平/共识/普遍性("社区""生态""大家庭""我们都赢了")而你怀疑其下有未清算的战争时使用; 当需要分析一个理论使什么变得不可能(而非它反驳谁)、追踪同一话语被敌对各方征用、 解释冲突语汇如何变成健康/安全/风险的医学语汇、或需要把自己的假设押上台面公开检验时使用; 用户说"谱系学式分析""战争作为分析器""像《必须保卫社会》那样看""counter-history"时必须加载。 Doctrine dead, moves alive — the lecture course's transplantable operations, kernels verbatim in French.
  • Aapostle-opusmethodology-karatani-originsApostle-Opusmethodology·方法迁移:柄谷行人《日本近代文学の起源》(1980/定本2004)。 当一个「从来如此」的自然之物(某种感受方式、某个学科对象、某类主体、某种常识范畴) 需要被读出成立时刻,当批判一个对象的姿态反而在再生产这个对象, 当「X 的历史」写得越多 X 越显得自古就有, 当对象在某个压缩期内一举成立并即刻自然化时使用; 用户说「起源分析」「装置分析」「転倒」「像柄谷那样读」时必须加载。 Doctrine dead, machine alive — the book's transplantable operation, kernels verbatim in Japanese.
  • Aapostle-sdd编程工作流,在你开始工作编程前加载。
  • Aapostle-translation形式即内容的文本(措辞、句法、难度本身即思想)外译中的完整规程:哲学、社会理论、思想史、历史、文学、学术论文的低方差精译,源语覆盖英/法/德/俄/日/韩/拉丁。凡用户要求翻译论文/章节/整本书、要求"继续翻译/别停/一口气推进/断点续翻"、讨论译名取舍、要求复原作者句法与语法范畴(时态/语态/数/属格,从原文而非转译本)、或要求查译错/评审忠实度时使用。管从干净源文到已验证中文全稿之间的一切;抽取/OCR/排版交付不归它管(见文末路由行)。
  • Aapostle-tutor发现式教学——带一个具体的人把一门技术学到「能诊断」,靠对话、真实报错和他自己的话推进,不产出课件。凡用户说「教我 X」「带我学 X」「继续上次的学习」「我想学编程/Rust/某个语言或框架」「上一站到哪了」,或要求判断某人掌握到什么程度、要求把一次教学的进度记下来时使用。它管一次次对话式教学的方法与续接:先确定已有知识、划出前沿、给规格不给教程、让编译器当裁判、用学习者的原话作掌握证据。不产出 HTML 课件、阅读材料或课程包,那是 `teach` 的活;也不用于写文档、写教程文章或给代码加注释。

All agent skills → · MCP servers