ConsolePlus + PromptPlus Plugin
Helps AI coding assistants choose and implement the right ConsolePlus/PromptPlus control for a .NET console application - which layer fits the need, whether an interactive control can even run in the target execution context, which of PromptPlus's 21 controls is the right fit, and how to implement it correctly - instead of you driving the decision and the API surface by hand. Two integrations are maintained in this repo:
- Claude Code - a full plugin (1 skill, 2 agents, 1 hook), distributed through Claude Code's plugin marketplace.
- GitHub Copilot - the same skill and agents, adapted to Copilot's Agent Skills / custom-agent format under
copilot/ (copied manually into your repo - there's no marketplace for Copilot, and no equivalent to the Claude Code hook; see that section for how the console-project check works there instead).
Already installed and just want to know what to actually type? See How to use →.
Key concepts
- ConsolePlus - the rendering foundation (styled output, markup, colors, widgets, cursor/screen control, capability detection). PromptPlus - the interactive-controls layer built on top of it (menus, inputs, pickers, progress, ...).
PromptPlus.Console is the ConsolePlus driver - using PromptPlus never excludes ConsolePlus.
- Console-type projects only - this plugin's skill (and, on Claude Code, its hook) only apply where the entry point project is a console app (
OutputType Exe, not a web app, not a WinForms/WPF app using WinExe, not a library with no console entry point reachable in scope).
- Version-pinned documentation - both libraries publish
-rc release candidates alongside stable versions; this plugin resolves the actual installed version (or the newest policy-acceptable one for a greenfield project) and pins every documentation fetch to the matching GitHub tag, rather than reading main/develop, which can describe unreleased API.
- Agent Skills - the open standard (
SKILL.md + frontmatter) both Claude Code and GitHub Copilot consume; it's why skills/select-promptplus-control and copilot/skills/select-promptplus-control are near-identical rather than two unrelated implementations.
What's included
- Skill
select-promptplus-control - the router. Decides the ConsolePlus/PromptPlus layer, checks whether an interactive control can run in the target context (the IsInputRedirected guard and its exemptions), picks the right control among 21 (via 3 confusable clusters + 8 singles), and loads that control's implementation docs only when needed - never all 21 up front.
- Agent
promptplus-auditor - full, on-demand, whole-codebase audit of existing ConsolePlus/PromptPlus usage: the redirected-input guard gap, confused IWidgets namespace usage, global Config mutation vs .Options(), unchecked .IsAborted, control choice against documented alternatives, abort-key overrides. Verifies findings against the live, version-pinned docs rather than memory. Read-only, produces a report.
- Agent
promptplus-precommit-check - fast, diff-scoped counterpart: checks only pending changes, only for the two cheapest-to-fix bug-risk patterns (redirected-input guard gap, unchecked .IsAborted), no network/doc dependency. Meant to run proactively before every commit/PR, in the background, without slowing anything down - not a replacement for the full audit.
scripts/resolve_package_version.py - resolves the policy-acceptable published version of a package (stable or -rc, never -beta/-alpha/-preview) and separately the GitHub tag matching what's actually installed, so "which version should I upgrade to" and "which docs describe my code" never get conflated. Caches the GitHub tag list for a few minutes (see --tags-cache-minutes) so a session that checks both PromptPlus and ConsolePlus.net doesn't burn through the unauthenticated GitHub API rate limit.
scripts/_http.py - shared HTTP/cache helpers the two scripts above both import (single source for the User-Agent string and a response-size guard). Not invoked directly - always travels alongside the other scripts.