mcpField
J
jk

jk

github.com/avivsinaiCloud & DevOps96390 installsUpdated 3d ago
Repository

About jk

jk is a skill for using the Jenkins CLI to inspect and change Jenkins jobs, runs, and administrative resources. It emphasizes selecting the correct controller context and handling state-changing or sensitive operations carefully.

Key features

  1. 01Guidance for Jenkins CLI reads and changes
  2. 02Rules organized by command area
  3. 03Structured JSON or YAML output guidance
  4. 04Safeguards for sensitive operations

Use cases

  1. 01Inspecting jobs, runs, logs, and artifacts
  2. 02Managing credentials, nodes, plugins, or queue items
  3. 03Checking Jenkins context before making changes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/avivsinai/jenkins-cli --skill jk

After installing, type/jkin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
commands.md
rules/
artifact.md
auth.md
context.md
cred.md
job.md
node.md
other.md
plugin.md
queue.md
run.md
test.md

Details

From the project README

Jenkins CLI

Use jk for Jenkins reads and changes. Inspect jk --help or a subcommand's help when syntax is uncertain. Check installation or version only when the command is unavailable or a requested feature has a known minimum version.

Route the task

Read only the rule that matches the request:

For exact flags and output modes, search references/commands.md for the subcommand.

Shared operating rules

  • Use the active context unless the user names another controller. Verify the target context before a state-changing or security-sensitive operation.
  • Prefer structured output (--json or --yaml) when another tool or script will consume the result.
  • Inspect a job's declared parameters before starting a parameterized run; do not guess names or values.
  • Treat job configuration, credentials, nodes, plugins, queue cancellation, and run deletion as state-changing operations. Show the resolved target and follow the user's authorization.
  • Never print, store, or echo Jenkins tokens or credential secrets. Browser SSO access tokens are not Jenkins API tokens; follow rules/auth.md.
  • Do not weaken TLS verification unless the user explicitly chooses that risk.

Common reads

jk job ls
jk job view team/app
jk run ls team/app
jk run view team/app 128
jk log team/app 128 --follow
jk artifact ls team/app 128
jk test report team/app 128
jk queue ls

Use the relevant rule file before composing a write command.

References

  • artifact — Work with run artifacts
  • auth — Authenticate with Jenkins instances
  • context — Manage Jenkins contexts
  • cred — Manage Jenkins credentials
  • job — Manage Jenkins jobs and pipelines
  • node — Inspect and manage Jenkins nodes
  • plugin — Inspect and manage Jenkins plugins
  • queue — Inspect the build queue
  • run — Interact with job runs
  • test — Inspect test results
  • other — log, search, version

Comments

Markdown supported