mahu 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mahu/__init__.py +9 -0
- mahu/cli.py +107 -0
- mahu/dependencies.py +108 -0
- mahu/enable.py +110 -0
- mahu/manifest.py +69 -0
- mahu/router.py +150 -0
- mahu-1.0.0.dist-info/METADATA +89 -0
- mahu-1.0.0.dist-info/RECORD +14 -0
- mahu-1.0.0.dist-info/WHEEL +5 -0
- mahu-1.0.0.dist-info/entry_points.txt +2 -0
- mahu-1.0.0.dist-info/licenses/LICENSE +201 -0
- mahu-1.0.0.dist-info/scm_file_list.json +34 -0
- mahu-1.0.0.dist-info/scm_version.json +8 -0
- mahu-1.0.0.dist-info/top_level.txt +1 -0
mahu/__init__.py
ADDED
mahu/cli.py
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"""Mahu CLI."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
import click
|
|
9
|
+
|
|
10
|
+
from mahu import __version__
|
|
11
|
+
from mahu.dependencies import check_all_dependencies, check_dependency
|
|
12
|
+
from mahu.enable import SUPPORTED_AGENTS, enable_agent
|
|
13
|
+
from mahu.manifest import validate_manifest
|
|
14
|
+
from mahu.router import route_request
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@click.group()
|
|
18
|
+
@click.version_option(__version__, prog_name="mahu")
|
|
19
|
+
def main():
|
|
20
|
+
"""Mahu — agent skill router for daily AI work."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@main.command()
|
|
24
|
+
@click.argument("request", nargs=-1, required=True)
|
|
25
|
+
@click.option("--json-output", is_flag=True, default=False, help="Output structured JSON.")
|
|
26
|
+
def route(request: tuple[str, ...], json_output: bool):
|
|
27
|
+
"""Route a request to Mahu subskills."""
|
|
28
|
+
text = " ".join(request)
|
|
29
|
+
try:
|
|
30
|
+
result = route_request(text)
|
|
31
|
+
except ValueError as exc:
|
|
32
|
+
click.secho(f"✗ {exc}", fg="red", err=True)
|
|
33
|
+
raise SystemExit(1) from exc
|
|
34
|
+
if json_output:
|
|
35
|
+
click.echo(json.dumps(result.to_dict(), indent=2, ensure_ascii=False))
|
|
36
|
+
return
|
|
37
|
+
click.secho(f"primary: {result.primary}", fg="green", bold=True)
|
|
38
|
+
click.echo(f"sequence: {' -> '.join(result.sequence)}")
|
|
39
|
+
click.echo(f"load: {', '.join(result.references)}")
|
|
40
|
+
click.echo(f"reason: {result.reason}")
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@main.command()
|
|
44
|
+
@click.option("--root", type=click.Path(exists=True, file_okay=False, path_type=Path), default=".", help="Mahu repo root.")
|
|
45
|
+
@click.option("--json-output", is_flag=True, default=False, help="Output structured JSON.")
|
|
46
|
+
def validate(root: Path, json_output: bool):
|
|
47
|
+
"""Validate Mahu skill repository structure."""
|
|
48
|
+
report = validate_manifest(root)
|
|
49
|
+
if json_output:
|
|
50
|
+
click.echo(json.dumps(report.to_dict(), indent=2, ensure_ascii=False))
|
|
51
|
+
elif report.valid:
|
|
52
|
+
click.secho("✓ Mahu skill manifest is valid", fg="green", bold=True)
|
|
53
|
+
else:
|
|
54
|
+
for error in report.errors:
|
|
55
|
+
click.secho(f"✗ {error}", fg="red", err=True)
|
|
56
|
+
if not report.valid:
|
|
57
|
+
raise SystemExit(1)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@main.command()
|
|
61
|
+
@click.option("--subskill", default=None, help="Check one subskill dependency.")
|
|
62
|
+
@click.option("--json-output", is_flag=True, default=False, help="Output structured JSON.")
|
|
63
|
+
def doctor(subskill: str | None, json_output: bool):
|
|
64
|
+
"""Check CLI dependencies required by Mahu subskills."""
|
|
65
|
+
try:
|
|
66
|
+
statuses = (check_dependency(subskill),) if subskill else check_all_dependencies()
|
|
67
|
+
except ValueError as exc:
|
|
68
|
+
click.secho(f"✗ {exc}", fg="red", err=True)
|
|
69
|
+
raise SystemExit(1) from exc
|
|
70
|
+
payload = {"ok": all(status.found for status in statuses), "dependencies": [status.to_dict() for status in statuses]}
|
|
71
|
+
if json_output:
|
|
72
|
+
click.echo(json.dumps(payload, indent=2, ensure_ascii=False))
|
|
73
|
+
return
|
|
74
|
+
for status in statuses:
|
|
75
|
+
marker = "✓" if status.found else "✗"
|
|
76
|
+
detail = status.version or status.path or status.dependency.install
|
|
77
|
+
color = "green" if status.found else "yellow"
|
|
78
|
+
click.secho(f"{marker} {status.dependency.subskill}: {status.dependency.command} - {detail}", fg=color)
|
|
79
|
+
if not payload["ok"]:
|
|
80
|
+
raise SystemExit(1)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
@main.command()
|
|
84
|
+
@click.argument("agent", type=click.Choice(SUPPORTED_AGENTS))
|
|
85
|
+
@click.option("--target", type=click.Path(file_okay=False, path_type=Path), default=".", help="Target project directory.")
|
|
86
|
+
@click.option("--root", type=click.Path(exists=True, file_okay=False, path_type=Path), default=".", help="Mahu repo root.")
|
|
87
|
+
@click.option("--json-output", is_flag=True, default=False, help="Output structured JSON.")
|
|
88
|
+
def enable(agent: str, target: Path, root: Path, json_output: bool):
|
|
89
|
+
"""Enable Mahu into a local agent workspace."""
|
|
90
|
+
try:
|
|
91
|
+
report = validate_manifest(root)
|
|
92
|
+
if not report.valid:
|
|
93
|
+
raise ValueError("; ".join(report.errors))
|
|
94
|
+
result = enable_agent(root, target, agent)
|
|
95
|
+
except ValueError as exc:
|
|
96
|
+
click.secho(f"✗ {exc}", fg="red", err=True)
|
|
97
|
+
raise SystemExit(1) from exc
|
|
98
|
+
if json_output:
|
|
99
|
+
click.echo(json.dumps(result.to_dict(), indent=2, ensure_ascii=False))
|
|
100
|
+
return
|
|
101
|
+
click.secho(f"✓ Mahu enabled for {agent}", fg="green", bold=True)
|
|
102
|
+
for path in result.files:
|
|
103
|
+
click.echo(f" {path}")
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
if __name__ == "__main__":
|
|
107
|
+
main() # pragma: no cover
|
mahu/dependencies.py
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"""Dependency checks for Mahu subskills."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import shutil
|
|
6
|
+
import subprocess
|
|
7
|
+
from dataclasses import dataclass
|
|
8
|
+
from typing import Callable
|
|
9
|
+
|
|
10
|
+
from mahu.router import get_subskill, list_subskills
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@dataclass(frozen=True)
|
|
14
|
+
class Dependency:
|
|
15
|
+
subskill: str
|
|
16
|
+
owner: str
|
|
17
|
+
command: str
|
|
18
|
+
package: str
|
|
19
|
+
install: str
|
|
20
|
+
purpose: str
|
|
21
|
+
|
|
22
|
+
def to_dict(self) -> dict:
|
|
23
|
+
return {
|
|
24
|
+
"subskill": self.subskill,
|
|
25
|
+
"owner": self.owner,
|
|
26
|
+
"command": self.command,
|
|
27
|
+
"package": self.package,
|
|
28
|
+
"install": self.install,
|
|
29
|
+
"purpose": self.purpose,
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@dataclass(frozen=True)
|
|
34
|
+
class DependencyStatus:
|
|
35
|
+
dependency: Dependency
|
|
36
|
+
found: bool
|
|
37
|
+
path: str | None = None
|
|
38
|
+
version: str | None = None
|
|
39
|
+
|
|
40
|
+
def to_dict(self) -> dict:
|
|
41
|
+
data = self.dependency.to_dict()
|
|
42
|
+
data.update({"found": self.found, "path": self.path, "version": self.version})
|
|
43
|
+
return data
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
DEPENDENCIES: tuple[Dependency, ...] = (
|
|
47
|
+
Dependency("context", "fcontext", "fcontext", "fcontext", "pip install fcontext", "topics, requirements, decisions, and durable context"),
|
|
48
|
+
Dependency("prototype", "fdesign", "fdesign", "fdesign", "pip install fdesign", "prototype and design-system workflow"),
|
|
49
|
+
Dependency("presentation", "fppt", "fppt", "fppt", "pip install fppt", "presentation and HTML deck workflow"),
|
|
50
|
+
Dependency("review", "floop-client", "floop", "floop", "pip install floop", "review project/version upload and comments"),
|
|
51
|
+
Dependency("test", "testboat", "testboat", "testboat", "pip install testboat", "tests, QA, regression, and acceptance evidence"),
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
_DEPENDENCY_BY_SUBSKILL = {dependency.subskill: dependency for dependency in DEPENDENCIES}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def list_dependencies() -> tuple[Dependency, ...]:
|
|
58
|
+
"""Return dependency contracts in subskill order."""
|
|
59
|
+
return DEPENDENCIES
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def get_dependency(subskill: str) -> Dependency:
|
|
63
|
+
"""Return the dependency contract for a subskill."""
|
|
64
|
+
get_subskill(subskill)
|
|
65
|
+
return _DEPENDENCY_BY_SUBSKILL[subskill]
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def check_dependency(
|
|
69
|
+
subskill: str,
|
|
70
|
+
*,
|
|
71
|
+
which: Callable[[str], str | None] = shutil.which,
|
|
72
|
+
runner: Callable[..., subprocess.CompletedProcess] = subprocess.run,
|
|
73
|
+
) -> DependencyStatus:
|
|
74
|
+
"""Check whether the CLI required by a subskill is available."""
|
|
75
|
+
dependency = get_dependency(subskill)
|
|
76
|
+
path = which(dependency.command)
|
|
77
|
+
if not path:
|
|
78
|
+
return DependencyStatus(dependency, found=False)
|
|
79
|
+
version = _read_version(dependency.command, runner)
|
|
80
|
+
return DependencyStatus(dependency, found=True, path=path, version=version)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def check_all_dependencies(
|
|
84
|
+
*,
|
|
85
|
+
which: Callable[[str], str | None] = shutil.which,
|
|
86
|
+
runner: Callable[..., subprocess.CompletedProcess] = subprocess.run,
|
|
87
|
+
) -> tuple[DependencyStatus, ...]:
|
|
88
|
+
"""Check all subskill dependencies."""
|
|
89
|
+
return tuple(
|
|
90
|
+
check_dependency(subskill.name, which=which, runner=runner)
|
|
91
|
+
for subskill in list_subskills()
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def _read_version(command: str, runner: Callable[..., subprocess.CompletedProcess]) -> str | None:
|
|
96
|
+
try:
|
|
97
|
+
result = runner(
|
|
98
|
+
[command, "--version"],
|
|
99
|
+
check=False,
|
|
100
|
+
capture_output=True,
|
|
101
|
+
text=True,
|
|
102
|
+
timeout=5,
|
|
103
|
+
)
|
|
104
|
+
except (OSError, subprocess.SubprocessError):
|
|
105
|
+
return None
|
|
106
|
+
output = (result.stdout or result.stderr or "").strip()
|
|
107
|
+
return output.splitlines()[0] if output else None
|
|
108
|
+
|
mahu/enable.py
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"""Enable Mahu skill files into agent-specific local directories."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import shutil
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
SUPPORTED_AGENTS = ("codex", "workbuddy", "copilot", "opencode")
|
|
11
|
+
MARKER_START = "<!-- mahu:skill -->"
|
|
12
|
+
MARKER_END = "<!-- /mahu:skill -->"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dataclass(frozen=True)
|
|
16
|
+
class EnableResult:
|
|
17
|
+
agent: str
|
|
18
|
+
target: Path
|
|
19
|
+
files: tuple[Path, ...]
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> dict:
|
|
22
|
+
return {
|
|
23
|
+
"agent": self.agent,
|
|
24
|
+
"target": str(self.target),
|
|
25
|
+
"files": [str(path) for path in self.files],
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def enable_agent(repo_root: Path, target: Path, agent: str) -> EnableResult:
|
|
30
|
+
"""Enable Mahu into a target project for an agent."""
|
|
31
|
+
normalized = agent.lower()
|
|
32
|
+
if normalized not in SUPPORTED_AGENTS:
|
|
33
|
+
raise ValueError(f"Unsupported agent: {agent}")
|
|
34
|
+
source = repo_root.resolve()
|
|
35
|
+
destination_root = _agent_skill_dir(target.resolve(), normalized)
|
|
36
|
+
created = _copy_skill_bundle(source, destination_root)
|
|
37
|
+
if normalized == "copilot":
|
|
38
|
+
created += (_write_copilot_instruction(target.resolve()),)
|
|
39
|
+
if normalized == "opencode":
|
|
40
|
+
created += (_write_agents_md(target.resolve()),)
|
|
41
|
+
return EnableResult(normalized, target.resolve(), tuple(created))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _agent_skill_dir(target: Path, agent: str) -> Path:
|
|
45
|
+
if agent == "codex":
|
|
46
|
+
return target / ".codex" / "skills" / "mahu"
|
|
47
|
+
if agent == "workbuddy":
|
|
48
|
+
return target / ".workbuddy" / "skills" / "mahu"
|
|
49
|
+
if agent == "copilot":
|
|
50
|
+
return target / ".github" / "skills" / "mahu"
|
|
51
|
+
if agent == "opencode":
|
|
52
|
+
return target / ".opencode" / "skills" / "mahu"
|
|
53
|
+
raise ValueError(f"Unsupported agent: {agent}") # pragma: no cover - guarded by enable_agent
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _copy_skill_bundle(source: Path, destination: Path) -> tuple[Path, ...]:
|
|
57
|
+
destination.mkdir(parents=True, exist_ok=True)
|
|
58
|
+
created: list[Path] = []
|
|
59
|
+
for filename in ("SKILL.md",):
|
|
60
|
+
target = destination / filename
|
|
61
|
+
shutil.copyfile(source / filename, target)
|
|
62
|
+
created.append(target)
|
|
63
|
+
for directory in ("skills", "adapters"):
|
|
64
|
+
source_dir = source / directory
|
|
65
|
+
target_dir = destination / directory
|
|
66
|
+
if target_dir.exists():
|
|
67
|
+
shutil.rmtree(target_dir)
|
|
68
|
+
shutil.copytree(source_dir, target_dir)
|
|
69
|
+
created.extend(path for path in sorted(target_dir.rglob("*")) if path.is_file())
|
|
70
|
+
return tuple(created)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def _write_copilot_instruction(target: Path) -> Path:
|
|
74
|
+
path = target / ".github" / "instructions" / "mahu.instructions.md"
|
|
75
|
+
path.parent.mkdir(parents=True, exist_ok=True)
|
|
76
|
+
path.write_text(
|
|
77
|
+
"---\n"
|
|
78
|
+
"description: 'Use Mahu as the router for context, prototype, presentation, review, and test work.'\n"
|
|
79
|
+
"applyTo: '**'\n"
|
|
80
|
+
"---\n\n"
|
|
81
|
+
"When the user invokes `/mahu`, read `.github/skills/mahu/SKILL.md` and follow its routing SOP.\n",
|
|
82
|
+
encoding="utf-8",
|
|
83
|
+
)
|
|
84
|
+
return path
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def _write_agents_md(target: Path) -> Path:
|
|
88
|
+
path = target / "AGENTS.md"
|
|
89
|
+
section = (
|
|
90
|
+
f"{MARKER_START}\n"
|
|
91
|
+
"## Mahu\n\n"
|
|
92
|
+
"Use Mahu for `/mahu` requests. Read `.opencode/skills/mahu/SKILL.md`, "
|
|
93
|
+
"classify the request, and load only the needed `skills/*.md` reference.\n"
|
|
94
|
+
f"{MARKER_END}\n"
|
|
95
|
+
)
|
|
96
|
+
if path.exists():
|
|
97
|
+
content = path.read_text(encoding="utf-8")
|
|
98
|
+
if MARKER_START in content:
|
|
99
|
+
before = content[: content.index(MARKER_START)]
|
|
100
|
+
if MARKER_END in content:
|
|
101
|
+
after = content[content.index(MARKER_END) + len(MARKER_END) :]
|
|
102
|
+
else:
|
|
103
|
+
after = ""
|
|
104
|
+
content = before + section + after
|
|
105
|
+
else:
|
|
106
|
+
content = content.rstrip() + "\n\n" + section
|
|
107
|
+
else:
|
|
108
|
+
content = section
|
|
109
|
+
path.write_text(content, encoding="utf-8")
|
|
110
|
+
return path
|
mahu/manifest.py
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Repository manifest validation for Mahu."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
from mahu.router import list_subskills
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
REQUIRED_ADAPTERS = ("codex", "workbuddy", "copilot", "opencode")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass(frozen=True)
|
|
15
|
+
class ManifestReport:
|
|
16
|
+
root: Path
|
|
17
|
+
valid: bool
|
|
18
|
+
errors: tuple[str, ...]
|
|
19
|
+
files: tuple[str, ...]
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> dict:
|
|
22
|
+
return {
|
|
23
|
+
"root": str(self.root),
|
|
24
|
+
"valid": self.valid,
|
|
25
|
+
"errors": list(self.errors),
|
|
26
|
+
"files": list(self.files),
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def validate_manifest(root: Path) -> ManifestReport:
|
|
31
|
+
"""Validate that a Mahu repo has the expected skill-router files."""
|
|
32
|
+
resolved = root.resolve()
|
|
33
|
+
required_files = _required_files()
|
|
34
|
+
errors: list[str] = []
|
|
35
|
+
for relative in required_files:
|
|
36
|
+
path = resolved / relative
|
|
37
|
+
if not path.is_file():
|
|
38
|
+
errors.append(f"Missing required file: {relative}")
|
|
39
|
+
continue
|
|
40
|
+
if not path.read_text(encoding="utf-8").strip():
|
|
41
|
+
errors.append(f"Required file is empty: {relative}")
|
|
42
|
+
skill_path = resolved / "SKILL.md"
|
|
43
|
+
if skill_path.is_file():
|
|
44
|
+
_validate_skill_frontmatter(skill_path, errors)
|
|
45
|
+
return ManifestReport(resolved, not errors, tuple(errors), tuple(required_files))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _required_files() -> list[str]:
|
|
49
|
+
files = ["SKILL.md", "README.md", "pyproject.toml"]
|
|
50
|
+
files.extend(subskill.reference for subskill in list_subskills())
|
|
51
|
+
files.extend(f"adapters/{adapter}.md" for adapter in REQUIRED_ADAPTERS)
|
|
52
|
+
return files
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def _validate_skill_frontmatter(path: Path, errors: list[str]) -> None:
|
|
56
|
+
text = path.read_text(encoding="utf-8")
|
|
57
|
+
if not text.startswith("---\n"):
|
|
58
|
+
errors.append("SKILL.md must start with YAML frontmatter.")
|
|
59
|
+
return
|
|
60
|
+
try:
|
|
61
|
+
_, frontmatter, _body = text.split("---", 2)
|
|
62
|
+
except ValueError:
|
|
63
|
+
errors.append("SKILL.md frontmatter is not closed.")
|
|
64
|
+
return
|
|
65
|
+
if "name: mahu" not in frontmatter:
|
|
66
|
+
errors.append("SKILL.md frontmatter must include name: mahu.")
|
|
67
|
+
if "description:" not in frontmatter:
|
|
68
|
+
errors.append("SKILL.md frontmatter must include description.")
|
|
69
|
+
|
mahu/router.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"""Deterministic routing rules for Mahu."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass(frozen=True)
|
|
10
|
+
class Subskill:
|
|
11
|
+
name: str
|
|
12
|
+
owner: str
|
|
13
|
+
reference: str
|
|
14
|
+
keywords: tuple[str, ...]
|
|
15
|
+
description: str
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@dataclass(frozen=True)
|
|
19
|
+
class RouteResult:
|
|
20
|
+
request: str
|
|
21
|
+
primary: str
|
|
22
|
+
sequence: tuple[str, ...]
|
|
23
|
+
references: tuple[str, ...]
|
|
24
|
+
confidence: str
|
|
25
|
+
reason: str
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict:
|
|
28
|
+
return {
|
|
29
|
+
"request": self.request,
|
|
30
|
+
"primary": self.primary,
|
|
31
|
+
"sequence": list(self.sequence),
|
|
32
|
+
"references": list(self.references),
|
|
33
|
+
"confidence": self.confidence,
|
|
34
|
+
"reason": self.reason,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
SUBSKILLS: tuple[Subskill, ...] = (
|
|
39
|
+
Subskill(
|
|
40
|
+
name="context",
|
|
41
|
+
owner="fcontext",
|
|
42
|
+
reference="skills/context.md",
|
|
43
|
+
keywords=("context", "memory", "topic", "requirement", "decision", "knowledge", "remember", "save"),
|
|
44
|
+
description="durable context, topics, requirements, and decisions",
|
|
45
|
+
),
|
|
46
|
+
Subskill(
|
|
47
|
+
name="prototype",
|
|
48
|
+
owner="fdesign",
|
|
49
|
+
reference="skills/prototype.md",
|
|
50
|
+
keywords=("prototype", "ui", "website", "app", "design", "component", "token", "journey", "sitemap"),
|
|
51
|
+
description="prototype, UI, journey, tokens, components, and design-system work",
|
|
52
|
+
),
|
|
53
|
+
Subskill(
|
|
54
|
+
name="presentation",
|
|
55
|
+
owner="fppt",
|
|
56
|
+
reference="skills/presentation.md",
|
|
57
|
+
keywords=("ppt", "slide", "slides", "deck", "presentation", "talk", "keynote", "share"),
|
|
58
|
+
description="presentations, decks, slides, and talks",
|
|
59
|
+
),
|
|
60
|
+
Subskill(
|
|
61
|
+
name="review",
|
|
62
|
+
owner="floop-client",
|
|
63
|
+
reference="skills/review.md",
|
|
64
|
+
keywords=("review", "feedback", "comment", "comments", "upload", "publish", "resolve", "shareurl"),
|
|
65
|
+
description="review project/version upload, comments, and resolve loop",
|
|
66
|
+
),
|
|
67
|
+
Subskill(
|
|
68
|
+
name="test",
|
|
69
|
+
owner="testboat",
|
|
70
|
+
reference="skills/test.md",
|
|
71
|
+
keywords=("test", "qa", "regression", "acceptance", "smoke", "verify", "coverage", "check"),
|
|
72
|
+
description="tests, QA, regression checks, and acceptance evidence",
|
|
73
|
+
),
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
_SUBSKILL_BY_NAME = {subskill.name: subskill for subskill in SUBSKILLS}
|
|
77
|
+
_TOKEN_PATTERN = re.compile(r"[a-z0-9#+.-]+")
|
|
78
|
+
_WORKFLOW_ORDER = {
|
|
79
|
+
"context": 0,
|
|
80
|
+
"prototype": 10,
|
|
81
|
+
"presentation": 10,
|
|
82
|
+
"test": 20,
|
|
83
|
+
"review": 30,
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def list_subskills() -> tuple[Subskill, ...]:
|
|
88
|
+
"""Return supported subskills in route priority order."""
|
|
89
|
+
return SUBSKILLS
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def get_subskill(name: str) -> Subskill:
|
|
93
|
+
"""Return a subskill by name."""
|
|
94
|
+
try:
|
|
95
|
+
return _SUBSKILL_BY_NAME[name]
|
|
96
|
+
except KeyError as exc:
|
|
97
|
+
raise ValueError(f"Unknown Mahu subskill: {name}") from exc
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def route_request(request: str) -> RouteResult:
|
|
101
|
+
"""Classify a user request into a Mahu subskill sequence."""
|
|
102
|
+
cleaned = request.strip()
|
|
103
|
+
if not cleaned:
|
|
104
|
+
raise ValueError("Request cannot be empty.")
|
|
105
|
+
normalized = cleaned.lower()
|
|
106
|
+
tokens = set(_TOKEN_PATTERN.findall(normalized))
|
|
107
|
+
scores = _score(tokens, normalized)
|
|
108
|
+
matched = [name for name, score in scores.items() if score > 0]
|
|
109
|
+
|
|
110
|
+
if not matched:
|
|
111
|
+
fallback = get_subskill("context")
|
|
112
|
+
return RouteResult(
|
|
113
|
+
request=cleaned,
|
|
114
|
+
primary=fallback.name,
|
|
115
|
+
sequence=(fallback.name,),
|
|
116
|
+
references=(fallback.reference,),
|
|
117
|
+
confidence="low",
|
|
118
|
+
reason="No domain keywords matched; start by clarifying and capturing context.",
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
sequence = tuple(sorted(matched, key=lambda name: _workflow_priority(name)))
|
|
122
|
+
primary = sequence[0]
|
|
123
|
+
confidence = "high" if len(sequence) > 1 or scores[primary] >= 2 else "medium"
|
|
124
|
+
references = tuple(get_subskill(name).reference for name in sequence)
|
|
125
|
+
reason = _reason(sequence, scores)
|
|
126
|
+
return RouteResult(cleaned, primary, sequence, references, confidence, reason)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def _score(tokens: set[str], normalized: str) -> dict[str, int]:
|
|
130
|
+
scores: dict[str, int] = {}
|
|
131
|
+
for subskill in SUBSKILLS:
|
|
132
|
+
score = 0
|
|
133
|
+
for keyword in subskill.keywords:
|
|
134
|
+
if keyword in tokens or (len(keyword) > 3 and keyword in normalized):
|
|
135
|
+
score += 1
|
|
136
|
+
scores[subskill.name] = score
|
|
137
|
+
return scores
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def _workflow_priority(name: str) -> int:
|
|
141
|
+
return _WORKFLOW_ORDER.get(name, len(_WORKFLOW_ORDER)) # pragma: no cover - only known subskills are ranked
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def _reason(sequence: tuple[str, ...], scores: dict[str, int]) -> str:
|
|
145
|
+
if len(sequence) == 1:
|
|
146
|
+
subskill = get_subskill(sequence[0])
|
|
147
|
+
return f"Matched {subskill.name} keywords; load {subskill.reference}."
|
|
148
|
+
route = " -> ".join(sequence)
|
|
149
|
+
detail = ", ".join(f"{name}:{scores[name]}" for name in sequence)
|
|
150
|
+
return f"Multi-intent request; execute in sequence {route}. Scores: {detail}."
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mahu
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Agent skill router for context, prototypes, presentations, tests, and feedback loops
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: click>=8.1
|
|
10
|
+
Provides-Extra: test
|
|
11
|
+
Requires-Dist: pytest>=8.0; extra == "test"
|
|
12
|
+
Requires-Dist: pytest-cov>=5.0; extra == "test"
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# Mahu
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
<img src="mahu.png" alt="Mahu" width="320">
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
I'm Mahu, your free AI work buddy for context, prototypes, tests, feedback, and growth.
|
|
23
|
+
Bring me into your daily workflow.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Mahu is not a single builder and not another chat persona. It is a lightweight
|
|
27
|
+
agent skill package that helps Codex, OpenCode, Copilot, WorkBuddy, and future
|
|
28
|
+
agents work through the right SOP instead of improvising every time.
|
|
29
|
+
|
|
30
|
+
Use `/mahu` when daily work needs structure: capture context, build a prototype,
|
|
31
|
+
create a presentation, test the result, publish it for feedback, or turn the
|
|
32
|
+
learning loop into growth momentum.
|
|
33
|
+
|
|
34
|
+
## What Mahu Helps With
|
|
35
|
+
|
|
36
|
+
| User intent | Mahu subskill | Owning tool |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| context, memory, topics, requirements | `context` | `fcontext` |
|
|
39
|
+
| prototype, UI, website, app, design system | `prototype` | `fdesign` |
|
|
40
|
+
| deck, PPT, slides, presentation | `presentation` | `fppt` |
|
|
41
|
+
| review, feedback, comments, upload, resolve | `review` | `floop-client` |
|
|
42
|
+
| tests, QA, regression, acceptance | `test` | `testboat` |
|
|
43
|
+
| growth, iteration, learning loop | combine context, test, and feedback | Mahu SOP |
|
|
44
|
+
|
|
45
|
+
## Install By GitHub Link
|
|
46
|
+
|
|
47
|
+
The simplest install path is the same shape as `frontend-slides`: send your
|
|
48
|
+
agent the GitHub repo link and ask it to use Mahu.
|
|
49
|
+
|
|
50
|
+
The agent should:
|
|
51
|
+
|
|
52
|
+
1. Read top-level `SKILL.md`.
|
|
53
|
+
2. Classify the request.
|
|
54
|
+
3. Load only the referenced file under `skills/` that matches the request.
|
|
55
|
+
4. Follow that subskill SOP.
|
|
56
|
+
|
|
57
|
+
## Local CLI
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
mahu route "make a product prototype and upload for review"
|
|
61
|
+
mahu doctor --subskill prototype
|
|
62
|
+
mahu validate
|
|
63
|
+
mahu enable opencode --target .
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Each Mahu subskill declares its own dependency. Before executing a routed
|
|
67
|
+
subskill, run `mahu doctor --subskill <name>` or check the required CLI
|
|
68
|
+
directly.
|
|
69
|
+
|
|
70
|
+
| Subskill | Required CLI | Typical install |
|
|
71
|
+
| --- | --- | --- |
|
|
72
|
+
| `context` | `fcontext` | `pip install fcontext` |
|
|
73
|
+
| `prototype` | `fdesign` | `pip install fdesign` |
|
|
74
|
+
| `presentation` | `fppt` | `pip install fppt` |
|
|
75
|
+
| `review` | `floop` | `pip install floop` |
|
|
76
|
+
| `test` | `testboat` | `pip install testboat` |
|
|
77
|
+
|
|
78
|
+
Supported enable targets:
|
|
79
|
+
|
|
80
|
+
- `codex`
|
|
81
|
+
- `workbuddy`
|
|
82
|
+
- `copilot`
|
|
83
|
+
- `opencode`
|
|
84
|
+
|
|
85
|
+
## Development
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
PYTHONPATH=src pytest --cov=mahu --cov-report=term-missing --cov-fail-under=100
|
|
89
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
mahu/__init__.py,sha256=ZB-Q6TWxYjJLPv_MflPJCqU7Te8Av9Isbhxo2sVYK_g,248
|
|
2
|
+
mahu/cli.py,sha256=dipTD9J7VJOJiWSzdWJREDJyEQNO1CW5cbB0XwMEOpY,4291
|
|
3
|
+
mahu/dependencies.py,sha256=T87HO64ACYvgkDKPo1H9wQ84XPk4W7paZMMar_CfirE,3485
|
|
4
|
+
mahu/enable.py,sha256=1CJY4oqIgWOcYAwmKQuqRPZztusyderEfU1_3cR-M1s,3883
|
|
5
|
+
mahu/manifest.py,sha256=LB1g7ADz3LAZzFs3GHCjPkFYVADKD4an_QsX2IL2nYM,2218
|
|
6
|
+
mahu/router.py,sha256=tSroWO_F12EYNHl0EfFVRE1qErSHspYr8g-R2GcylzE,4944
|
|
7
|
+
mahu-1.0.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
8
|
+
mahu-1.0.0.dist-info/METADATA,sha256=5XpldiI8ya7364SumCJpC3IhFhdTxlAFjQV_41iOCls,2724
|
|
9
|
+
mahu-1.0.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
10
|
+
mahu-1.0.0.dist-info/entry_points.txt,sha256=pii9BHRarS48iU-L9dETZNIXUtzX3Gh6dwy7GfVBVN0,39
|
|
11
|
+
mahu-1.0.0.dist-info/scm_file_list.json,sha256=NNJrNOAqJfL1Cns0WjRJkxsZeyryphwNIp_RCMw7_JM,799
|
|
12
|
+
mahu-1.0.0.dist-info/scm_version.json,sha256=wj2tt_yEHORA7jDjKute4-msKJeQ_NWP03LyV_Uivbk,160
|
|
13
|
+
mahu-1.0.0.dist-info/top_level.txt,sha256=Cf0WyM7eMWVQ9kJqOTltperSEmQ35HlBX6EuuRMdavk,5
|
|
14
|
+
mahu-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
"mahu.png",
|
|
4
|
+
"SKILL.md",
|
|
5
|
+
"README.md",
|
|
6
|
+
"LICENSE",
|
|
7
|
+
"pyproject.toml",
|
|
8
|
+
".gitignore",
|
|
9
|
+
"src/mahu/dependencies.py",
|
|
10
|
+
"src/mahu/__init__.py",
|
|
11
|
+
"src/mahu/manifest.py",
|
|
12
|
+
"src/mahu/enable.py",
|
|
13
|
+
"src/mahu/router.py",
|
|
14
|
+
"src/mahu/cli.py",
|
|
15
|
+
"adapters/workbuddy.md",
|
|
16
|
+
"adapters/copilot.md",
|
|
17
|
+
"adapters/codex.md",
|
|
18
|
+
"adapters/opencode.md",
|
|
19
|
+
"skills/test.md",
|
|
20
|
+
"skills/review.md",
|
|
21
|
+
"skills/context.md",
|
|
22
|
+
"skills/presentation.md",
|
|
23
|
+
"skills/prototype.md",
|
|
24
|
+
"tests/test_dependencies.py",
|
|
25
|
+
"tests/__init__.py",
|
|
26
|
+
"tests/test_router.py",
|
|
27
|
+
"tests/test_manifest.py",
|
|
28
|
+
"tests/test_enable.py",
|
|
29
|
+
"tests/test_cli.py",
|
|
30
|
+
".claude-plugin/plugin.json",
|
|
31
|
+
".github/workflows/release.yml",
|
|
32
|
+
".github/workflows/cicd.yml"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mahu
|