Logo Redmine Cli

Redmine Cli

Cộng đồng
aarondpn
redmine-cli

Use the `redmine` CLI to interact with Redmine. Activate when the user asks to create, list, update, close, or search issues, epics, or subtasks, log or view time entries, read or edit Redmine wiki pages, manage versions or memberships, query projects/users/groups, or perform any Redmine project management task. Also activate when the user says "redmine", "issue", "ticket", "time entry", pastes a Redmine URL (e.g. `.../issues/123`), or references Redmine workflows.

Tổng quan

Nhà phát hànhaarondpn
Kho mãredmine-cli
Tên kỹ năngredmine-cli
Sao
58
Bản fork
10
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được aarondpn công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Redmine Cli trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/aarondpn/redmine-cli/tree/main/skills/redmine-cli
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aarondpn/redmine-cli.git /tmp/redmine-cli
mkdir -p .claude/skills
cp -r /tmp/redmine-cli/skills/redmine-cli .claude/skills/redmine-cli
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Redmine Cli trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Redmine Cli ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Redmine Cli không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Redmine CLI

A CLI for the Redmine REST API. Use redmine <command> --help for detailed flags and examples — this skill only covers what --help cannot tell you.

Available Commands

Only these top-level commands exist. Do NOT invent subcommands that aren't listed here — run redmine <command> --help to discover subcommands.

CommandPurpose
issuesCreate, list, get, update, close, reopen, assign, comment, delete, open, browse issues; issues comment edit <journal-id> edits a comment (Redmine 5.0+; journal IDs come from issues get <id> --journals); manage watchers and relations (issues watchers …, issues relations list/get/add/remove). To search issues, use search issues
attachmentsInspect attachment metadata (attachments get <id>), download files (attachments download <id>) or thumbnails (attachments thumbnail <id> --path <file>), and edit or remove them (attachments update <id> --filename/--description/--content-type, attachments delete <id>) using the active profile's auth
queriesList Redmine saved queries; reuse them via issues list --query / --query-id
projectsList, get, create, update, archive, unarchive, delete projects; list project members. --include on list/get exposes trackers, modules, categories, custom fields, and time-entry activities (Redmine 5.0+ for archive).
timeLog, list, get, update, delete, summarize time entries
versionsCreate, list, get, update, delete project versions (milestones)
filesList and upload project-level files (release artifacts)
membershipsList, get, create, update, delete project memberships
usersList, get, create, update, delete users
my-accountGet and update your own Redmine account (works without admin)
groupsList, get, create, update, delete groups; add/remove users
rolesList and get roles, including their permissions
categoriesList, get, create, update, delete issue categories (--assignee sets the default assignee, none clears it; delete --reassign-to <category> moves the issues to another category of the same project)
newsList, get, create, update, delete project news (list without --project spans all projects; get --include attachments,comments; create looks the new ID up afterwards; news comments are read-only)
trackersList and get trackers
statusesList issue statuses
prioritiesList issue priorities and their IDs (for --priority)
activitiesList time entry activities; --project <p> shows the ones available in that project incl. overrides with their own IDs
document-categoriesList document categories
custom-fieldsList and get custom field definitions (admin-only endpoint)
searchSearch issues, wiki, news, messages, or browse results
authLogin, logout, list, switch, and check status of authentication profiles
wikiList, get, create, update, delete wiki pages
apiMake raw authenticated API requests
configShow the active configuration (server, profile, default project)
updateUpdate the CLI to the latest release

Setup

If the redmine command is not found, install it:

bash
curl -fsSL https://raw.githubusercontent.com/aarondpn/redmine-cli/main/install.sh | bash

Then run redmine auth login for interactive configuration, or without a terminal: echo "$KEY" | redmine auth login --server <url> --api-key-file -. Use redmine config to verify an existing setup.

Critical Rules

  • Use --jq (-q) to extract fields — e.g. redmine issues get 123 --jq '.status.name'. It is built in (no external jq needed) and implies -o json. Never parse output with Python, awk, or regex. If the flag is unknown, the CLI is outdated — ask the user to run redmine update.
  • Errors go to stderr with a non-zero exit code; on failure stdout is empty. Check the exit code — never merge stderr into stdout (2>&1) or discard it (2>/dev/null). Error code jq_failed means the command itself succeeded and only the filter failed — don't re-run writes (except api -i on a 4xx/5xx response, where the request failed).
  • Use --limit 0 to fetch ALL results. The default limit is 100.
  • Inspect attachments: when reading an issue, add --attachments and look at any it has before answering (see below).
  • All name-accepting flags (--project, --tracker, --status, --priority, --assignee, --category, --version, --activity, --custom-field) resolve human-readable names automatically. Don't look up IDs or option lists first — only when a name fails to resolve, check the valid values (e.g. redmine projects get <project> --include trackers,issue_categories) and ask the user if it's still unclear. Custom field names need admin rights; otherwise use the numeric ID from the resource's custom_fields in JSON output.
  • --assignee me refers to the current API user.
  • --status "*" shows all issues regardless of status (default is open).

When Something Doesn't Work: Stop and Use --help

Do NOT guess, loop, or retry with invented flags/subcommands. If a command fails or you're unsure about the correct syntax:

  1. Run redmine <command> --help (or redmine <command> <subcommand> --help) to see the actual available options, flags, and subcommands.
  2. Read the help output carefully — it is authoritative and always up to date. Trust it over your own assumptions.
  3. Never invent flags or subcommands that aren't shown in --help. If you think an option should exist but it doesn't appear in the help, it doesn't exist.
  4. Do not loop — if the same command fails twice, stop and re-read the help output. Do not keep retrying with slight variations hoping one will work.
  5. Ask the user if the help output doesn't clarify things — that's better than spiraling through failed attempts.

Permission Errors

  • Never retry with other credentials (other profiles, API keys from env vars, CI settings, or config files). Permissions come from the user's Redmine role — stop and ask the user.
  • User and group names resolve through the project's members, so they work without admin.

After Creating Resources

When you create an issue, project, user, or other resource, the CLI returns the new ID. Offer the user a clickable URL so they can open it in the browser:

  • Issues: redmine issues open <id> opens the issue directly. You can also provide the URL: <server>/issues/<id>
  • Projects: <server>/projects/<identifier>
  • Users: <server>/users/<id>
  • Time entries: <server>/time_entries/<id>/edit

Get the server URL with redmine config --jq .server. Always mention the URL or the open command after a successful create so the user can quickly navigate to the new resource.

Attachments: Always Download and Inspect Them

Issues often carry attachments (screenshots, diagrams, logs, PDFs) that contain information not present in the text. Whenever an issue has attachments, download them and inspect their contents before answering - especially images, which frequently hold the actual error, mockup, or detail the ticket is about.

  1. Discover attachment IDs: redmine issues get <id> --attachments lists each attachment's id, filename, filesize, and content_type (JSON: .attachments[]). Without --attachments the issue output doesn't show them.
  2. Download one file: redmine attachments download <att-id> -d <dir> saves it under its real filename (or --path <file> for an exact path, --path - to stream to stdout). No curl, no manual API-key handling - it reuses the active profile's auth.
  3. Download everything at once: redmine issues get <id> --download-attachments <dir> pulls every attachment of the issue into <dir> in one step. Same-named attachments are kept side by side: the newest keeps the plain name, older ones become name (attachment-<id>).ext; read the reported paths. Neither command overwrites an existing file: it fails with "already exists". Add --clobber to replace it. A filename starting with . (e.g. .bashrc) is refused with "refusing to save the hidden filename"; pass --allow-hidden only if you really want that dotfile in <dir>, or download that one attachment with --path <file> under a name you choose.
  4. Inspect metadata only (no download): redmine attachments get <att-id>.

After downloading an image, open/read it and use what it shows.

Non-Obvious Behaviors

  • --custom-field name=value works on issues create/update, projects create/update, time log/update, versions create/update, users create/update, my-account update and groups create/update. For multi-value fields repeat the same field (--custom-field Tags=a --custom-field Tags=b); --custom-field Tags= clears it. Values keep spaces and =: quote each pair and repeat the flag per field.
  • If time log fails with validation_failed, the server may require time entry custom fields or an activity: pass them with --custom-field / --activity.
  • redmine issues get <id> --journals includes comments/history.
  • redmine issues get <id> --include allowed_statuses -o json lists the statuses the current user may transition to.
  • redmine issues update only sends flags you explicitly pass — omitted flags are not changed.
  • If --project is omitted, the configured default project is used (set via redmine auth login).
  • Projects can accumulate hundreds of versions, most of them closed or locked. When you need a version for a new issue, time entry, or similar workflow, always start from redmine versions list --open so the shortlist stays small and you don't pick a version that can no longer accept work.
  • Any date flag (--due-date, --date, --from, --to) accepts the literal keyword today as a shortcut for the current date.

Câu hỏi thường gặp

Kỹ năng AI Redmine Cli làm được gì?

Use the `redmine` CLI to interact with Redmine. Activate when the user asks to create, list, update, close, or search issues, epics, or subtasks, log or view time entries, read or edit Redmine wiki pages, manage versions or memberships, query projects/users/groups, or perform any Redmine project management task. Also activate when the user says "redmine", "issue", "ticket", "time entry", pastes a Redmine URL (e.g. `.../issues/123`), or references Redmine workflows.

Vì sao nên dùng Redmine Cli trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Redmine Cli là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Redmine Cli trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/aarondpn/redmine-cli/tree/main/skills/redmine-cli. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Redmine Cli?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Redmine Cli với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Redmine Cli với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Redmine Cli có miễn phí không?

Có. Kỹ năng này được aarondpn phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇