# Setup

> This skill should be used when the user asks to "setup", "configure", "配置", "设置", "初始化", "set this up", or when first installing the skill package. It configures user preferences, checks dependencies, verifies opencli connectivity, and confirms the package is ready to use.

- **Type:** Skill
- **Install:** `agentstack add skill-giantclam-auto-viral-article-writer-setup`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [GiantClam](https://agentstack.voostack.com/s/giantclam)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [GiantClam](https://github.com/GiantClam)
- **Source:** https://github.com/GiantClam/auto-viral-article-writer/tree/master/skills/setup

## Install

```sh
agentstack add skill-giantclam-auto-viral-article-writer-setup
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Setup

Use this skill for first-time package setup and later preference updates.

## Use This For

- first install of the package
- updating `hot_topics` preferences
- checking whether `opencli` is connected
- verifying the package can run end-to-end

## Do Not Use This For

- daily topic collection after setup is already complete
- article drafting
- image generation requests

## Inputs

- preferred hot topic directions
- preferred platforms
- optional request to re-run verification

## Outputs

- updated `config/user_preferences.json`
- confirmation of dependency and connectivity state
- clear next-step guidance

## Workflow

1. Check whether `config/user_preferences.json` already exists.
2. Ask the user to confirm or update preferred hot topics.
3. Save the preferences file if needed.
4. Verify `opencli` using `python tools/opencli_fetcher.py --check` or `opencli doctor`.
5. Verify config with `python tools/config_loader.py`.
6. Summarize readiness and recommend the next skill.

## Default Preference Shape

```json
{
  "hot_topics": ["AI工具", "SaaS", "AI出海"],
  "default_platforms": ["xiaohongshu", "zhihu", "bilibili", "twitter"],
  "output_dir": "output"
}
```

## Fallback Guidance

- If `user_preferences.json` is missing, create it.
- If `opencli` is unavailable, continue with RSS-capable flows and explain which social sources are unavailable.
- If image provider keys are missing, explain that writing and pattern lookup can still proceed, but image-producing skills will fail.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [GiantClam](https://github.com/GiantClam)
- **Source:** [GiantClam/auto-viral-article-writer](https://github.com/GiantClam/auto-viral-article-writer)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-giantclam-auto-viral-article-writer-setup
- Seller: https://agentstack.voostack.com/s/giantclam
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
