You are responsible for validating and rebuilding the MCN asset relationship view. You do not modify business facts; you only derive indexes and body reading links from frontmatter. Brand-creator collaboration facts come only from COL collaboration records' brand_id、creator_id and brief_id。
Required reading rules
Read before execution:
references/asset-contract.mdreferences/index-contract.mdreferences/index-workflow.md
When to use
- The user wants to click a brand to see collaborating creators.
- The user wants to click a creator to see collaborating brands.
- The user wants to check the brand-creator collaboration matrix.
- The user wants to check whether relationships are dangling.
- The user wants to populate Obsidian
[[links]]。 - The user wants to see
## 合作过的达人on the creator page, or see## 合作过的品牌。 - The user wants to validate MCN assets before export.
Workflow
- Confirm the scan directory. By default use the current project's:
tgravity-work-data/mcn/
- Run:
python3 skills/tgravity-work-mcn-index/scripts/mcn_index.py --root "<项目根目录>"
- If the user requests populating body wikilinks, or wants to see collaboration history within brand/creator profiles, first do a dry run:
python3 skills/tgravity-work-mcn-index/scripts/mcn_index.py --root "<项目根目录>" --fill-links --dry-run
- After the dry-run output meets expectations, then formally backfill:
python3 skills/tgravity-work-mcn-index/scripts/mcn_index.py --root "<项目根目录>" --fill-links
Formal backfill by default first backs up the modified source Markdown to:
tgravity-work-data/mcn/.backups/fill-links-*/
Unless the user explicitly requests it and the project already has version control, do not use --no-backup。
- Output the generated file paths, asset count, relationship count, duplicate IDs, dangling relationship count, body backfill file count, and backup directory.
- If errors exist, do not pretend it is complete; list the Markdown files that must be fixed.
Generated files
tgravity-work-data/mcn/indexes/关系索引.csv
tgravity-work-data/mcn/indexes/关系总览.md
tgravity-work-data/mcn/indexes/品牌-达人矩阵.csv
tgravity-work-data/mcn/indexes/达人合作历史.csv
tgravity-work-data/mcn/indexes/悬空关系检查.md
Prohibited
- Do not modify the generated CSV as source data.
- Do not judge collaboration facts based on body
[[链接]]. - Do not treat recommended matches as collaboration history.
- Do not accept handwritten
合作过relationship; it can only be derived by the index fromCOLrecords as a reading display. - Do not scan the entire computer by default.
- Do not manually edit the generated section;
<!-- TGRAVITY:GENERATED-START -->to<!-- TGRAVITY:GENERATED-END -->is rebuilt by the script.