Introduction¶
The common bottleneck when writing prompts in Agents isn’t “not knowing how to use the model,” but rather the inability to articulate intent clearly. You may have a clear mental image, but it gets reduced to a single sentence in the dialogue like “help me make a poster”; or you actually want planning, analysis, or decision-making, but you are still stacking adjectives. Hand-writing structured prompts is time-consuming and prone to missing safety boundaries and output formats.
Below is an introduction to the Prompt Translator - Java Version (Majia System Java Version) on SkillHub. It provides intent recognition and domain rules within the Skill format; the same package also includes a locally runnable Java implementation, suitable for scenarios requiring REST APIs, RAG, and caching.
What is this¶
One-sentence positioning: Majia System — An AI prompt translator that turns mental images into professional prompts; it can also expand into suggestions, analysis, planning, or direct answers based on intent.
| Item | Description |
|---|---|
| Skill Coordinate | @user_5d00e27d/majia-prompt-translator-java |
| SkillHub Version | 1.0.2 |
| Source | community (Publisher user_5d00e27d) |
| Category | ai-agent |
| Tags | requires_api_key=true |
Official Page: SkillHub - Prompt Translator - Java Version
API Endpoint: https://api.skillhub.cn/user_5d00e27d/majia-prompt-translator-java
Core Features¶
The following capabilities are derived from the SKILL.md and README.md within the package, understood in two layers: Skill Platform Edition and Local Java Edition.
Skill Platform Edition (After installing into an Agent)¶
- Intent Recognition: Classifies keywords into categories such as Generation, Suggestion, Analysis, Planning, and Knowledge, subdividing into sub-categories like text-to-image, career planning, market analysis, and learning paths.
- Output Scope: Prompt generation (text-to-image/video/audio/code), feasibility suggestions, multi-dimensional analysis, process planning, and direct answers.
- Safety Red Lines: Built-in Level 1 interception and Level 2 warning rules (political sensitivity, medical/legal/investment advice, etc.), explicitly listed in the documentation.
- M1 Mode: When intent confidence is below 0.6, clarifies requirements through counter-questions and options.
- Interactive Prompts: Supports natural expressions like “Help me plan…”, “Help me analyze…”, “Help me decide…”; input “新手指南” (Beginner’s Guide) to view complete function descriptions.
The Skill Platform Edition is subject to platform limitations: it does not support the automatic RAG retrieval and full caching described in the documentation; full capabilities require the use of the Java Local Edition within the package.
Local Java Edition (Source code within the same Skill package)¶
- Code-layer Pipeline: Security pre-check → Intent Classification → RAG Retrieval → Context Compression → Model Generation.
- RAG: Retrieves from
storage/rules/, user preferences, and historical context before output (configurabletop-kandmin-scoreinapplication.yaml). - REST API:
POST /api/majia/process,GET /api/majia/search. - Multi-model API: Supports openai, claude, deepseek, zhipu, moonshot, and custom
base-url(API key required). - Tech Stack: Java 17+, Spring Boot 3.x, Maven build, can be packaged as a standalone JAR.
Installation and Activation¶
1. Install SkillHub CLI (If not already installed)¶
command -v skillhub && skillhub --version
If not installed, follow the SkillHub Installation Documentation, for example, full installation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install this Skill to the skills directory of the current Agent¶
When installing, you must use --dir to point to the current client’s skills directory; otherwise, it defaults to ./skills/ which may not be recognized.
Cursor example:
skillhub install @user_5d00e27d/majia-prompt-translator-java --dir ~/.cursor/skills/
Claude Code example:
skillhub install @user_5d00e27d/majia-prompt-translator-java --dir ~/.claude/skills/
Codex example (Choose either user-level or project-level):
skillhub install @user_5d00e27d/majia-prompt-translator-java --dir ~/.codex/skills/
# Or under project: --dir .agents/skills/
The official page also explains: You can hand the installation instructions to an AI and install @user_5d00e27d/majia-prompt-translator-java by referencing https://skillhub.cn/install/skillhub.md. Restart or refresh the Agent according to the requirements of your client after installation.
3. Local Java Edition (Optional)¶
If REST, automatic RAG, and caching are required, navigate to the Java project root directory (containing pom.xml) within the directory where the Skill is installed and deploy according to the README:
Compile and Package:
mvn clean package
Configuration: Edit src/main/resources/application.yaml to set majia.api (provider, base-url, api-key, model, enabled, etc.). It is recommended to use environment variables for keys, for example:
export API_KEY="your-api-key"
Run:
mvn spring-boot:run
# Or
java -jar target/majia-2.0.jar
The default service port is 8080 (see server.port in application.yaml).
Typical Usage¶
In Agent (Skill Mode)¶
Describe the goal in everyday spoken language; the system side performs intent recognition and domain rule loading based on SKILL.md. Examples:
- “Help me plan a three-month Java learning path”
- “Help me analyze the competitive differences in this niche market”
- “Help me decide: outsourcing or building a small team in-house”
To see the full list of capabilities, send: 新手指南 (Beginner’s Guide) in the dialogue.
Local HTTP Call¶
Process user input:
POST /api/majia/process
Content-Type: application/json
{
"input": "Recently work pressure is high, feeling down",
"sessionId": "Optional Session ID"
}
Retrieve rules:
GET /api/majia/search?keyword=工作压力
Return field examples (see README): status, sessionId, domain, confidence, response, rulesLoaded.
When configuring providers like DeepSeek, you can set in application.yaml:
majia:
api:
provider: "deepseek"
base-url: "https://api.deepseek.com/v1"
api-key: "${DEEPSEEK_API_KEY}"
model: "deepseek-chat"
enabled: true
Use Cases and Notes¶
Who it is for
- Developers who want to trigger an integrated “prompt + suggestion/analysis/planning” workflow using natural language in environments like Cursor, Claude Code, or Codex.
- Java teams that need to deploy Majia logic within an enterprise intranet or private servers and integrate with business systems via HTTP.
Limitations and Notes
- SkillHub marks
requires_api_key=true: A key must be configured when enabling custom model APIs;majia.api.enabledinapplication.yamldefaults tofalse, so you need to explicitly turn it on and fill in the configuration before calling large models locally. - Capability discrepancy between Platform and Local Editions: Automatic RAG, caching, and rule extensions are subject to the Local Java Edition; do not assume all code-layer optimizations in the README are present when only installing the Skill.
- Safety and Compliance: The documentation lists Level 2 warning scenarios for medical, legal, and investment. In production environments, combine with your own compliance strategies; do not rely solely on a single Skill’s text as the final review.
- Version Statement: The version displayed on SkillHub is 1.0.2; the README within the package self-describes the Java product line as the 2.0 feature version, and the artifact version in
pom.xmlis 1.0. Take your actual build artifact as the standard.
Data as of the SkillHub page: Rating 100000, Downloads 1454, Installs 15 (Statistics change over time).
Conclusion¶
Prompt Translator - Java Version turns the translation between “user life language” and “model-executable professional expression” into an installable Agent Skill, and provides a Java local implementation in the same repository, facilitating expansion from dialogue trials to API deployment. To install or view updates, please open the official Skill page: https://www.skillhub.cn/skills/user_5d00e27d/majia-prompt-translator-java.