tc-state

tc-state is a skill for Codex from Leobai03/tc. It costs 115 tokens per session (1,660 once invoked), scanned A, original, Apache-2.0.

A local save-and-restore tool for keeping the confirmed decisions, evidence, assumptions, and next steps from a startup project. It stores the information on your computer so you can continue later.

In plain words
What is it for?
Use it to save or restore project progress, list saved projects, create progress reports, or prepare approved evidence for manual review.
Why use it?
It prevents you from having to reconstruct the project’s context after a break. It also keeps the information local by default and requires separate permission before exporting anonymised evidence.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to save or restore project progress, list saved projects, create progress reports, or prepare approved evidence for manual review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leobai03/tc/tc-state
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Leobai03/tc --skill tc-state
Clone the repo
git clone --depth 1 https://github.com/Leobai03/tc

Made for: Codex.

Its marketplace also offers this one on its own, as the plugin tc-state/plugin install tc-state after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tc-state

README.md
[![agentmods](https://agentmods.dev/badge/skills/leobai03/tc/tc-state/github.svg)](https://agentmods.dev/skills/leobai03/tc/tc-state)
Your own site
<a href="https://agentmods.dev/skills/leobai03/tc/tc-state"><img src="https://agentmods.dev/badge/skills/leobai03/tc/tc-state/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tc-state

Your own site · 80×15
<a href="https://agentmods.dev/skills/leobai03/tc/tc-state"><img src="https://agentmods.dev/badge/skills/leobai03/tc/tc-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,660 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.01660
Opus 5 $0.00057 $0.00830
Sonnet 5 $0.00023 $0.00332
Haiku 4.5 $0.00012 $0.00166

Measured 9d ago against content hash cf8358601477, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tc-state scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/tc_state.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tc-state/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TC State|创业状态

一句话说明

这是 TC 的“游戏存档”。今天做到一半可以保存;下次回来不用从第一关重新讲。

只处理五种请求

  1. 保存:把当前已经确认的创业判断和下一步写进本机存档。
  2. 恢复:读取某个项目最近一次存档,并从下一步继续。
  3. 列表:列出本机有哪些 TC 项目和存档。
  4. 报告:把同一项目的多次存档合成阶段报告。
  5. 证据导出:用户逐次明确同意后,导出不含项目名、联系人和完整事实清单的本机候选文件,交给 tc-knowledge 人工复核。

不负责重新诊断、写文案或代替 tc-action 设计行动。发现问题定义还没有确认时,先回到 /tctc-diagnosis

默认保存位置

~/.tc/projects/<项目名>/
├── current.md
├── current.json
├── sessions/
│   ├── 20260721T153000123456Z-标题.md
│   └── 20260721T153000123456Z-标题.json
└── reports/
    └── 20260721T160000123456Z-阶段报告.md

所有文件默认只写在用户本机。不要声称作者可以看到这些文件。

保存前的边界

  • 只有用户明确说要保存、记住或建立进度时才写文件。
  • 保存前用一句话告诉用户将写入本机 ~/.tc/
  • 默认不保存姓名、手机号、邮箱、账号密码、访问令牌、私聊全文、客户名单、合同原文和未公开商业机密。
  • 需要保留人物关系时,用“合伙人 A”“客户 B”等代号。
  • 用户要求保存敏感信息时,先提醒这是明文 Markdown,再让用户决定是否继续。
  • 不自动上传到 GitHub、飞书、邮箱或其他网络服务。
  • “同意保存状态”不等于“同意导出知识候选”;证据导出必须单独取得当次授权。

一份合格存档包含什么

只保存已经影响判断的内容:

  • problem_definition:这次真正解决什么;
  • confirmed_facts:已经发生、能核对的事实;
  • decision:当前选择;
  • tradeoff:这个选择必须放弃或承担什么;
  • rejected_directions:这次明确不做什么;
  • assumptions:仍待市场验证的假设;
  • next_action:下一项最小动作;
  • success_metric:什么结果算有效;
  • evidence:已经带回的用户原话、报价、付款、交付或毛利证据;
  • next_skill:下次最可能进入 /tctc-copytc-action 中哪一个。

没有 problem_definitiondecisionnext_action 时,不要伪造;告诉用户还缺哪一项。

使用脚本

脚本只依赖 Python 标准库:

python3 scripts/tc_state.py save --payload /tmp/tc-state.json
python3 scripts/tc_state.py list
python3 scripts/tc_state.py restore --project 项目代号
python3 scripts/tc_state.py report --project 项目代号
python3 scripts/tc_state.py export-evidence \
  --project 项目代号 \
  --output /tmp/tc-evidence-candidate.json \
  --consent

在 Agent 环境中执行时,先把结构化内容写入临时 JSON,再把路径传给 --payload。不要把用户原文直接拼进 shell 命令,避免引号和命令替换造成错误。

最小 JSON:

{
  "project": "创业主线",
  "title": "确定九十天唯一主线",
  "source_skill": "tc",
  "status": "active",
  "problem_definition": "在不影响现有现金流的前提下,选出未来九十天唯一主线。",
  "confirmed_facts": ["已有公开内容渠道", "当前同时处理多个方向"],
  "decision": "只验证一个已有人付费的服务产品。",
  "tradeoff": "暂时不新开赛道。",
  "rejected_directions": ["同时测试三个新项目"],
  "assumptions": ["现有咨询里存在可重复需求"],
  "next_action": "整理最近十次真实咨询,统计重复问题。",
  "success_metric": "七天内向五位同类客户正式报价。",
  "evidence": [],
  "next_skill": "tc-action"
}

Read the full file on GitHub · 154 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 154 lines · 115 tokens per session scan A cf8358601477

Subscribe to this mod's changes

tc-state is a skill published in the GitHub repository Leobai03/tc (22 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 115 tokens to every session and 1,660 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.