Foundational Skills — API¶
The five foundational skills (discovery, execution, auth_gates, browser, pdf_extraction) provide the cross-cutting capabilities every agent in the catalog can compose with. Decision rationale lives in the ADR index; operational guidance lives in the skill pages.
Skill Discovery¶
mirai_shared_skills.discovery ¶
Skill Discovery foundational module.
SkillDiscoverySkill ¶
Bases: BaseSkill
Dynamic discovery surface for the shared skill catalog.
get_tools ¶
Source code in mirai_shared_skills/discovery/skill.py
skill ¶
find-skills — dynamic catalog discovery foundational skill.
Allows an autonomous agent to query the catalog metadata registry, retrieve instructional payloads for individual skills, and bootstrap further reasoning without hard-coded knowledge of available capabilities.
SkillDiscoverySkill ¶
Bases: BaseSkill
Dynamic discovery surface for the shared skill catalog.
get_tools ¶
Source code in mirai_shared_skills/discovery/skill.py
Execution & Debugging¶
mirai_shared_skills.execution ¶
Execution & Debugging foundational module.
ExecutionDebuggingSkill ¶
Bases: BaseSkill
Raw skill that executes commands in an isolated working directory and reports the captured streams so the agent can verify success objectively.
get_tools ¶
Source code in mirai_shared_skills/execution/skill.py
skill ¶
Execution & Debugging — Raw skill that runs commands in an isolated sandbox.
This skill forces the agent to verify code success objectively by reading the
captured STDOUT/STDERR plus any rotated log file, drastically reducing silent
failures. It is categorised as Raw because arbitrary subprocess execution
and filesystem reads are state-mutating relative to the host machine.
Downstream clients are expected to wrap every tool exposed here with a
SecureSkill policy.
ExecutionDebuggingSkill ¶
Bases: BaseSkill
Raw skill that executes commands in an isolated working directory and reports the captured streams so the agent can verify success objectively.
get_tools ¶
Source code in mirai_shared_skills/execution/skill.py
Authentication Gates¶
mirai_shared_skills.auth_gates ¶
Authentication Gates foundational module.
AuthenticationGatesSkill ¶
Bases: BaseSkill
Standard skill that intercepts 401/403 responses and emits handoff signals.
get_tools ¶
Source code in mirai_shared_skills/auth_gates/skill.py
CredentialHandoff
dataclass
¶
CredentialHandoff(
integration: str,
credential_kind: str,
status_code: int,
reason: str,
docs_url: str | None = None,
)
Structured payload describing a credential the human operator must provide.
to_payload ¶
Source code in mirai_shared_skills/auth_gates/skill.py
skill ¶
Authentication Gates — intercept HTTP 401/403 responses and hand off to a human.
The skill exposes a deterministic interceptor that inspects an HTTP status code, suspends the autonomous loop when the upstream rejected the request, and emits a structured handoff payload describing which credential is missing.
Categorised as Standard because the interceptor itself never mutates external state; it only emits structured signals back to the orchestrator.
AUTH_FAILURE_STATUSES
module-attribute
¶
AuthenticationGatesSkill ¶
Bases: BaseSkill
Standard skill that intercepts 401/403 responses and emits handoff signals.
get_tools ¶
Source code in mirai_shared_skills/auth_gates/skill.py
CredentialHandoff
dataclass
¶
CredentialHandoff(
integration: str,
credential_kind: str,
status_code: int,
reason: str,
docs_url: str | None = None,
)
Structured payload describing a credential the human operator must provide.
to_payload ¶
Source code in mirai_shared_skills/auth_gates/skill.py
Agent Browser¶
mirai_shared_skills.browser ¶
Agent Browser foundational module.
AgentBrowserSkill ¶
Bases: BaseSkill
Standard skill that performs headless GET requests against the public web.
Source code in mirai_shared_skills/browser/skill.py
get_tools ¶
Source code in mirai_shared_skills/browser/skill.py
skill ¶
Agent Browser — headless web navigation for real-time external intelligence.
The skill uses httpx.AsyncClient for transport and a small stdlib HTML-to-text
extractor so the package has no heavyweight runtime dependencies. Downstream
clients can replace the Fetcher callable with a Playwright-backed one when
JavaScript rendering is required.
DEFAULT_USER_AGENT
module-attribute
¶
AgentBrowserSkill ¶
Bases: BaseSkill
Standard skill that performs headless GET requests against the public web.
Source code in mirai_shared_skills/browser/skill.py
get_tools ¶
Source code in mirai_shared_skills/browser/skill.py
html_to_text ¶
PDF Extraction¶
mirai_shared_skills.pdf_extraction ¶
PDF Extraction foundational module.
PdfExtractionSkill ¶
Bases: BaseSkill
Standard skill that parses PDFs into plain text and metadata.
get_tools ¶
Source code in mirai_shared_skills/pdf_extraction/skill.py
skill ¶
PDF Extraction — parse unstructured enterprise PDFs into LLM-ready text.
The skill wraps pypdf so the catalog stays dependency-light. Extraction is
performed in a worker thread to keep the asyncio event loop responsive when an
agent processes large documents.
PdfExtractionSkill ¶
Bases: BaseSkill
Standard skill that parses PDFs into plain text and metadata.