Bc assignment review submit task revision

From breatheco-de/apiv2 · View interactive version

Bc assignment review submit task revision is an AI agent skill from the GitHub repository breatheco-de/apiv2. Use when staff or teachers review **PROJECT** syllabus tasks via the API (discover queue, load asset `config` from the registry, submit `PUT` with `revision_status` and feedback). Do NOT use for `EXERCISE`, `LESSON`, or `QUIZ` tasks, for capstone `FinalProject` flows, for implementing assignment cod

How to use this skill

Skill file

Skill: Review PROJECT syllabus task and submit revision

When to Use

Concepts

Workflow

  1. Discover (skip if the user already has task_id and user_id): Call GET /v1/assignment/academy/task or GET /v1/assignment/academy/cohort/{cohort_id}/task with Authorization, Academy header, task_type=PROJECT, task_status=DONE, revision_status=PENDING, sort=delivered_at, limit, offset. Process earliest delivered_at first. Prefer academy/cohort routes for pagination and FIFO; GET /v1/assignment/task/ uses fixed created_at sort and is not FIFO by delivered_at.
  2. Load task detail: GET /v1/assignment/user/{user_id}/task/{task_id} with Authorization. If task_type is not PROJECT, stop this skill.
  3. Load asset contract: GET /v1/registry/asset/{associated_slug}. Read id, config, graded, asset_type, repo/readme URLs, and optional solution references (solution_url, solution_video_url, with_solutions). Use reference/learnpack-configuration.md when interpreting config keys.
  4. Load optional AI context: GET /v1/registry/asset/{asset_id}/context. If status=DONE, use ai_context as additional context for the reviewer. If status=PROCESSING/PENDING, continue review using readme_url + config (retry later if needed).
  5. Review the student delivery (github_url, live_url, and/or other submitted URLs/files) against project expectations from config and asset delivery constraints (delivery_instructions, delivery_formats, delivery_regex_url when present). Use ai_context only as support, not as source of truth.
  6. Draft teacher feedback for description — max 450 characters (API limit on Task.description).
  7. Submit: PUT /v1/assignment/task/{task_id} with revision_status (APPROVED, REJECTED, PENDING, or IGNORED) and description as needed. Same endpoint for ignoring — see Ignoring projects under Edge Cases and Endpoints.

Endpoints

Send Accept-Language (e.g. en, es) if the client should receive translated validation or error messages where the API supports it.

1. List tasks (academy) — paginated

Example request:

GET /v1/assignment/academy/task?task_type=PROJECT&task_status=DONE&revision_status=PENDING&sort=delivered_at&limit=20&offset=0
Authorization: Token 75126f11546bd9caabb1165ad5ce2c00683d8932
Academy: 1

Example response (abbreviated results[0]):

{
  "count": 3,
  "first": "https://breathecode.test/v1/assignment/academy/task?limit=20&offset=0",
  "next": null,
  "previous": null,
  "last": "https://breathecode.test/v1/assignment/academy/task?limit=20&offset=0",
  "results": [
    {
      "id": 8842,
      "title": "Build a landing page",
      "task_status": "DONE",
      "associated_slug": "react-landing-page",
      "description": "",
      "revision_status": "PENDING",
      "github_url": "https://github.com/student-42/react-landing-page",
      "live_url": "https://student-42.github.io/react-landing-page",
      "task_type": "PROJECT",
      "user": { "id": 42, "first_name": "Ada", "last_name": "Lovelace" },
      "opened_at": null,
      "read_at": null,
      "reviewed_at": null,
      "delivered_at": "2026-04-28T14:22:11Z",
      "cohort": { "id": 9, "name": "Web PT 99", "slug": "web-pt-99" },
      "assignment_telemetry": null,
      "created_at": "2026-02-01T10:00:00Z",
      "updated_at": "2026-04-28T14:22:12Z"
    }
  ]
}

2. List tasks (cohort) — paginated

3. Teacher task list — not paginated

4. Single task

Example response:

{
  "id": 8842,
  "title": "Build a landing page",
  "task_status": "DONE",
  "associated_slug": "react-landing-page",
  "description": "",
  "revision_status": "PENDING",
  "github_url": "https://github.com/student-42/react-landing-page",
  "live_url": "https://student-42.github.io/react-landing-page",
  "task_type": "PROJECT",
  "user": { "id": 42, "first_name": "Ada", "last_name": "Lovelace" },
  "opened_at": null,
  "read_at": null,
  "reviewed_at": null,
  "delivered_at": "2026-04-28T14:22:11Z",
  "cohort": { "id": 9, "name": "Web PT 99", "slug": "web-pt-99" },
  "assignment_telemetry": null,
  "created_at": "2026-02-01T10:00:00Z",
  "updated_at": "2026-04-28T14:22:12Z"
}

5. Registry asset (project brief / `config`)

Example response (subset):

{
  "slug": "react-landing-page",
  "title": "React landing page",
  "asset_type": "PROJECT",
  "graded": true,
  "status": "PUBLISHED",
  "readme_url": "https://github.com/breatheco-de/react-landing-page/blob/main/README.md",
  "url": "https://github.com/breatheco-de/react-landing-page",
  "solution_url": "https://github.com/breatheco-de/react-landing-page-solution",
  "solution_video_url": "https://www.youtube.com/watch?v=example",
  "with_solutions": true,
  "config": {
    "slug": "react-landing-page",
    "title": "React landing page",
    "projectType": "project",
    "grading": "incremental",
    "localhostOnly": false,
    "gitpod": true,
    "template_url": "self",
    "technologies": ["react", "javascript"]
  }
}

6. Asset context (optional, LLM-oriented)

Example response (ready):

{
  "id": 1203,
  "asset": { "id": 778, "slug": "react-landing-page", "title": "React landing page" },
  "ai_context": "This PROJECT called 'React landing page' is written in English. ...",
  "status": "DONE",
  "status_text": null
}

7. Submit review (approve)

Example request:

{
  "revision_status": "APPROVED",
  "description": "Clean structure and README. Approved."
}

Example response (subset):

{
  "id": 8842,
  "title": "Build a landing page",
  "task_status": "DONE",
  "associated_slug": "react-landing-page",
  "description": "Clean structure and README. Approved.",
  "revision_status": "APPROVED",
  "github_url": "https://github.com/student-42/react-landing-page",
  "live_url": "https://student-42.github.io/react-landing-page",
  "task_type": "PROJECT",
  "reviewed_at": "2026-05-04T09:15:00Z",
  "delivered_at": "2026-04-28T14:22:11Z"
}

8. Submit review (reject)

Example request:

{
  "revision_status": "REJECTED",
  "description": "Missing responsive navbar per README. Fix and resubmit."
}

9. Ignore project (no separate ignore endpoint)

There is no …/ignore route. Use the same PUT /v1/assignment/task/{task_id} with revision_status: "IGNORED".

Example request:

{
  "revision_status": "IGNORED",
  "description": "Optional note: cohort policy auto-skips manual review for this delivery."
}

Example response (subset):

{
  "id": 8842,
  "revision_status": "IGNORED",
  "description": "Optional note: cohort policy auto-skips manual review for this delivery.",
  "reviewed_at": "2026-05-04T09:20:00Z",
  "task_status": "DONE",
  "task_type": "PROJECT"
}

Edge Cases

Checklist

  1. [ ] Confirmed task_type is PROJECT for the task being reviewed.
  2. [ ] Discovered queue with task_type=PROJECT, task_status=DONE, revision_status=PENDING, sort=delivered_at (when listing), or skipped discovery when task_id is known.
  3. [ ] Loaded GET /v1/registry/asset/{associated_slug} and used config / reference/learnpack-configuration.md for expectations.
  4. [ ] Optionally loaded GET /v1/registry/asset/{asset_id}/context and used ai_context only as supporting context.
  5. [ ] Feedback in description is ≤ 450 characters before PUT.
  6. [ ] Called PUT /v1/assignment/task/{task_id} with correct revision_status (including IGNORED only via this PUT, not a separate URL).
  7. [ ] Did not override IGNORED from auto-ignore without explicit user instruction.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.