Skip to content

fix: use SKILL_DIR-based script paths and harden minimax-docx setup script#36

Open
GeederX wants to merge 2 commits intoMiniMax-AI:mainfrom
GeederX:fix--skills-script-path-and-setup-script
Open

fix: use SKILL_DIR-based script paths and harden minimax-docx setup script#36
GeederX wants to merge 2 commits intoMiniMax-AI:mainfrom
GeederX:fix--skills-script-path-and-setup-script

Conversation

@GeederX
Copy link
Copy Markdown

@GeederX GeederX commented Mar 27, 2026

Summary

This PR fixes two execution reliability issues in skill docs and setup scripts:

Relative script paths in skill docs could fail when the agent working directory is not the skill folder.
The minimax-docx setup shell script had cross-platform issues (CRLF line endings and sudo assumptions).

What changed

Standardized script invocation in skill markdown files to use SKILL_DIR-based absolute paths.
Added explicit guidance to set SKILL_DIR once per session in affected skills.
Updated minimax-docx setup script to support both root and non-root environments:
run commands directly when running as root
use sudo only when needed and available
show clear error when elevated privileges are required but sudo is missing
Normalized minimax-docx setup shell script line endings to LF for bash compatibility.

Why

These changes reduce environment-dependent failures and improve reproducibility across different agent working directories, OS setups, and privilege models.

##Impact
No behavior change for users already running from the correct skill directory.
Improved robustness for agent execution in non-skill working directories.
Improved Linux/WSL setup reliability for minimax-docx.

Validation

Reviewed all updated script command examples in affected skill docs.
Verified minimax-docx setup script no longer hard-depends on sudo for root execution.
Verified LF normalization for setup shell script.

#35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant