Skip to content

LeoYeAI/agent-master-skills / skills/backstage

backstage

Verified

Anti-drift protocol script. Ensures parity between docs and system. Triggers: 'bom dia PROJECT' / 'good morning PROJECT' (load project context with health checks)

FileKindSize
SKILL.mdskill md21.6 KB
_meta.jsonconfig813 B
backstage.shscript1.6 KB
checks.shscript7.1 KB
contract.htmlother7.3 KB
parse-roadmap.shscript727 B
update-backstage.shscript3.8 KB

contract.html

View on GitHub
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Architecture Contract</title>
  
  <!-- Mermaid -->
  <script type="module">
    import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
    mermaid.initialize({ startOnLoad: false });
    window.mermaid = mermaid;
    window.mermaidReady = true;
  </script>
  
  <!-- Marked.js for Markdown -->
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
  
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      line-height: 1.6;
      color: #333;
      background: #fff;
      padding: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    h1, h2, h3, h4 { margin-top: 1.5em; margin-bottom: 0.5em; }
    h1 { font-size: 2em; border-bottom: 2px solid #eee; padding-bottom: 0.3em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.25em; }
    
    p { margin-bottom: 1em; }
    
    code {
      background: #f5f5f5;
      padding: 0.2em 0.4em;
      border-radius: 3px;
      font-family: 'SF Mono', Monaco, monospace;
      font-size: 0.9em;
    }
    
    pre {
      background: #f5f5f5;
      padding: 1em;
      border-radius: 5px;
      overflow-x: auto;
      margin-bottom: 1em;
    }
    
    pre code {
      background: none;
      padding: 0;
    }
    
    table {
      border-collapse: collapse;
      width: 100%;
      margin-bottom: 1em;
    }
    
    th, td {
      border: 1px solid #ddd;
      padding: 8px 12px;
      text-align: left;
    }
    
    th {
      background: #f5f5f5;
      font-weight: 600;
    }
    
    /* Mermaid variables */
    :root {
      /* Default (neutral, not discussed) */
      --default-bg: #f5f5f5;
      --default-border: #999;
      
      /* Approved (agreed, ready for dev) */
      --approved-bg: #C8E6C9;
      --approved-border: #388E3C;
      
      /* Blocker (needs discussion or failed) */
      --blocker-bg: #FFCDD2;
      --blocker-border: #D32F2F;
      
      /* Developed (implemented, ready for testing) */
      --developed-bg: #BBDEFB;
      --developed-border: #1976D2;
      
      /* Developed+ (implemented but needs discussion) */
      --developed+-bg: #FFE082;
      --developed+-border: #F57C00;
      
      /* Partial (node works, some paths fail) */
      --partial-bg: #E1BEE7;
      --partial-border: #7B1FA2;
    }
    
    /* Node defaults (all shapes) */
    .node rect,
    .node circle,
    .node polygon,
    .node path {
      fill: var(--default-bg);
      stroke: var(--default-border);
      stroke-width: 2px;
    }
    
    /* Status classes */
    .node.default rect,
    .node.default circle,
    .node.default polygon,
    .node.default path {
      fill: var(--default-bg);
      stroke: var(--default-border);
    }
    
    .node.approved rect,
    .node.approved circle,
    .node.approved polygon,
    .node.approved path {
      fill: var(--approved-bg);
      stroke: var(--approved-border);
    }
    
    .node.blocker rect,
    .node.blocker circle,
    .node.blocker polygon,
    .node.blocker path {
      fill: var(--blocker-bg);
      stroke: var(--blocker-border);
    }
    
    .node.developed rect,
    .node.developed circle,
    .node.developed polygon,
    .node.developed path {
      fill: var(--developed-bg);
      stroke: var(--developed-border);
    }
    
    .node.developed\\+ rect,
    .node.developed\\+ circle,
    .node.developed\\+ polygon,
    .node.developed\\+ path {
      fill: var(--developed+-bg);
      stroke: var(--developed+-border);
    }
    
    .node.partial rect,
    .node.partial circle,
    .node.partial polygon,
    .node.partial path {
      fill: var(--partial-bg);
      stroke: var(--partial-border);
    }
    
    /* Edge labels */
    .edgeLabel {
      background: #CECECE !important;
      color: #000 !important;
      border: 2px solid #9E9E9E !important;
      border-radius: 10px !important;
      padding: 5px 10px !important;
      font-weight: 500 !important;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .mermaid {
      margin: 2em 0;
      text-align: center;
    }
  </style>
</head>
<body>
  <div id="content">Loading...</div>
  
  <script>
    const urlParams = new URLSearchParams(window.location.search);
    const mdFile = urlParams.get('md') || 'contract.md';
    
    console.log('Loading MD file:', mdFile);
    
    fetch(mdFile + '?t=' + Date.now())
      .then(response => {
        console.log('Response status:', response.status);
        if (!response.ok) {
          throw new Error(`HTTP ${response.status}: ${response.statusText}`);
        }
        return response.text();
      })
      .then(markdown => {
        console.log('Markdown loaded, length:', markdown.length);
        
        // Render markdown FIRST
        const htmlContent = marked.parse(markdown);
        document.getElementById('content').innerHTML = htmlContent;
        
        console.log('Markdown rendered');
        
        // THEN convert code blocks to mermaid
        document.querySelectorAll('code.language-mermaid').forEach(codeBlock => {
          const pre = codeBlock.parentElement;
          const mermaidCode = codeBlock.textContent;
          
          // Replace <pre><code class="language-mermaid"> with <pre class="mermaid">
          const newPre = document.createElement('pre');
          newPre.className = 'mermaid';
          newPre.textContent = mermaidCode;
          pre.replaceWith(newPre);
        });
        
        console.log('Mermaid blocks converted');
        
        // Wait for Mermaid to be ready, then initialize
        function initMermaid() {
          if (window.mermaidReady && window.mermaid) {
            window.mermaid.run();
            console.log('Mermaid initialized!');
          } else {
            setTimeout(initMermaid, 50);
          }
        }
        initMermaid();
      })
      .catch(error => {
        console.error('Error:', error);
        document.getElementById('content').innerHTML = `
          <h1>Error Loading Contract</h1>
          <p>Could not load <code>${mdFile}</code></p>
          <p><strong>Error:</strong> ${error.message}</p>
          <p>Make sure the file exists and the localhost server is running.</p>
          <pre>cd ~/Documents/librarian/backstage/epic-notes
python3 -m http.server 8765</pre>
          <p><strong>Debug:</strong> Check browser console (F12) for details.</p>
        `;
      });
    
    // Hot reload (connects to watch-reload.py WebSocket server)
    function connectHotReload() {
      const ws = new WebSocket('ws://localhost:8767');
      
      ws.onopen = () => {
        console.log('πŸ”₯ Hot reload connected');
      };
      
      ws.onmessage = (event) => {
        if (event.data === 'reload') {
          console.log('πŸ“ File changed, reloading...');
          location.reload();
        }
      };
      
      ws.onclose = () => {
        console.log('❌ Hot reload disconnected, retrying in 2s...');
        setTimeout(connectHotReload, 2000);
      };
      
      ws.onerror = (error) => {
        console.log('⚠️ Hot reload not available (run watch-reload.py to enable)');
      };
    }
    
    connectHotReload();
  </script>
</body>
</html>
rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product β€” it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product β€” not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial β€” a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
claude-apianthropics/skillsReference for the Claude API / Anthropic SDK β€” model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER β€” read BEFORE opening the target file; don't skip because it "looks like a one-liner" β€” whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) β€” never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named β€” don't Read the file).Stars: 198kUpdated Claude CodeCodexUnverifiedInstall
doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.Stars: 198kUpdated Claude CodeCodexVerifiedInstall