Skip to content

API Reference parrot.sdd.scripts.doc_taxonomy

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

parrot.sdd.scripts.doc_taxonomy

View source

List SDD docs by projects/tags frontmatter (FEAT-576).

Usage::

python -m scripts.sdd.doc_taxonomy [--root .] [--kind spec|brainstorm|proposal|all]
    [--project P ...] [--tag T ...] [--paths-only | --json | --summary]

Attribute DocKind

Class TaxonomyRow

One SDD document and its taxonomy.

Fields:

Field Type Default Description
path str
kind DocKind
projects list[str]
tags list[str]

Function collect

Scan sdd/specs/.spec.md and sdd/proposals/.{brainstorm,proposal}.md under root.

A doc whose frontmatter fails validation is skipped with a logged warning.

collect(root: Path, kind: DocKind = 'all') -> list[TaxonomyRow]

Parameter Type Default Description
root Path
kind DocKind 'all'

Returns: list[TaxonomyRow]

Function filter_rows

AND across the two flags, OR within each; filter values are normalized first.

filter_rows(rows: list[TaxonomyRow], projects: list[str], tags: list[str]) -> list[TaxonomyRow]

Parameter Type Default Description
rows list[TaxonomyRow]
projects list[str]
tags list[str]

Returns: list[TaxonomyRow]

Attribute logger

Function main

CLI entry point. Returns 0 on a successful scan, 2 on bad arguments.

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

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

Returns: int

Alias normalize_project

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

Alias normalize_tag

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

Alias parse_taxonomy

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

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