PYPI PACKAGE AUDIT v0.3.0 Paquete Saludable

prioritykit

Reglas deterministas para puntuación de importancia-urgencia, niveles P0/P1/P2 y tres objetivos diarios, para personas y agentes de IA

PyPkgScore prioritykit
Metodología y Criterios ♥ Donate
755 / 1000
Instalación Rápida
pip install prioritykit
1. Gobernanza
50/200
2. Metadatos PEP
200/200
3. Seguridad
200/200
4. Docs y SEO
105/200
5. Ingeniería CI
200/200
📣 Compartir Auditoría: Comparte este informe y la vista previa en el idioma actual
Advertisement
TELEMETRÍA PYPI

Descargas y Adopción en la Comunidad

Últimos 30 días (sin espejos)
Últimos 7 días
93
Últimos 30 días
93
Total (180 días)
93
Métrica / Ecosistema Estado / Valor Fuente
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 755 / 1000 PyPkgScore Engine

Análisis de Salud e Ingeniería (5 Pilares)

1. Gobernanza y Comunidad50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. Metadatos y Empaquetado PEP200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Seguridad y Cadena de Suministro200 / 200 ▾
Cero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
Repositorio HTTPS✓ 50 pts
4. Documentación, SEO y Ecosistema105 / 200 ▾
README Estructurado✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Sitio Web / Artículos Técnicos✓ 45 pts
5. Ingeniería, CI y Calidad200 / 200 ▾
Pruebas Automatizadas✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✓ 35 pts
Advertisement
README & DOCS

Documentación Oficial y Guía de Uso — prioritykit

PyPI Metadata v0.3.0
Mostrar documentación original completa (README en inglés) ▾

prioritykit

CI PyPI Python versions License

prioritykit applies one prioritization system the same way for a person at a terminal and for an AI agent acting as a chief of staff. You rate each task from 1 to 5 on importance and urgency, a 5 × 5 table maps the pair to P0, P1, P2, or drop, and each day holds exactly three goals that trace to quarterly and annual goals. The background, the evidence, and the figures are in Why P2 work rarely gets done, and how I pick three goals a day.

Each function computes its result from its arguments, and your goals, today's plan, and P2 list live in a plain TOML file that you keep under your own version control. The core library and the command line interface (CLI) use only the Python standard library, and an optional Model Context Protocol (MCP) server exposes the same functions to agents.

Install

Python 3.11 or later.

uv tool install "prioritykit[mcp]"
# or
pip install "prioritykit[mcp]"

Drop [mcp] if you only want the CLI and library.

The rules

Importance is defined by your goals, and urgency by how fast the cost of waiting grows:

Score Importance: what it does for your goals Urgency: how fast waiting gets costly
5 Directly advances an annual goal, or prevents serious harm to health, family, or a commitment others depend on Cost rises within hours; start today
4 Directly advances a quarterly goal Cost rises within days; this week
3 Supports a goal indirectly, or meets an obligation with moderate consequences Cost rises within weeks
2 Small benefit; no goal moves Waiting a month costs little
1 No effect on any goal Waiting a quarter costs nothing

The default table gives importance precedence over urgency:

importance \ urgency    1     2     3     4     5
                    5     P1    P1    P1    P1    P0
                    4     P1    P1    P1    P1    P0
                    3     P2    P2    P2    P1    P1
                    2   drop  drop  drop    P2    P2
                    1   drop  drop  drop    P2    P2
cells: 2 P0, 10 P1, 7 P2, 6 drop
Level Action
P0, interrupt Rewrite today's three goals around it, and name the goal it displaces.
P1, schedule Give it a slot in one of the next few days' three goals.
P2, list Put it on the P2 list and plan as if it will not happen. The weekly review promotes it to P1 or deletes it.
drop Decline it or delete it now.

P0 needs importance of at least 4 and urgency 5, so work that grows costly within days waits for the next morning's plan instead of interrupting today. Urgency alone never lifts work of importance 1 or 2 above P2. Multiplying the two scores, as a risk matrix does, would rank a very important task with no deadline (5 × 1 = 5) below an unimportant urgent one (2 × 5 = 10).

CLI

prioritykit classify -i 5 -u 2          # Importance 5, urgency 2: P1 (schedule). ...
prioritykit matrix                      # the 5 x 5 grid
prioritykit anchors                     # anchors and level actions
prioritykit check examples/priorities.toml --departures 3
prioritykit validate-matrix my-matrix.json

Every command takes --json. check exits with status 1 when the goal tree or today's plan breaks a rule, so it can run in a pre-commit hook or a scheduled job. Output for the example:

today (3 goals): ok
  Review a design doc with a teammate <- Mentor a junior scientist <- Grow as a technical lead
  Dinner and bedtime, phone in another room <- Protect weekday evenings <- Be present with my family
  45-minute strength session <- Strength train 3 times a week <- Stay strong and fit
  annual goals with no slot today: Publish technical writing
P2 list: 3 items
  promote: Renew the passport before the spring trip (P1)
  delete (older than 90 days): Reorganize the photo library
  keep: Try a new note-taking app
  expected wait for a new item: 1.0 months

The priorities file

[[goal]]
id = "fit"
title = "Stay strong and fit"
horizon = "annual"

[[goal]]
id = "strength"
title = "Strength train 3 times a week"
horizon = "quarterly"
parent = "fit"

[today]
date = 2026-11-24
goals = [
  { title = "45-minute strength session", parent = "strength" },
  # ... exactly three entries; a P0 entry is { title = "...", p0 = true, displaces = "..." }
]

[[p2]]
title = "Reorganize the photo library"
added = 2026-05-02
importance = 2   # optional; rescored items that now map to P1 or P0 are promotion candidates
urgency = 1

examples/priorities.toml is a complete file. A P2 item older than 90 days that still scores P2 or lower, or was never scored, is a deletion candidate; change the threshold with --max-age.

MCP server for agents

The server speaks stdio and exposes seven tools, all of them pure functions:

Tool What it returns
get_rubric anchors, level actions, the grid, and the daily goal count
classify_task the level and action for an importance and urgency pair
check_day_plan whether today holds exactly three goals, each traced to quarterly and annual goals
replan_for_p0 today's plan with one goal replaced by a confirmed P0, rechecked
review_p2 promote, delete, and keep lists for a P2 review
wait_estimate expected months on a list, by Little's law
check_workspace all of the above for a local priorities.toml

Claude Code:

claude mcp add --transport stdio --scope user prioritykit -- prioritykit-mcp

Claude Desktop (claude_desktop_config.json):

{ "mcpServers": { "prioritykit": { "command": "prioritykit-mcp" } } }

The server's instructions tell the agent to propose scores with a reason for each and wait for the human to confirm, never to label work P0 on its own, to call check_day_plan before presenting a day's three goals, and to raise P2 items only during a review. Work the agent generates for itself is scored like any other task. The same protocol is written out as an agent skill in skills/prioritykit/SKILL.md; copy it into ~/.claude/skills/ or adapt it for an AGENTS.md file.

check_workspace reads the file path the agent passes. The server runs locally with your permissions, so scope the agent's file access as you would for any local tool.

Your own table

Copy src/prioritykit/data/default_matrix.json, change the anchors or cells, and pass it with --matrix, or set PRIORITYKIT_MATRIX for the MCP server. prioritykit validate-matrix rejects a table in which raising a score lowers the level, and warns when urgency alone lifts low-importance work above P2, when P0 cells fall outside the top-right corner, or when more than 4 cells are P0.

Limits

The scores are ordinal judgments. Two people can score the same task differently, and ordinal risk matrices are known to compress very different risks into one rating (Cox, 2008). The number three is an operating rule from experience; the research behind the surrounding practices (specific goals, if-then plans, written progress checks) is summarized in the background post.

Development

uv sync --group dev
uv run pytest
uv run ruff check . && uv run ruff format --check . && uv run mypy

License

Apache-2.0.