Skip to content

CheshireMew/100x-learning / archive/writing-capability-retired-2026-09-02

100x-learning

Verified

帮助用户读懂材料、研究主题、解释概念、把知识用于真实问题,并直接写成文章;也能把字幕和自动转写稿整理成忠实、可读的文章式全文并写入私人知识库,在用户明确要求时再讲解材料或提炼知识,接入视频和社交来源,筛选分享内容,根据发布反馈继续选题和改进内容,以及初始化、检查和维护本机私人知识库、内容案例、钩子与写作记忆。适用于字幕整稿、划重点、系统学习、分轮处理长材料、内容审查、文章写作和知识沉淀;不负责短内容生成、媒体制作、普通翻译、广告投放、销售页、邮件营销、品牌全案、完整营销策略和实际发布。

FileKindSize
README.en.mdmarkdown11.8 KB
README.ja.mdmarkdown13.2 KB
README.mdmarkdown10.2 KB
RETIREMENT.mdmarkdown965 B
SKILL.mdskill md19.8 KB
assets/private-library/content-strategy.mdmarkdown938 B
assets/private-library/published-content-review.mdmarkdown970 B
assets/private-library/topic-portfolio.mdmarkdown785 B
assets/private-library/writing-memory.jsonconfig36 B
references/article-from-practice.mdmarkdown1.4 KB
references/bulk-knowledge-ingestion.previous.mdmarkdown3.3 KB
references/content-audit.mdmarkdown1.8 KB
references/content-case-library.mdmarkdown2.5 KB
references/content-strategy-and-topic-selection.mdmarkdown3.9 KB
references/content-writing.mdmarkdown3.2 KB
references/hook-library.mdmarkdown2.1 KB
references/knowledge-base-health.previous.mdmarkdown3.3 KB
references/knowledge-base-workflow.previous.mdmarkdown14.1 KB
references/natural-writing.mdmarkdown1.1 KB
references/personal-writing-memory.mdmarkdown10.4 KB
references/project-promotion-materials.mdmarkdown1.5 KB
references/publication-requirements.mdmarkdown5.9 KB
references/published-content-review.mdmarkdown3.4 KB
references/research-led-learning.previous.mdmarkdown9.1 KB
references/shareable-content-selection.previous.mdmarkdown2.5 KB
references/source-ingestion.previous.mdmarkdown3.4 KB
references/transcript-editing.previous.mdmarkdown6.1 KB
references/writing-material-preparation.mdmarkdown6.6 KB
scripts/content_case_library.pyscript16.9 KB
scripts/hook_library.pyscript11.1 KB
scripts/writing_memory.pyscript29.1 KB
tests/test_content_case_library.pyscript10.7 KB
tests/test_content_learning_loop.pyscript2.6 KB
tests/test_hook_library.pyscript10.6 KB
tests/test_promotion_writing_flow.pyscript3.5 KB
tests/test_writing_contract.pyscript27.8 KB
tests/test_writing_memory.pyscript15.8 KB

tests/test_promotion_writing_flow.py

View on GitHub
from __future__ import annotations

import json
import tempfile
import unittest
from pathlib import Path

from scripts.content_case_library import add_case, load_library, write_indexes
from scripts.private_library import initialize_library
from scripts.writing_memory import CONFIG_RELATIVE
from scripts.writing_memory import discover_records, search_memory


class PromotionWritingFlowTests(unittest.TestCase):
    def test_writing_technique_index_and_voice_memory_remain_independent(self) -> None:
        with tempfile.TemporaryDirectory() as temporary:
            base = Path(temporary)
            layout, _, _ = initialize_library(
                base / "private-library",
                base / "config.json",
            )
            (layout.root / CONFIG_RELATIVE).write_text(
                json.dumps(
                    {
                        "published_article_roots": [],
                    },
                    ensure_ascii=False,
                ),
                encoding="utf-8",
            )
            raw = base / "promotion.md"
            raw.write_text(
                "把材料交给私人知识库,它会保留真源,并让下一次写作真正读到。",
                encoding="utf-8",
            )
            created = add_case(
                layout,
                [],
                kind="social",
                input_path=raw,
                title="私人知识库进入写作链",
                techniques=("利益先行", "行动收束"),
                writing_format="short-post",
                writing_purpose="product",
                writing_origin="human-edited",
                voice_eligible=True,
            )
            cases, issues = load_library(layout)
            self.assertFalse(issues)
            write_indexes(layout, cases)

            example = next(case for case in cases if case.path == created)
            self.assertEqual(("利益先行", "行动收束"), example.writing_techniques)
            social_index = layout.social_case_index.read_text(encoding="utf-8")
            self.assertIn("## 利益先行", social_index)
            self.assertIn("## 行动收束", social_index)
            self.assertIn(example.case_id, social_index)
            self.assertNotIn(example.title, social_index)
            self.assertNotIn(
                example.case_id,
                layout.article_case_index.read_text(encoding="utf-8"),
            )

            records, receipt = discover_records(layout.root)
            self.assertEqual(1, receipt.accepted_cases)
            self.assertEqual("short-post", records[0].format)
            self.assertEqual("product", records[0].content_type)
            self.assertTrue(records[0].voice_eligible)

            novelty_hits = search_memory(
                library_root=layout.root,
                records=records,
                purpose="novelty",
                query="材料如何进入长期写作记忆",
                format_name="short-post",
                content_type=None,
                limit=3,
            )
            self.assertEqual("私人知识库进入写作链", novelty_hits[0].record.title)
            voice_hits = search_memory(
                library_root=layout.root,
                records=records,
                purpose="voice",
                query="",
                format_name="short-post",
                content_type="product",
                limit=3,
            )
            self.assertEqual("私人知识库进入写作链", voice_hits[0].record.title)


if __name__ == "__main__":
    unittest.main()
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall