mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
Scan skills for prompt injection, data exfiltration, credential access, destructive commands, obfuscation, and suspicious URLs. CRITICAL findings block installation by default; HIGH/MEDIUM shown as warnings. - Scan engine: internal/audit with regex-based pattern matching - CLI: `skillshare audit [name]` with per-skill progress and summary - Install hooks: auto-scan after copy, block on CRITICAL unless --force - Web UI: AuditPage with run/rescan, InstallForm shows ConfirmDialog for audit blocks (force-retry) and warning details - ConfirmDialog: add `wide` prop, hide cancel when cancelText is empty - Reduced false positives: rm -rf only flags root/glob, skip localhost URLs, exclude `fetch` as English word, hidden-unicode downgraded to HIGH - README: add audit section, update screenshots, unify image sizes, add audit to Why/Comparison/Daily Commands - Docs: audit command page, install security scanning section, FAQ, common errors, daily workflow, sidebar, landing page, intro - Blog specs: add audit sections to Dev.to and Medium drafts
178 lines
4.0 KiB
Markdown
178 lines
4.0 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# Daily Workflow
|
|
|
|
The edit → sync → push/pull cycle for everyday skill management.
|
|
|
|
## Overview
|
|
|
|
```
|
|
┌─────────────────────────────────────────────────────────────┐
|
|
│ DAILY WORKFLOW │
|
|
│ │
|
|
│ EDIT ──► SYNC ──► PUSH ───────────────► Remote │
|
|
│ │ │ │ │
|
|
│ │ │ │ │
|
|
│ ▼ ▼ ▼ │
|
|
│ Source Targets Pull │
|
|
│ │ │ │
|
|
│ │ │ │
|
|
│ ◄────────────────────────────────────────┘ │
|
|
│ │
|
|
└─────────────────────────────────────────────────────────────┘
|
|
```
|
|
|
|
---
|
|
|
|
## Editing Skills
|
|
|
|
### Option 1: Edit in source (recommended)
|
|
|
|
```bash
|
|
$EDITOR ~/.config/skillshare/skills/my-skill/SKILL.md
|
|
```
|
|
|
|
Changes are immediately visible in all targets (via symlinks).
|
|
|
|
### Option 2: Edit in target
|
|
|
|
```bash
|
|
$EDITOR ~/.claude/skills/my-skill/SKILL.md
|
|
```
|
|
|
|
Because targets are symlinked, this edits the source file directly.
|
|
|
|
---
|
|
|
|
## Syncing
|
|
|
|
After editing, sync is **usually not needed** because of symlinks. However, run sync when:
|
|
|
|
- You've installed or removed skills
|
|
- You've changed sync mode
|
|
- You've added or removed targets
|
|
- You see "out of sync" in status
|
|
|
|
```bash
|
|
skillshare sync
|
|
```
|
|
|
|
:::tip Why is sync a separate step?
|
|
Sync is intentionally decoupled from install/update/uninstall. This lets you batch multiple changes (e.g., install 3 skills → sync once), preview with `--dry-run` before propagating, and keep full control of when targets update. See [Source & Targets: Why Sync is a Separate Step](/docs/concepts/source-and-targets#why-sync-is-a-separate-step) for details.
|
|
:::
|
|
|
|
### Preview first
|
|
|
|
```bash
|
|
skillshare sync --dry-run
|
|
```
|
|
|
|
---
|
|
|
|
## Cross-Machine Sync
|
|
|
|
If you use git remote:
|
|
|
|
### Push changes (from this machine)
|
|
|
|
```bash
|
|
skillshare push -m "Add new skill"
|
|
```
|
|
|
|
This runs:
|
|
1. `git add .`
|
|
2. `git commit -m "Add new skill"`
|
|
3. `git push`
|
|
|
|
### Pull changes (to this machine)
|
|
|
|
```bash
|
|
skillshare pull
|
|
```
|
|
|
|
This runs:
|
|
1. `git pull`
|
|
2. `skillshare sync`
|
|
|
|
---
|
|
|
|
## Common Daily Tasks
|
|
|
|
### Create a new skill
|
|
|
|
```bash
|
|
skillshare new code-review
|
|
$EDITOR ~/.config/skillshare/skills/code-review/SKILL.md
|
|
skillshare sync
|
|
```
|
|
|
|
### Update a tracked repo
|
|
|
|
```bash
|
|
skillshare update _team-skills
|
|
skillshare sync
|
|
```
|
|
|
|
### Update all tracked repos
|
|
|
|
```bash
|
|
skillshare update --all
|
|
skillshare sync
|
|
```
|
|
|
|
### Check status
|
|
|
|
```bash
|
|
skillshare status
|
|
```
|
|
|
|
Shows:
|
|
- Source directory status
|
|
- Git status (commits ahead/behind)
|
|
- Target sync status
|
|
|
|
---
|
|
|
|
## Tips
|
|
|
|
### Make it automatic
|
|
|
|
Add to your shell startup:
|
|
```bash
|
|
# ~/.bashrc or ~/.zshrc
|
|
alias ss="skillshare"
|
|
alias sss="skillshare sync"
|
|
alias ssp="skillshare push"
|
|
alias ssl="skillshare pull"
|
|
```
|
|
|
|
### Check before important work
|
|
|
|
```bash
|
|
# Start of day
|
|
skillshare pull
|
|
skillshare status
|
|
|
|
# Before committing
|
|
skillshare diff
|
|
```
|
|
|
|
### Keep things clean
|
|
|
|
```bash
|
|
# Weekly maintenance
|
|
skillshare audit # Scan for security threats
|
|
skillshare backup --cleanup # Remove old backups
|
|
skillshare doctor # Check for issues
|
|
```
|
|
|
|
---
|
|
|
|
## Related
|
|
|
|
- [Cross-Machine Sync](/docs/guides/cross-machine-sync) — Full setup guide
|
|
- [Commands: sync](/docs/commands/sync) — Sync command details
|
|
- [Commands: status](/docs/commands/status) — Status command
|