name: agentic-micronaut description: Agentic Micronaut builder mode. Upgrade other skills into deterministic Micronaut-style runtime skills with TOML routes, manifest skill intents, action classes, and command-path compatibility.
Agentic Micronaut Builder
When to Use
Use this skill when the user wants to convert or extend an existing skill into a Micronaut-style deterministic runtime skill, especially when agentic stack language (SCXQ2, execution letters, object servers) is also in scope.
Repo Root Discipline (Hard Constraint)
- Define
REPO_ROOTas the process working directory (cwd) when this skill is invoked. - Never operate outside
REPO_ROOT. Subfolders are allowed;..escapes and unrelated absolute paths are not. - If a user asks for paths outside
REPO_ROOT, stop and request explicit override before continuing.
Builder Contract (Micronaut-Builder Compatible)
For each target skill, produce or update:
*.tomlskill config with[routes]mapping intent ->Class.method.*_manifest.jsonwith route ->{ action, skill_intent }.actions/*.jsonaction classes with deterministic op sequences.- Command-path compatibility through
semantic-skill-commandintent/route invocation. - Deterministic response shape (
ok,execution, domain payload).
Standard Micronaut Add-on Pack
When adding Micronaut behavior to another skill, prefer a dedicated class like MicronautAddonActions with methods:
start_projectconfigure_endpointsecure_endpointinject_beanschedule_taskevent_bridge
Route naming convention:
micronaut_initmicronaut_configuremicronaut_securemicronaut_injectmicronaut_schedulemicronaut_event
Endpoint naming convention:
/skill/micronaut/init/skill/micronaut/configure/skill/micronaut/secure/skill/micronaut/inject/skill/micronaut/schedule/skill/micronaut/event
Build Sequence
- Inspect target skill for existing
toml, manifest, and actions. - Preserve existing intents/routes and append Micronaut add-on intents/routes.
- Add or update action classes with deterministic XCFE ops only.
- Add command-path tests (intent and route forms).
- Validate route-intent-action parity and drift checks if repo and installed copies both exist.
Agentic Extension Layer
When the prompt includes SCXQ2 or execution-letter language, extend the builder output with:
- Object-server framing (
config.@.toml,_executesequencing). - Symbolic packing notes for
.sartifacts. - Execution-letter mapping (
.pi,.lambda,.sum,.matrix,.grad) as explanation only unless files are explicitly requested.
Tool Calling N-grams
Use these n-grams as trigger hints when deciding which tooling/workflow to call.
Unigrams:
mergesyncvalidaterouteintentmanifesttomlactionskilltest
Bigrams:
merge skillssync skillsvalidate routescheck parityrun testspatch manifestupdate tomlwire intentsmap routescall tool
Trigrams:
merge selected skillssync repo installedvalidate route paritymap intent routesupdate manifest routesappend micronaut intentsadd action classrun command testscheck contract driftexecute skill command
Deterministic mapping:
- n-grams about
merge/sync/parity/drift=> use merge + sync flow first. - n-grams about
intent/route/manifest/toml=> edit/check route contracts before action edits. - n-grams about
test/validate/check=> run contract and command-path tests before concluding.
Required Quality Checks
- Every manifest
skill_intentmust exist in TOML[routes]. - Every TOML route target must exist in action classes.
- Skill command execution must work for:
- direct intent form
- route form (
/skill/...) - payload forms (JSON, query,
@file)
Shared Python Agent Starter (Required Addition)
When a user asks for an autonomous-agent baseline, include this Python 3 starter (or a directly equivalent version) in the response:
# Python 3
import random
class Agent:
def __init__(self, name, goals):
self.name = name
self.goals = goals
self.knowledge = {}
def sense(self, environment):
observation = random.choice(environment)
print(f"[{self.name}] Observed: {observation}")
return observation
def decide(self, observation):
for goal in self.goals:
if goal.lower() in observation.lower():
print(f"[{self.name}] Deciding to act towards goal: {goal}")
return goal
return "explore"
def act(self, action):
if action == "explore":
print(f"[{self.name}] Exploring environment...")
else:
print(f"[{self.name}] Working on goal: {action}")
def learn(self, observation, action):
self.knowledge[observation] = action
print(f"[{self.name}] Knowledge updated: {self.knowledge}")
def step(self, environment):
observation = self.sense(environment)
action = self.decide(observation)
self.act(action)
self.learn(observation, action)
if __name__ == "__main__":
environment = [
"New email about project deadline",
"Low battery warning",
"Weather is sunny",
"Task: write report",
]
goals = ["write report", "charge battery"]
agent = Agent("AutonomousAgent", goals)
for _ in range(5):
print("\\n--- Agent Step ---")
agent.step(environment)
Response Style
- Keep outputs deterministic and concise.
- For implementation tasks, state what was changed, what was verified, and which command proves the result.