Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

canny

БесплатноБез исполняемых скриптовНе проверен

Canny is a hosted product-feedback tool with feature-request boards, voting, a public roadmap and a changelog. Use when a user asks to set up a feature…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Canny

Overview

Canny collects product feedback: users post ideas to boards, vote, comment and follow status changes, while your team triages, links ideas to Jira/Linear and publishes a roadmap and changelog. You integrate in three ways: a link to your Canny site (your-company.canny.io) or an embedded widget, the browser SDK that identifies the logged-in user, and the REST API plus webhooks on your server. Docs: https://developers.canny.io

Instructions

Step 1: Link to your board and identify users

Put a link carrying data-canny-link where users will find it (the attribute is required, otherwise the visitor is not authenticated), and load the SDK and call identify for logged-in users. Admins are never identified, so test with a non-admin account.

<a data-canny-link href="https://northwind-app.canny.io">Give feedback</a>
// components/CannyIdentify.tsx
'use client'
import Script from 'next/script'
import { useEffect } from 'react'

declare global { interface Window { Canny: (...args: unknown[]) => void } }

type Viewer = {
  id: string; email: string; name: string; avatarUrl?: string
  createdAt: string; plan: string; cannyHash: string // HMAC computed on the server
}

export function CannyIdentify({ viewer }: { viewer: Viewer }) {
  useEffect(() => {
    window.Canny?.('identify', {
      appID: process.env.NEXT_PUBLIC_CANNY_APP_ID,
      user: {
        id: viewer.id,
        email: viewer.email,
        name: viewer.name,
        avatarURL: viewer.avatarUrl,
        created: new Date(viewer.createdAt).toISOString(),
        customFields: { plan: viewer.plan },
      },
      hash: viewer.cannyHash,
    })
  }, [viewer])
  return <Script src="https://sdk.canny.io/sdk.js" strategy="afterInteractive" />
}

If the Canny function is not defined yet when the effect runs, use the loader snippet from https://developers.canny.io/install, which queues calls until the SDK arrives.

Step 2: Sign identify requests

In the admin security settings, "Identify security" makes Canny reject identify calls without a per-user hash, which prevents impersonation. Compute it on the server with your secret API key (from company settings, never shipped to the browser):

// lib/canny-hash.ts
import crypto from 'node:crypto'

export function cannyHash(userId: string): string {
  return crypto.createHmac('sha256', process.env.CANNY_API_KEY!).update(userId).digest('hex')
}

Roll out the hash first, then switch the setting on. Companies (with monthlySpend) can be sent in user.companies inside identify to segment feedback by revenue.

Step 3: Embed the widget (optional)

The widget is an advanced option; Canny recommends linking to the full site for most apps. For a widget, add an empty div with a data-canny attribute and call Canny('render', { boardToken, basePath, ssoToken, theme }) (theme is light, dark or auto). basePath syncs URLs, for example '/feedback', and your router must serve /feedback/* on the same page. Private boards require an ssoToken generated on your server (https://developers.canny.io/install/widget/sso).

Step 4: Use the REST API

Every call is a POST to https://canny.io/api/v1/... with a JSON body (or form fields) containing apiKey, and Content-Type: application/json. Create the author first: users/create_or_update returns Canny's own id, which is what authorID and voterID expect, not your application user id.

// lib/canny.ts
const BASE = 'https://canny.io/api/v1'

async function canny<T>(path: string, body: Record<string, unknown>): Promise<T> {
  const res = await fetch(`${BASE}/${path}`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ apiKey: process.env.CANNY_API_KEY, ...body }),
  })
  if (res.status === 429) throw new Error(`Rate limited, retry after ${res.headers.get('Retry-After')}s`)
  if (!res.ok) throw new Error(`Canny ${path} failed: ${res.status} ${await res.text()}`)
  return res.json() as Promise<T>
}

export async function submitIdea(user: { id: string; email: string; name: string }, boardID: string) {
  const author = await canny<{ id: string }>('users/create_or_update', {
    userID: user.id, email: user.email, name: user.name,
  })
  return canny<{ id: string }>('posts/create', {
    authorID: author.id,
    boardID,
    title: 'Dark mode for the dashboard',
    details: 'Our night-shift dispatchers want a dark theme for the live map.',
    customFields: { source: 'support-ticket' },
  })
}

export function topPosts(boardID: string) {
  return canny<{ posts: { id: string; title: string; score: number; status: string }[]; hasMore: boolean }>(
    'posts/list', { boardID, sort: 'score', limit: 20, status: 'open,under review' })
}

export function markPlanned(postID: string, adminID: string) {
  return canny('posts/change_status', {
    postID, changerID: adminID, status: 'planned', shouldNotifyVoters: true,
Полный SKILL.md на GitHub

Установить canny в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл canny?

Canny is a hosted product-feedback tool with feature-request boards, voting, a public roadmap and a changelog. Use when a user asks to set up a feature request board, identify logged-in users in Canny, embed the feedback widget, create or list posts through the Canny API, change a post's status, or verify Canny webhooks.

Как установить скилл canny?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл canny запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить canny с