Skip to content

NocodeMrLi/mr-li-writer-skill

mr-li-writer

Verified

面向中文内容创作的编辑判断、研究、策划、写作与平台原生交付工作流。根据标题、素材、参考资料、核心想法或模糊灵感,先识别读者任务、材料条件和创新必要性,再按需完成语境扫描、可写性判断与方向校准,并区分发布平台与内容目标,进行事实检索、观点设计、平台原生正文写作、标题策划和对应交付。适用于公众号文章、知乎回答、小红书原生笔记、官网/网页、个人博客、行业解读、实用指南和基于素材的扩展研究写作。

FileKindSize
SKILL.mdexecutableskill md62.0 KB
agents/openai.yamlexecutablescript12.9 KB
assets/gzh-design/LICENSEexecutablescript34.2 KB
assets/gzh-design/NOTICE.mdmarkdown568 B
assets/gzh-design/assets/preview-template.htmlexecutablescript3.8 KB
assets/gzh-design/references/common-components.mdexecutablescript14.3 KB
assets/gzh-design/references/eval-cases.mdexecutablescript5.7 KB
assets/gzh-design/references/format-normalize.mdexecutablescript4.4 KB
assets/gzh-design/references/theme-generator.mdexecutablescript25.3 KB
assets/gzh-design/references/theme-graphite-minimal.mdexecutablescript34.1 KB
assets/gzh-design/references/theme-index.mdexecutablescript3.1 KB
assets/gzh-design/references/theme-moyu-green.mdexecutablescript46.1 KB
assets/gzh-design/references/theme-moyu-ticket.mdexecutablescript24.7 KB
assets/gzh-design/references/theme-olive-journal.mdexecutablescript56.2 KB
assets/gzh-design/references/theme-red-white.mdexecutablescript29.9 KB
assets/gzh-design/references/theme-zen-whitespace.mdexecutablescript23.5 KB
assets/mr-li-writer-promo-poster.pngbinary179.4 KB
assets/mr-li-writer-promo-silent.mp4binary1.2 MB
assets/readme-banner.svgother5.3 KB
assets/readme-showcase/moyu-green-content.jpgbinary281.1 KB
assets/readme-showcase/moyu-green-cover.jpgbinary183.8 KB
assets/readme-showcase/moyu-green-list.jpgbinary203.4 KB
assets/readme-showcase/moyu-green-long.jpgbinary431.9 KB
assets/readme-showcase/olive-journal-content.jpgbinary177.7 KB
assets/readme-showcase/olive-journal-cover.jpgbinary214.2 KB
assets/readme-showcase/olive-journal-ending.jpgbinary154.1 KB
assets/readme-showcase/olive-journal-long.jpgbinary352.3 KB
assets/readme-showcase/red-white-cover.jpgbinary183.1 KB
assets/readme-showcase/red-white-long.jpgbinary405.3 KB
assets/readme-showcase/red-white-section.jpgbinary227.4 KB
assets/readme-showcase/red-white-table.jpgbinary219.4 KB
references/commercial-source-terms.txtmarkdown389 B
references/delivery-protocol.mdmarkdown11.7 KB
references/editorial-evaluation-protocol.mdmarkdown3.1 KB
references/editorial-routing-protocol.mdmarkdown6.2 KB
references/genre-structure-protocol.mdmarkdown7.5 KB
references/high-impact-writing-protocol.mdmarkdown6.2 KB
references/humanize-rules.mdexecutablescript11.5 KB
references/ideation-protocol.mdmarkdown6.7 KB
references/lint-checks.mdmarkdown3.9 KB
references/opening-design-protocol.mdmarkdown9.2 KB
references/platform-native-protocol.mdmarkdown19.3 KB
references/research-protocol.mdexecutablescript13.9 KB
references/title-rules.mdexecutablescript9.2 KB
references/writing-rules.mdexecutablescript18.4 KB
scripts/build_gzh_html.pyexecutablescript70.3 KB
scripts/build_html.pyexecutablescript31.8 KB
scripts/component_lint.pyexecutablescript8.1 KB
scripts/extract_seed.pyexecutablescript5.8 KB
scripts/gzh_component_inventory.pyexecutablescript1.8 KB
scripts/lint_article.pyexecutablescript19.5 KB
scripts/scan_sensitive.pyscript2.0 KB
scripts/source_governance.pyscript4.9 KB
scripts/validate_delivery_bundle.pyexecutablescript18.3 KB
scripts/validate_gzh_html.pyexecutablescript14.4 KB
scripts/validate_research_scope.pyexecutablescript10.0 KB
scripts/validate_task_intake.pyscript27.3 KB
scripts/wrap_gzh_preview.pyexecutablescript3.7 KB

scripts/source_governance.py

View on GitHub
#!/usr/bin/env python3
"""Shared source-role checks for article linting and HTML builders."""

import json
import re
from pathlib import Path


COMMERCIAL_ENTITY = (
    r"(?:培训(?:机构|学校|平台|公司|品牌|中心)?|网校|"
    r"辅导(?:机构|平台|公司|品牌|中心)?|题库(?:平台|公司|品牌)?|"
    r"考证(?:机构|平台|服务)?|课程(?:平台|公司|品牌|中心)|"
    r"教育(?:培训|咨询)(?:机构|公司|中心)?|咨询(?:机构|公司|平台|中心))"
)
SOURCE_ACTION = r"(?:发布|公布|放出|整理|汇总|统计|披露|表示|指出|显示|称)"
ENTITY_PREFIX = r"[\u4e00-\u9fffA-Za-z0-9·.-]{1,24}"

COMMERCIAL_SOURCE_EXPOSURE_PATTERNS = (
    r"(?:数据|资料|信息|内容).{0,24}?(?:来自|来源于|据).{0,70}?(?P<entity_a>%s%s)" % (ENTITY_PREFIX, COMMERCIAL_ENTITY),
    r"(?:据|来自|来源于|参考|援引).{0,40}?(?P<entity_b>%s%s)" % (ENTITY_PREFIX, COMMERCIAL_ENTITY),
    r"(?P<entity_c>%s%s)[^。!?\n]{0,30}%s" % (ENTITY_PREFIX, COMMERCIAL_ENTITY, SOURCE_ACTION),
)
COMMERCIAL_SOURCE_REGEXES = tuple(re.compile(pattern, re.I) for pattern in COMMERCIAL_SOURCE_EXPOSURE_PATTERNS)

BUILTIN_OFFICIAL_IDENTITY = re.compile(
    r"(?:工业和信息化部|工信部|教育部|人力资源和社会保障部|人社部|财政部|"
    r"国家市场监督管理总局|国家统计局|国务院|中国政府网|中国计算机技术职业资格网|"
    r"中国国际人才交流基金会|软考办|PMI(?:\s*中国)?|"
    r"[\u4e00-\u9fff]{1,16}(?:人民政府|主管部门|考试中心)|"
    r"(?:国家|省|市|区|县)[\u4e00-\u9fff]{1,16}(?:部|委|办|局|厅|署))",
    re.I,
)
SEPARATE_ENTITY_CUE = re.compile(r"(?:与|和|及|联合|会同|携手|授权|委托|指导|合作|主管|主办|所属|下属)")


def compile_named_source_regex(names):
    patterns = []
    for name in names:
        term = str(name or "").strip()
        if not term:
            continue
        escaped = re.escape(term)
        if len(term) <= 2 and re.fullmatch(r"[\u4e00-\u9fff]+", term):
            patterns.append(
                r"(?:据|来自|来源于|参考|援引).{0,40}%s|%s.{0,30}(?:刚(?:把)?|%s)"
                % (escaped, escaped, SOURCE_ACTION)
            )
        else:
            patterns.append(escaped)
    return re.compile(r"(?:%s)" % "|".join(patterns), re.I) if patterns else None


def source_role_names(task_state):
    if not task_state:
        return (), ()
    try:
        state = json.loads(Path(task_state).read_text(encoding="utf-8"))
    except (OSError, ValueError, TypeError):
        return (), ()
    scope = state.get("research_scope", {})
    entities = scope.get("source_entities", []) if isinstance(scope, dict) else []
    restricted = []
    official = []
    for entity in entities if isinstance(entities, list) else []:
        if not isinstance(entity, dict):
            continue
        name = str(entity.get("name", "")).strip()
        role = str(entity.get("role", "")).strip().lower().replace("-", "_")
        visibility = str(entity.get("reader_visibility", "")).strip().lower()
        if not name:
            continue
        if role in {"official", "authoritative"}:
            official.append(name)
        if role in {"commercial_interested", "unknown"} or visibility in {"omit", "anonymous", "internal_only"}:
            restricted.append(name)
    return tuple(dict.fromkeys(restricted)), tuple(dict.fromkeys(official))


def entity_is_official_identity(entity_text, official_names=()):
    text = str(entity_text or "")
    commercial = re.search(COMMERCIAL_ENTITY, text, re.I)
    if not commercial:
        return False
    for name in official_names:
        for official in re.finditer(re.escape(name), text, re.I):
            if official.end() >= commercial.end():
                return True
            if official.end() <= commercial.start():
                between = text[official.end() : commercial.start()]
                if not SEPARATE_ENTITY_CUE.search(between):
                    return True
    for official in BUILTIN_OFFICIAL_IDENTITY.finditer(text):
        if official.end() > commercial.start():
            continue
        between = text[official.end() : commercial.start()]
        if not SEPARATE_ENTITY_CUE.search(between):
            return True
    return False


def has_commercial_source_exposure(text, configured_regex=None, official_names=()):
    body = str(text or "")
    if configured_regex and configured_regex.search(body):
        return True
    for regex in COMMERCIAL_SOURCE_REGEXES:
        for match in regex.finditer(body):
            entity = next((value for value in match.groupdict().values() if value), match.group(0))
            if not entity_is_official_identity(entity, official_names):
                return True
    return False


def has_restricted_source_mention(text, names):
    regex = compile_named_source_regex(names)
    return bool(regex and regex.search(str(text or "")))
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