Skip to content

slonikmak/week-skill

Repository files navigation

WEEEK API Toolkit

A powerful toolkit for working with the WEEEK project management platform. Includes a convenient CLI utility and a Node.js library for integration.

🚀 Installation

Option 1: Install directly from GitHub (for CLI usage)

To make the weeek command available globally on your system:

npm install -g github:slonikmak/week-skill

Option 2: For Development

  1. Clone the repository:
    git clone https://github.com/slonikmak/week-skill.git
    cd week-skill
  2. Install dependencies and link:
    npm install
    npm link

Now the weeek command is available in your terminal.

⚙️ Configuration

The tool requires an API Key to function.

  1. Generate a token in your WEEEK account settings.
  2. Create a .env file in the project root (or wherever you run the script) or export an environment variable:
WEEEK_API_KEY=your_token_here

🖥️ CLI Usage

After installation, use the weeek command.

🧠 Smart Actions (High-Level)

📋 View Board

Finds a board by name (fuzzy match) and displays columns with tasks.

weeek board "Release 2.0"

🆕 Create Task

Creates a task by automatically resolving Board ID, Column ID, and Assignee ID.

weeek create "Fix login bug" --board "Release" --col "Backlog" --prio 2 --assignee "Ivan"

👁️ Show Task Details

Shows task details: description (HTML stripped), priority, status, and subtasks.

weeek show 893

🚚 Move Task

Moves a task to another column (by column name).

weeek move 893 "Done"

👥 Users & Assignment

Work with your team using names instead of UUIDs.

# List all workspace users
weeek users

# Assign a user (search by name/email)
weeek assign 893 "Maxim"

⏱️ Timer

Manage time tracking.

weeek timer start 893
weeek timer stop 893

🔧 Low-Level Commands (API Explorer)

Direct access to the API for debugging or specific queries.

# List all available API tags
weeek tags

# List endpoints for a tag
weeek endpoints Task

# Raw request (GET)
weeek run GET tm/projects

# Raw request with parameters
weeek run GET tm/tasks -p "projectId=123"

📦 Using as a Library

You can use WeeekClient in your own Node.js scripts.

  1. Install the package in your project:

    npm install github:slonikmak/week-skill
  2. Import and use:

import { WeeekClient } from 'week-skill';

const client = new WeeekClient('your_token_here');

async function main() {
    // Get all projects
    const projects = await client.getProjects();
    console.log(projects);

    // Find board by name
    const boards = await client.findBoard('Release');
    
    // Create a task
    const newTask = await client.createTask({
        title: 'New task from script',
        boardId: boards[0].id,
        priority: 1
    });
}

main();

Requirements

  • Node.js >= 16
  • weeek_spec.json (OpenAPI specification) must be present in the package (included in the repo).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors