SHINE-Code-System

SHINE Code System automates tool selection for Claude Code, enhancing efficiency for digital agencies.

<div align="center">

🧠 SHINE Code System: agency-grade auto-pilot configuration for Claude Code

diShine Logo

SHINE | Strategize · Handle · Implement · Navigate · Evaluate

Website LinkedIn Location License: MIT

<p align="center"> <img src="docs/SHINE Workflow and Architecture Overview.webp" alt="SHINE Code System overview" width="100%"> </p>

SHINE Code System turns Claude Code into an orchestrator. Instead of telling Claude which tool to use every time, a single global CLAUDE.md with 29 decision rules pattern-matches every prompt to the right tool chain — automatically. Add a persistent MEMORY.md layer that survives across conversations, a 60+ MCP capability map with free-first tiered fallback, and you have an auto-pilot calibrated for consulting, MarTech, and digital-agency work.

Built by diShine Digital Agency.

More details on the official website.

</div> <p align="center"> <img src="docs/shine_code_system_v2_04_extension_connector_map.webp" alt="SHINE Code System connector map" width="100%"> </p>

💼 Business value map

SHINE business value map

<sub>👀 Diagram: docs/business-value.svg — three bands: ① Business input (brief, inbox thread, lead list, bug ticket, campaign idea, GDPR question) → ② SHINE engine (29 decision rules · typed memory · 146 skills · 45 agents · 7 hooks · 60+ MCP servers · always-on guardrails) → ③ Business deliverables (proposal, email draft, lead CSV, fix + 5-section report, campaign brief, GDPR verdict). ROI band: 3–8× faster drafting, on-brand every time, GDPR-native, institutional memory that survives staff churn.</sub>


📑 Table of contents


🚀 Why SHINE

Most Claude Code setups treat the AI as an assistant that needs manual tool selection on every turn. SHINE flips the model:

  • One brain — a global CLAUDE.md with 29 decision rules that map intenttool chain automatically
  • One memory — a typed MEMORY.md index shared across every project, so context isn't rebuilt from scratch each session
  • 60+ MCP capability map — 20 categories of free/open-source tools (search, analytics, vector memory, sandbox, charts, security, etc.) with tiered fallback: free first, freemium after asking, paid only with explicit approval
  • Agency-calibrated — built for consultants, PMs, and digital agencies: GDPR/cookie audits, SEO/MarTech checks, client-comms in Italian/French/English, CLIENT | Topic email format, factual-RAG discipline
  • Auto-updatingintegration-sync.js rewrites the relevant section of CLAUDE.md every time a plugin is installed or removed
  • Reversible — atomic backup on install, one-command uninstall, --dry-run everywhere

The dependency chain

settings.json  →  Global Memory  →  CLAUDE.md  →  Hooks
 (plugins,        (typed index,     (29 rules,     (lifecycle
  MCP servers,      shared           orchestrates    automation
  env vars,         across           every tool      & guards)
  telemetry)        projects)        + tiered
                                     fallback)

📊 At a glance

╔══════════════════════════════════════════════════════════════════╗
║           ✨  SHINE Claude Code Framework  v2.0.0  ✨           ║
╠══════════════════════════════════════════════════════════════════╣
║  45 agents  ·  149 skills ·  11 hooks  ·  29 decision rules     ║
║  16 plugins ·  60+ MCP map ·  6 docs   ·  20 capability tiers   ║
╚══════════════════════════════════════════════════════════════════╝
MetricCountBreakdown
🤖 Agents4521 engineering + 18 agency + 6 MCP-capability (web-researcher, data-engineer, vulnerability-scanner, chart-builder, sandbox-runner, infra-ops). Plus 7 on-demand partial files (agent bodies split for token efficiency).
🧩 Skills14942 core · 17 early-agency · 10 marketing · 10 sales · 11 consulting · 10 tech · 8 ops · 7 data · 4 brand · 30 misc
🪝 Hooks113 SessionStart · 2 UserPromptSubmit · 2 PreToolUse · 1 PostToolUse · 1 PreCompact · 1 Stop · 1 SessionEnd
📜 Decision rules2915 dev-centric + 5 agency (§16–§20) + 1 tiered fallback (§21) + 8 MCP-capability (§22–§29)
🔌 Plugins1611 official · 2 LSP · 3 third-party
🌐 MCP capability map60+20 categories · Tier 1 free/local · Tier 2 freemium · Tier 3 paid
📚 Docs6ARCHITECTURE · HOW-IT-WORKS · CUSTOMIZATION · PLUGINS · ADDING-INTEGRATIONS · AGENCY-WORKFLOWS
🛡️ GuardrailsAll-sessionRAG discipline · never-auto-send · PII-aware · atomic backup · tiered fallback
🌍 Languages4🇮🇹 IT · 🇫🇷 FR · 🇬🇧 EN · 🇪🇸 ES

Skill distribution

core SHINE         ████████████████████████████████████                      42  (28%)
early agency       ██████████████                                            17  (11%)
marketing/content  █████████                                                 10   (7%)
sales/outreach     █████████                                                 10   (7%)
consulting/strategy██████████                                                11   (7%)
tech/dev           █████████                                                 10   (7%)
ops/PM             ███████                                                    8   (5%)
data/analytics     ██████                                                     7   (5%)
brand              ████                                                       4   (3%)
misc / cross-cut   ██████████████████████████                                30  (20%)
                                                                           ────
                                                                            149

<sub>Source of truth: run node shine/bin/shine-tools.cjs index-skills — writes skills/INDEX.md with the current breakdown.</sub>

Agent distribution

engineering            █████████████████████                                 21  (47%)
client & account       ████                                                   4   (9%)
sales & growth         █████                                                  5  (11%)
content & brand        ███                                                    3   (7%)
MarTech & data         ████                                                   4   (9%)
compliance & ops       ██                                                     2   (4%)
MCP-capability         ██████                                                 6  (13%)
                                                                             ──
                                                                             45

<sub>Plus 7 on-demand partial files (shine-planner-*, shine-debugger-*, shine-doc-writer-*) referenced from their parent agents via @~/.claude/agents/<file>.md — loaded only when needed, cutting mega-agent token costs by 17–68%.</sub>


🔧 How it works

SHINE architecture diagram

<sub>👀 Diagram: docs/architecture.svg — dependency chain from settings.json → Global Memory → CLAUDE.md (29 rules, with §16–§20 agency pills + §21 tiered fallback + §22–§29 MCP-capability rules highlighted) → Execution layer (146 skills · 45 agents · 16 plugins · 60+ MCP servers) → 7 hooks (SessionStart / PreToolUse / PostToolUse / PreCompact). Always-on guardrails rail at the bottom: RAG discipline, never-auto-send, PII-aware, tiered fallback, atomic backup, 🇮🇹🇫🇷🇬🇧🇪🇸 tone, reversible install.</sub>

Full runtime walkthrough in docs/HOW-IT-WORKS.md.

Example flow — "draft a reply to Jamie about ACME link building":

  1. Rule #17 fires (client ACME + communication verb).
  2. memory/client-acme.md + memory/style-email-it.md load.
  3. Gmail MCP fetches the last thread.
  4. /draft-email skill produces subject ACME | <topic>, warm IT opening, bullet body, correct CC list.
  5. Output is a draft — never auto-sent (CLAUDE.md §16 + skill <guardrails>).

Example flow — "there's a bug in the checkout flow":

  1. Rule #3 fires (debug intent).
  2. shine-debugger agent delegated via Task tool — own context window.
  3. Serena + Grep locate the relevant symbols; Read inspects them.
  4. Agent returns a 5-section report: Summary / Details / Sources / Open questions / Next step.
  5. User approves → shine-executor implements the fix.

No manual tool selection. The rules handle orchestration.


🚦 How to use: journey map

SHINE how-to-use journey map

<sub>👀 Diagram: docs/how-to-use.svg — four canonical end-to-end journeys read top-to-bottom along a shared timeline (① your prompt → ② rule fires → ③ memory + MCP loaded → ④ skill + agent → ⑤ artifact → ⑥ you approve). Columns: Proposal (CONTOSO · Rule §19 · MoSCoW + MD + 15%), Client Email (ACME · Rule §17 · warm IT draft in Gmail), Debug (Rule §3 · debugger agent returns a 5-section report before any fix), Lead Enrichment (Rule §20 · only verified data, "inferred — unverified" label where needed). Always-on guardrails band on top: RAG, dry-run, GDPR, tone, cite-only-fetched, stop-on-tool-failure, PreToolUse secret block.</sub>


📦 What's Included

ComponentCountDescription
CLAUDE.md1Global instructions — 29 decision rules (15 dev + 5 agency §16–§20 + 1 tiered fallback §21 + 8 MCP-capability §22–§29) + 60+ MCP capability map
MEMORY.md1 typed indexTyped persistent memory (preference / client / project / style / external)
SHINE Agents45 (+7 partials)21 core engineering (planner, executor, verifier, debugger, auditors, researchers) + 18 agency (client-researcher, proposal-writer, gdpr-analyst, seo-strategist, martech-architect, copywriter, …) + 6 MCP-capability (web-researcher, data-engineer, vulnerability-scanner, chart-builder, sandbox-runner, infra-ops). 7 on-demand partial files extracted from the mega-agents (planner, debugger, doc-writer) for token efficiency.
SHINE Skills14942 core SHINE + 17 early agency + 10 marketing · 10 sales · 11 consulting · 10 tech · 8 ops · 7 data · 4 brand · 30 misc/cross-cut
Hooks11SessionStart (3) · UserPromptSubmit (2) · PreToolUse (2) · PostToolUse (1) · PreCompact (1) · Stop (1) · SessionEnd (1)
Plugins & MCP16 plugins + 4 marketplacesserena, context7, playwright, superpowers, code-simplifier, ralph-loop, typescript-lsp, pyright-lsp, pyright, basedpyright, supabase, agent-sdk-dev, claude-code-setup, ui-ux-pro-max, claude-mem, arize-skills
Statusline2 variants.js (cross-platform, no deps) + .sh (pure bash, no jq required) — shows model · dir · branch · active-client · context size
Total slash commands149All skills are user-invocable via /<skill-name>

⚡ Quick install

git clone https://github.com/diShine-digital-agency/SHINE-Code-System.git
cd SHINE-Code-System

# Preview what will happen (no changes made):
./install.sh --dry-run

# Install (interactive — prompts for context profile):
./install.sh

# Or skip the picker:
./install.sh --profile=minimal

What the installer does (in order):

  1. Pre-flight checks (claude, node, git)
  2. Atomic backup of existing ~/.claude/~/.claude-backup-<timestamp>/
  3. Copies CLAUDE.md (slim core) + shine/references/ (on-demand reference files)
  4. Copies agents, skills, hooks, statusline, profile CLI (shine)
  5. Seeds MEMORY.md template (never overwrites an existing one)
  6. Creates settings.json from template (never overwrites an existing one)
  7. Asks which context profile to install (or uses --profile)
  8. Installs only the plugins that profile requires via claude plugins install (idempotent)
  9. Activates the profile → rewrites enabledPlugins + disabledMcpjsonServers in settings.json
  10. Prints next-steps checklist

Context profiles

SHINE 1.1 installs a lean default (minimal, ~15k context) and lets you lazy-load plugin bundles on demand. Profiles live in ~/.claude/shine/profiles/*.json.

ProfileContextPlugins includedGood for
minimal~15kWriting, research, agency comms. Default.
writing~20kcontext7Long-form drafting when you occasionally need library docs
outbound~35kcontext7 + prospecting MCPs (Apollo, Gmail, CommonRoom)Lead enrichment, cold email, CRM ops
seo~40kcontext7 + AhrefsSEO audits, GA4/GTM, content strategy
dev~70kserena, pyright, basedpyright, typescript-lsp, playwright, supabase, code-simplifier, superpowersFull engineering stack
full~95kall 16 plugins (previous default)Only when you have headroom

Switch any time:

shine list                # list profiles + token estimates
shine current             # which plugins/MCPs are active
shine activate dev        # swap — restart Claude Code for changes
shine show dev            # print the profile JSON

(If you didn't add ~/.claude/shine/bin to your PATH, call node ~/.claude/shine/bin/shine-profile.cjs <cmd> directly.)

Install flags

FlagEffect
--profile=<name>Pre-select a profile (minimal|writing|outbound|seo|dev|full). Skips the picker.
--dry-runShow every action, change nothing
--no-pluginsSkip the claude plugins install loop (air-gapped / offline)
--no-backupSkip the ~/.claude-backup-* step (dangerous — fresh installs only)
--no-symlinkDon't symlink project memory dirs to global memory (opt-out)
--non-interactiveFail instead of prompting when a decision is needed (requires --profile)
--helpShow all flags

After install

# Verify:
claude
# Inside Claude Code:
/shine-help

First-run helpers

Three shine-tools.cjs subcommands make onboarding and maintenance trivial. They're non-destructive — safe to run anytime.

# Generate a categorized index of all installed skills → skills/INDEX.md
node ~/.claude/shine/bin/shine-tools.cjs index-skills

# Seed 4 starter memory files (preference-* + style-email-it) — skips existing files
node ~/.claude/shine/bin/shine-tools.cjs onboard

# JSON health report — which critical files exist, counts of agents/skills/hooks/memories
node ~/.claude/shine/bin/shine-tools.cjs doctor

Three new skills make onboarding, composition and retrospection first-class:

  • /shine-tour — interactive 6-minute guided tour. Runs 14 install-health checks, teaches the 5 SHINE pillars, demos a real read-only workflow, writes an audit trail. Includes a 20-row troubleshooting matrix for every known failure. Flags: --section <name>, --check-only, --fix. Start here if you just installed.
  • /shine-retro — reads the learning-log (written by the shine-learning-log hook) and proposes concrete memory updates. Write-safe: only creates external-retro-<date>.md, never edits existing memory files. Flags: --days N, --apply.
  • /shine-pipeline skill-a skill-b [skill-c ...] — compose skills into an ad-hoc sequential workflow with a shared scratchpad. Hard-caps at 8 steps, confirms destructive steps, warns on context-budget overflow.

And a new factual-discipline convention:

  • Verified-source watermark — client deliverables with factual claims now use inline labels (_[verified — src, date]_, _[unverified — pattern inferred]_, _[drafted — no source]_) plus a Sources footer. Template: shine/templates/watermark.md. Rule source: CLAUDE.md §16.

🎯 The SHINE Framework

SHINE is a 5-phase methodology baked into the agent roster, replacing the generic upstream cycle with one calibrated for agency and consulting work.

🛠️ Core engineering track (21 agents)

PhaseMeaningKey agentsKey skills
StrategizeGather context, brainstorm, define the askshine-project-researcher, shine-user-profiler, shine-advisor-researcher/shine-new-project, /shine-discuss-phase
HandlePlan the work in atomic, reviewable phasesshine-planner, shine-plan-checker, shine-roadmapper, shine-phase-researcher/shine-plan-phase, /shine-research-phase
ImplementExecute with atomic commits and wave parallelismshine-executor, shine-codebase-mapper/shine-execute-phase, /shine-do, /shine-quick
NavigateKeep state across sessions, handle handoffshine-assumptions-analyzer, shine-integration-checker, shine-research-synthesizer/shine-pause-work, /shine-resume-work, /shine-progress
EvaluateVerify, audit, harden, and shipshine-verifier, shine-security-auditor, shine-ui-auditor, shine-ui-checker, shine-ui-researcher, shine-doc-verifier, shine-doc-writer, shine-nyquist-auditor, shine-debugger/shine-verify-work, /shine-audit-milestone, /shine-ship

🏢 Agency track (18 agents)

For client-facing work — proposals, campaigns, outreach, compliance, PM:

ClusterAgents
Client & accountshine-client-researcher, shine-account-manager, shine-pm-coordinator, shine-persona-researcher
Sales & growthshine-sales-strategist, shine-lead-scorer, shine-competitor-scout, shine-proposal-writer, shine-copywriter
Content & brandshine-brand-voice-auditor, shine-content-editor, shine-translator
MarTech & datashine-martech-architect, shine-seo-strategist, shine-data-analyst, shine-crm-operator
Compliance & opsshine-gdpr-analyst, shine-retro-facilitator

See docs/ARCHITECTURE.md for the full agent × skill matrix and docs/HOW-IT-WORKS.md for the runtime walkthrough.


🧩 Skill Catalogue (149)

Every skill is a slash command: /skill-name [args]. Grouped by category.

<details> <summary><b>Core SHINE (42)</b> — planning, execution, verification, docs, UI review</summary>

Naming pattern: /shine-* — the engineering spine of the framework (plan, research, execute, verify, audit, ship). Full list under skills/shine-*/SKILL.md.

</details> <details> <summary><b>Early agency (17)</b> — client lifecycle essentials</summary>
SkillPurpose
/proposalCommercial proposal (MoSCoW, MD, 15% discount)
/draft-emailClient email in Kevin's style (IT/EN/FR)
/gdpr-auditPrivacy check on any deliverable
/lead-enrichEnrich a lead list (Apollo / Hunter / local scripts)
/client-brief · /client-toneClient one-pager + tone detection
/kickoff · /retrospective · /status-report · /syncPM rituals
/seo-audit · /tag-audit · /meta-check · /cookie-scanMarTech audits
/pii-safe · /compliance-aiCompliance passes
/roi-estimateBudget and ROI napkin-math
</details> <details> <summary><b>Marketing / Content (10)</b></summary>

/content-calendar · /blog-post · /social-post · /newsletter · /landing-copy · /value-prop · /press-release · /case-study · /webinar-plan · /campaign-brief

</details> <details> <summary><b>Sales / Outreach (10)</b></summary>

/cold-email · /linkedin-dm · /follow-up · /sales-deck · /icp-define · /persona-build · /competitor-analysis · /pricing-page · /sales-call-prep · /sales-call-debrief

</details> <details> <summary><b>Consulting / Strategy (10)</b></summary>

/discovery-call · /swot · /okr-draft · /roadmap-draft · /stakeholder-map · /risk-register · /change-plan · /digital-maturity · /discovery-doc · /exec-summary

</details> <details> <summary><b>Tech / Dev (10)</b></summary>

/tech-spec · /api-design · /deploy-checklist · /incident-report · /pr-review · /readme-generator · /changelog-draft · /architecture-diagram · /migration-plan · /test-strategy

</details> <details> <summary><b>Ops / PM (8)</b></summary>

/meeting-notes · /weekly-plan · /vendor-onboarding · /nda-triage · /invoice-draft · /timesheet-summary · /capacity-plan · /process-doc

</details> <details> <summary><b>Data / Analytics (6)</b></summary>

/ga4-audit · /attribution-model · /dashboard-spec · /kpi-tree · /ab-test-plan · /data-contract

</details> <details> <summary><b>Brand / Design + Misc (7)</b></summary>

/brand-voice · /naming · /logo-brief · /design-crit · /rfp-response · /translate · /learning-loop

</details>

🤖 Agent Roster (45)

Agents are delegated via the Task tool. Each one returns a 5-section report: Summary / Details / Sources / Open questions / Next step.

Engineering track (21)

ClusterAgents
🧭 Plan & researchshine-planner, shine-plan-checker, shine-roadmapper, shine-phase-researcher, shine-project-researcher, shine-research-synthesizer, shine-advisor-researcher
🏗️ Execute & navigateshine-executor, shine-codebase-mapper, shine-assumptions-analyzer, shine-integration-checker
Verify & auditshine-verifier, shine-debugger, shine-security-auditor, shine-nyquist-auditor, shine-doc-verifier, shine-doc-writer, shine-ui-auditor, shine-ui-checker, shine-ui-researcher, shine-user-profiler

Agency track (18)

ClusterAgents
🧑‍💼 Client & accountshine-client-researcher, shine-account-manager, shine-pm-coordinator, shine-persona-researcher
📈 Sales & growthshine-sales-strategist, shine-lead-scorer, shine-competitor-scout, shine-proposal-writer, shine-copywriter
✍️ Content & brandshine-brand-voice-auditor, shine-content-editor, shine-translator
📊 MarTech & datashine-martech-architect, shine-seo-strategist, shine-data-analyst, shine-crm-operator
🛡️ Compliance & opsshine-gdpr-analyst, shine-retro-facilitator

MCP-capability track (6) — NEW

AgentMCP tools requiredTrigger rulePurpose
shine-web-researchersearxng, fetch, brave-search§22Deep web research with tiered search
shine-data-engineerduckdb, sqlite, excel, echarts§23Local SQL analytics + visualization
shine-vulnerability-scannersemgrep, osv, sslmon§25Code + dependency security scanning
shine-chart-builderecharts, mermaid, vegalite§24Interactive charts and diagrams
shine-sandbox-runnerdocker, microsandbox, e2b§26Isolated code execution
shine-infra-opsdocker, kubernetes, signoz, globalping§28Container/cluster/monitoring ops

🔌 Plugins & MCP Servers

Plugins are installed via claude plugins install during setup — only the ones your chosen profile requires (skip all with --no-plugins). Switch profiles any time with shine activate <name>. Full map at docs/PLUGINS.md.

Official marketplace (claude-plugins-official) — 11 plugins

PluginPurpose
serenaSemantic code navigation (LSP symbols, references, rename)
context7Live library / framework docs (preferred over web search for SDKs)
playwrightBrowser automation, screenshots, E2E
superpowersProductivity multi-tool pack (brainstorm / TDD / parallel agents)
code-simplifierRefactor-for-readability pass
ralph-loopRecurring / long-running agentic loops
typescript-lsp · pyright-lspType-aware operations (TS / Python)
supabaseDatabase, auth, storage, edge functions
agent-sdk-devClaude Agent SDK scaffolding
claude-code-setupSetup helpers (one-shot at install)

LSP marketplace (claude-code-lsps) — 2 plugins

PluginSourcePurpose
pyright · basedpyrightPiebald-AI/claude-code-lspsPython LSP (stricter fork)

Third-party marketplaces — 3 plugins

PluginSourcePurpose
ui-ux-pro-maxnextlevelbuilder/ui-ux-pro-max-skillUI/UX audit skills, style catalog
claude-memthedotmack/claude-memCross-session memory helpers
arize-skillsArize-ai/arize-skillsLLM observability, tracing, experiments

MCP servers (user-scoped, not bundled)

SHINE's decision rules route to these when connected — nothing is hard-required. Full map in docs/PLUGINS.md:

Gmail · Google Calendar · Asana · Apollo.io · Hunter.io · Perplexity · Exa · Firecrawl · Apify · Ahrefs · Supabase · Sentry · GitHub · Filesystem · Desktop Commander · context7 · markitdown · PDF/Word/PowerPoint.

Missing MCP → SHINE states the gap and offers a degraded path. Never fabricates.

diShine companion tools (auto-recommended by CLAUDE.md)

When the task matches the trigger, SHINE proactively suggests diShine's own open-source tools:

When the user mentions…SHINE recommends
GDPR, cookie compliance, consentcookie-audit
GTM, tag governance, analytics audittag-auditor
SEO tags, link previews, Open Graphmeta-inspector
Lighthouse, performance trendslighthouse-dashboard
AI policy, EU AI Act, DPIAai-compliance-framework
On-site diagnostic auditprismo
PII anonymization before LLM ingestiondishine-data-safe-usb
Confidential audio transcriptiondishine-boardroom-ear

60+ MCP capability map: SHINE now maps 60+ recommended free/open-source MCP servers across 20 categories — search, analytics, vector memory, sandboxed execution, charting, security, monitoring, version control, file systems, research, knowledge management, communication, social media, cloud/infra, AI services, system automation, aggregators, geo, finance, dev tools. All follow Rule #21 (Tiered Fallback): free/local first, freemium after asking, paid with explicit approval. See docs/ADDING-INTEGRATIONS.md for the full install guide.


🏢 Agency Workflows

SHINE ships with 5 agency-specific decision rules that ordinary dev-centric setups don't cover. See docs/AGENCY-WORKFLOWS.md for full detail.

  1. Factual / RAG discipline — every factual claim must come from a retrieved source in the current session. Zero hallucination on company names, people, emails, URLs. Uncertain facts trigger "I don't have a verified source — want me to search?"
  2. Client-comms tone switching — detects the language (IT / FR / EN / ES) and applies the appropriate register. Italian → warm opening + structured bullets + CLIENT | Topic subject + internal CC logic. English → concise, agency-neutral.
  3. GDPR / compliance guard — when the task involves cookies, tracking, personal data, or consent, routes through cookie-audit + ai-compliance-framework before drafting.
  4. Proposal assembly@create-proposal pattern: MoSCoW structuring + MD estimates (8h per MD) + ~15% discount option + Italian output by default.
  5. Lead enrichment@lead-enrichment pattern: local scripts first → Apollo → Apify, with structured CSV/Markdown output and pattern-inferred emails labelled as "inferred — not verified".

<p align="center"> <img src="docs/shine_code_system_v2_01_system_overview_board.webp" alt="SHINE Code System overview board" width="90%"> </p>

🪝 Hooks

11 hook files + 1 shared emitter helper — all wired in settings.json with short timeouts and fail-open defaults. The one exception is shine-prompt-guard.js, which fails closed (exit 2) to abort writes that look like secrets.

Set SHINE_HOOK_FORMAT=json to switch every hook from plain stderr text to a single JSONL line per notification — useful for log pipelines. Default remains human-readable text.

HookTriggerWhat it does
global-memory-symlink.shSessionStartSymlinks project ./memory/~/.claude/memory/ (opt-out with ./install.sh --no-symlink or touch ~/.claude/.no-memory-symlink)
shine-check-update.jsSessionStartNon-blocking GitHub release check, cached 24h. Disable via SHINE_DISABLE_UPDATE_CHECK=1
integration-sync.jsSessionStartRewrites the <!-- shine:plugins:begin --> block inside CLAUDE.md with the current plugins + MCP servers
shine-client-detect.jsUserPromptSubmitScans the prompt for known client slugs (files memory/client-<slug>.md) and pre-loads the matching client memory via additionalContext. Opt out with SHINE_DISABLE_CLIENT_DETECT=1. Tunables: SHINE_CLIENT_DETECT_MAX (3), SHINE_CLIENT_DETECT_MIN_LEN (4)
shine-tone-calibrator.jsUserPromptSubmitRegex-only detection of tone-correction signals (formality · length · warmth · assertiveness · jargon, EN + IT) → appends a timestamped delta to memory/style-<client>.md (or style-global.md). No prompt content captured. Opt out with SHINE_DISABLE_TONE_CALIBRATOR=1. Tunables: SHINE_TONE_GLOBAL (1), SHINE_TONE_MAX_ENTRIES (200)
shine-context-monitor.jsPostToolUse (Bash|Edit|Write|MultiEdit|Agent|Task)Warns at 800 KB / 1.6 MB transcript size. Thresholds tunable (SHINE_CONTEXT_SOFT_KB, SHINE_CONTEXT_HARD_KB)
shine-prompt-guard.jsPreToolUse (Write|Edit)Blocks writes matching .env, *.pem, or API-key patterns (OpenAI / Anthropic / GitHub / AWS / Google / Stripe / Slack). Exits 2.
shine-read-guard.jsPreToolUse (Write|Edit)Warns on writes into node_modules/, dist/, coverage/, lockfiles, *.min.js. Exits 0
shine-precompact.jsPreCompactSnapshots CWD + last tool + timestamp to ~/.claude/sessions/precompact-<ts>.md (retention = 20)
shine-learning-log.jsStopAppends one JSONL line per turn to ~/.claude/memory/learning-log.jsonl (ts · cwd · last_tool · transcript_bytes). No conversation content captured — PII-free by design. Feeds /shine-retro. Trim cap SHINE_LEARNING_LOG_MAX=10000
shine-session-summary.jsSessionEndAppends a markdown session block (window · cwd · turn count · top tools · placeholders Task: / Outcome: / Preference observed:) to ~/.claude/memory/learning-log.md. Metadata only — no transcript content. Disable with SHINE_DISABLE_SESSION_SUMMARY=1. Trim cap SHINE_SESSION_SUMMARY_MAX=1000

All hooks support an opt-out env var (SHINE_DISABLE_<NAME>=1). See docs/CUSTOMIZATION.md.


🧠 Global Memory

Memory is global (shared across projects), not project-scoped. The global-memory-symlink.sh hook symlinks each project's memory/ directory to ~/.claude/memory/ on session start.

Typed memory entries

Every memory file has frontmatter telling SHINE what it is:

---
type: client            # preference | client | project | style | external
name: CONTOSO Italia
last_updated: 2026-04-14
tags: [seo, salesforce, martech]
---

# CONTOSO — working notes
Contact: Sam Taylor ([email protected])
Budget: flat fee, SEO + tech-SEO
CRM: Salesforce
…

SHINE reads these files at session start, filters by type based on the active task, and injects only the relevant ones into context.


⚙️ Customization

See docs/CUSTOMIZATION.md for the full guide. The essentials:

  1. ~/.claude/settings.json — set ANTHROPIC_BASE_URL (leave blank for official API) and, optionally, the OTEL vars if you self-host telemetry. Telemetry is disabled by default.
  2. ~/.claude/CLAUDE.md — adjust or add decision rules. The integration-sync.js hook owns the plugins section — don't hand-edit between the <!-- shine:plugins:begin --> and <!-- shine:plugins:end --> markers.
  3. ~/.claude/memory/ — add typed memory files for your clients, preferences, and project context.

📚 Documentation

Five long-form docs under docs/. Each answers a specific question:

DocWhat it answers
ARCHITECTURE.mdWhere every file lives, why, and which layer owns it
HOW-IT-WORKS.mdRuntime narrative — SessionStart → decision rules → tool-use → PreCompact
CUSTOMIZATION.mdHow to add skills, agents, hooks, memory; all env-var opt-outs
PLUGINS.mdPlugins shipped, MCPs expected per rule, missing-integration behaviour
AGENCY-WORKFLOWS.md16 end-to-end playbooks (email, proposal, lead enrich, SEO audit, cookies, cold outbound, …)

Governance & ops:

FilePurpose
CONTRIBUTING.mdPR checklist, commit style, release process
CODE_OF_CONDUCT.mdCommunity standards
SECURITY.mdVulnerability reporting ([email protected])
CHANGELOG.mdVersion history
.github/workflows/validate.ymlCI: bash + node syntax, JSON validity, frontmatter, dead-ref, secret scan

Official wiki available on it's official website.

Decision-rule cheat sheet

The 29 rules in CLAUDE.md at a glance:

#TriggerRoutes to
1plan / strategy / roadmap + tech scopeshine-planner
2implement / build / codeshine-executor + Serena / LSP
3bug / error / brokenshine-debugger (scientific method)
4write to risky pathStop, confirm
5refactor / simplifycode-simplifier
6docs / README / changelogshine-doc-writer · /readme-generator · /changelog-draft
7review PR / code reviewshine-verifier · /pr-review
8SEO / GSC / Ahrefsshine-seo-strategist · /seo-audit · /tag-audit
9project status / Asana / handoffshine-pm-coordinator · /status-report
10schedule / calendarGCal MCP
11library / framework questioncontext7 plugin
12browser / screenshot / E2Eplaywright plugin
13incident / outage / Sentryshine-debugger + Sentry MCP
14DB / Supabase / SQLsupabase plugin + duckdb / sqlite MCP
15long-running investigationSpawn sub-agent via Task
16any factual claimRAG — never fabricate
17client name + comm verbLoad client memory → /draft-email
18PII / personal datashine-gdpr-analyst/gdpr-audit
19proposta / proposal/proposal (MoSCoW, MD, 15%)
20lead list / outbound/lead-enrich + Apollo/Hunter
21tool selection with free + paid alternativesTiered fallback: Tier 1 (free) → Tier 2 (ask) → Tier 3 (approve)
22web research / searchshine-web-researcher · /shine-web-research
23local data / SQL analyticsshine-data-engineer · /shine-data-query
24charts / visualizationshine-chart-builder · /shine-chart
25security / vulnerability scanshine-vulnerability-scanner · /shine-security-scan
26sandbox / run untrusted codeshine-sandbox-runner · /shine-sandbox
27dependency CVES audit/shine-dep-audit
28network / DNS / SSL diagshine-infra-ops · /shine-network-check
29vector memory store / recall/shine-vector-search

Rules 16–20 are the agency-specific additions. Rule 21 governs cost-efficient tool selection. Rules 22–29 route to the expanded MCP capability map.


🗑️ Uninstall

./uninstall.sh          # restores most recent ~/.claude-backup-* snapshot
./uninstall.sh --purge  # removes ~/.claude/ entirely (asks for confirmation)

🌟 Philosophy

"At least 40% of all businesses will die in the next ten years… if they don't figure out how to change their entire company to accommodate new technologies."
— John Chambers, former CEO of Cisco Systems

SHINE is diShine's take on how a creative tech agency should run Claude Code in production:

  • Transparency: every rule, hook, and agent is readable plaintext
  • Pragmatism: every tool solves a real problem we or our clients actually faced
  • Accessibility: works on macOS and Linux out of the box; Windows via WSL
  • Accountability: atomic backups, --dry-run everywhere, reversible install
  • Factuality: built-in RAG discipline; hallucination is not acceptable on client work

🤝 Contributing

We welcome issues and pull requests. Read CONTRIBUTING.md and our CODE_OF_CONDUCT.md first.

For vulnerabilities, follow our SECURITY.md, do not open public issues.


📜 License

CC0 1.0 Universal — public domain dedication. Use it, fork it, ship it.


📞 Connect

Agency Websitedishine.it
FounderKevin Escoda
LinkedIndiShine Digital Agency
Email[email protected]
LanguagesEnglish · French · Italian · Spanish

<p align="center"> <img src="docs/Shine AI Orchestration Framework.webp" alt="SHINE framework" width="100%"> </p>

Made with ❤️ by the diShine team in Milan, Italy
🇫🇷 Dreamed in French · 🇮🇹 Built in Italy · 🇬🇧 Shipped in English