Skip to content

API Reference parrot.sdd.scripts.backfill_taxonomy

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.sdd.scripts.backfill_taxonomy

View source

Infer projects frontmatter for existing SDD docs (FEAT-576). Dry-run by default.

Usage::

python -m scripts.sdd.backfill_taxonomy [--root .] [--kind spec|brainstorm|proposal|all]
    [--limit N] [--apply]

Alias KNOWN_PROJECTS

Re-exported from parrot.sdd.scripts.sdd_meta.KNOWN_PROJECTS.

Function infer_projects

Map code paths mentioned in text to canonical projects, ordered by first mention.

Only values in KNOWN_PROJECTS are returned.

infer_projects(text: str) -> list[str]

Parameter Type Default Description
text str

Returns: list[str]

Attribute logger

Function main

CLI entry point; returns 0. Writes only with --apply; never commits.

main(argv: list[str] | None = None) -> int

Parameter Type Default Description
argv list[str] | None None

Returns: int

Alias parse_taxonomy

Re-exported from parrot.sdd.scripts.sdd_meta.parse_taxonomy.

Function plan_edit

Return the new file text, or None when no change is needed.

None when projects is already non-empty or nothing was inferred. Inserts lines as text before the closing ---; never rewrites any other byte.

plan_edit(doc_path: Path) -> str | None

Parameter Type Default Description
doc_path Path

Returns: str | None

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally