Skip to content
Back to skills

Project Onboarding

ASecurity

Set up q-ring for a new project — create manifests, detect environments, import secrets, configure hooks and policy. Use when the user starts a new project, mentions .q-ring.json, project manifest, environment detection, or initial secret setup.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsgoshellsqlnodegitapidatabasedocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add I4cTime/q-ring --skill project-onboarding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Project Onboarding?

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

Security grade badge for Project Onboarding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/i4ctime-project-onboarding/badge)](https://www.skillsdirectory.com/skills/i4ctime-project-onboarding)

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: project-onboarding
description: Set up q-ring for a new project — create manifests, detect environments, import secrets, configure hooks and policy. Use when the user starts a new project, mentions .q-ring.json, project manifest, environment detection, or initial secret setup.
---

# Project Onboarding

## When to Use

Activate when the user:
- Starts a new project and needs secret management
- Asks about `.q-ring.json` configuration
- Wants to detect or configure environments
- Needs to set up hooks for secret change notifications
- Asks about governance policy

## Workflow

### 1. Detect environment

Call `detect_environment` to determine the current context. Sources checked in order:
1. Explicit `QRING_ENV`
2. `NODE_ENV` (mapped: `production` -> `prod`, `development` -> `dev`)
3. Git branch + `.q-ring.json` `branchMap` (supports globs like `release/*`)
4. `.q-ring.json` `defaultEnv`

### 2. Check existing state

Call `check_project` to validate against any existing `.q-ring.json` manifest. This reports:
- Required secrets that are present, missing, expired, or stale
- Overall project readiness

### 3. Create or update the manifest

Help the user create a `.q-ring.json` file with:

```json
{
  "env": "dev",
  "defaultEnv": "dev",
  "branchMap": {
    "main": "prod",
    "develop": "dev",
    "release/*": "staging"
  },
  "secrets": {
    "DATABASE_URL": { "required": true, "description": "PostgreSQL connection string" },
    "API_KEY": { "required": true, "provider": "openai", "description": "OpenAI API key" }
  },
  "policy": {
    "mcp": { "denyTools": ["exec_with_secrets"] },
    "secrets": { "maxTtlSeconds": 2592000 }
  }
}
```

### 4. Import existing secrets

If the project has `.env` files, offer to import them with `import_dotenv`. Use `skipExisting: true` to avoid overwriting.

### 5. Generate .env from manifest

Call `env_generate` to produce a `.env` file from the manifest with all declared secrets resolved from q-ring.

### 6. Set up hooks

Call `register_hook` to set up notifications when secrets change:
- Shell hook: restart dev server on DB credential change
- HTTP hook: notify a deployment webhook
- Signal hook: send SIGHUP to a running process

Use **`list_hooks`** to inspect the registry and **`remove_hook`** to delete entries by id. (CLI-only: `qring hook enable|disable|test` for lifecycle control.)

### 7. Configure policy

Guide the user through the `policy` section of `.q-ring.json`:
- **mcp**: `allowTools` / `denyTools`, `readableKeys` / `deniedKeys`, `deniedTags`
- **exec**: `allowCommands` / `denyCommands`, `maxRuntimeSeconds`, `allowNetwork`
- **secrets**: `requireApprovalForTags`, `maxTtlSeconds`

Call `get_policy_summary` to verify the policy is loaded correctly.

## Best Practices

- Always create a `.q-ring.json` manifest for team projects — it serves as documentation and validation
- Use `branchMap` to automatically detect environments from git branches
- Set `required: true` on critical secrets so `check_project` catches missing credentials

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.