Skip to content
Back to skills

Asana Sweep Setup

ASecurity

Set up asana-sweep in the current repository by deriving its GitLab and Asana configuration, confirming task-based scope rules, writing asana-sweep.config.json, and validating it with a dry run. Use when the user asks to set up, configure, or initialize asana-sweep.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 22, 2026
ai-agentsgitapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add YCyrus/asana-sweep --skill asana-sweep-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Asana Sweep Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Asana Sweep Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ycyrus-asana-sweep-setup/badge)](https://www.skillsdirectory.com/skills/ycyrus-asana-sweep-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: asana-sweep-setup
description: Set up asana-sweep in the current repository by deriving its GitLab and Asana configuration, confirming task-based scope rules, writing asana-sweep.config.json, and validating it with a dry run. Use when the user asks to set up, configure, or initialize asana-sweep.
---

# Set up asana-sweep

Create a safe first draft of `asana-sweep.config.json` in the current repository. Derive everything available from the repository and Asana before asking the user. The setup is complete when the user has confirmed the inferred scope, the config is written, and an asana-sweep dry run has been presented.

## 1. Inspect without changing anything

- Read `asana-sweep.config.example.json` from the installed plugin and preserve its complete schema, including `window_days` and `harness`.
- Check whether `asana-sweep.config.json` already exists. Read it now, but do not overwrite it during discovery.
- Run `git remote -v`. Prefer `origin`; if there is no origin and exactly one distinct remote repository exists, use it. Parse the repository path from either form, remove a trailing `.git`, and preserve nested groups:
  - SSH/scp: `git@host:group/repo.git` -> `group/repo`
  - SSH URL: `ssh://git@host/group/repo.git` -> `group/repo`
  - HTTPS: `https://host/group/repo.git` -> `group/repo`
- Run `git symbolic-ref --short refs/remotes/origin/HEAD` and remove the `origin/` prefix for `gitlab.base_branch`. Ask the user only if it fails or points at a different remote than the chosen repository.
- Call `asana_list_workspaces`. Use the only workspace automatically; when several are returned, show their names and gids and ask the user to choose.
- Test the selected workspace with `asana_search_tasks`. Set `paid_workspace` to `false` only when the response is `payment_required`; otherwise set it to `true`.
- Use these path defaults unless the repository already has a clear, established plans/documentation directory; in that case keep all three files together under that convention:
  - `state_file`: `docs/plans/.asana-sweep-state.json`
  - `summary_file`: `docs/plans/.asana-sweep-last-summary.md`
  - `plans_dir`: `docs/plans`

If a remote, workspace, or path convention remains ambiguous after inspection, explain the evidence and ask only for the unresolved choice.

## 2. Draft scope from real tasks

Call `asana_get_my_tasks` for the selected workspace with incomplete tasks and these fields: `name,completed,projects.gid,projects.name,parent.name,parent.projects.gid,parent.projects.name`. Exclude completed tasks.

Use task titles plus the task's and parent's project memberships to draft:

- `asana_projects`: projects that appear to correspond to work in this repository.
- `repo_scope.this_repo_hints`: repository, product, and module terms that indicate work deliverable in this repository.
- `repo_scope.other_systems`: named systems or domains that clearly belong elsewhere.
- `skip_rules`: recurring non-code, administrative, credential, environment, or research-only task types.

Treat all four inferred values as a **draft**. Show the evidence at a useful summary level, explicitly label the values as draft, and ask the user to confirm or edit them. Do not place task notes, tokens, credentials, or unrelated personal data in the config.

## 3. Confirm and write

Build the complete candidate JSON using the example schema and the confirmed draft. Validate that it parses as JSON before writing.

- When no config exists, show the candidate and ask for confirmation before creating it.
- When a config exists, show a field-level diff between the current file and candidate and ask for explicit approval before overwriting it. Preserve the existing file if approval is not given.
- Write only `asana-sweep.config.json` in the current repository root. Never write a PAT, token, API key, or other secret to it.
- Remind the user to gitignore the state and summary paths (they are run artefacts, not source). Offer to append them to `.gitignore` and do it only if they agree.

## 4. Validate with a dry run

Immediately invoke the `asana-sweep` skill with `--dry-run` using the new config. Dry-run must stop before issue creation and must not update the state file. Present the resulting AUTO / ASK / SKIP / not-in-window classifications, then suggest specific draft-field adjustments if the results reveal false positives or false negatives.

If required Asana or GitLab read tools are unavailable, keep the confirmed config in place and report the exact missing capability and the dry-run command the user can run after enabling it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.