본문으로 건너뛰기
cccskills
무료GitHub에 공개

inventory_management

Use a defined database structure and business rules to query products, warehouses, stock levels, and stock movements. It supports inventory checks and SQL for identifying products whose combined warehouse stock has reached the reorder threshold.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Database schema and business logic for inventory tracking including products, warehouses, and stock levels.

설치 방법 보기

이럴 때 유용합니다

  • Checking stock quantities by product and warehouse
  • Finding products at or below their reorder threshold
  • Understanding records for stock movements
  • Excluding discontinued products from routine analysis

포함된 파일(1)

  • SKILL.md1.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Inventory Management Schema

Tables

products

  • product_id (PRIMARY KEY)
  • product_name
  • sku
  • category
  • unit_cost
  • reorder_point (minimum stock level before reordering)
  • discontinued (boolean)

warehouses

  • warehouse_id (PRIMARY KEY)
  • warehouse_name
  • location
  • capacity

inventory

  • inventory_id (PRIMARY KEY)
  • product_id (FOREIGN KEY -> products)
  • warehouse_id (FOREIGN KEY -> warehouses)
  • quantity_on_hand
  • last_updated

stock_movements

  • movement_id (PRIMARY KEY)
  • product_id (FOREIGN KEY -> products)
  • warehouse_id (FOREIGN KEY -> warehouses)
  • movement_type (inbound/outbound/transfer/adjustment)
  • quantity (positive for inbound, negative for outbound)
  • movement_date
  • reference_number

Business Logic

Available stock: quantity_on_hand from inventory where quantity_on_hand > 0

Products needing reorder: total quantity_on_hand across warehouses <= product's reorder_point

Active products only: Exclude discontinued = true unless analyzing discontinued items

Example Query

-- Find products below reorder point
SELECT p.product_id, p.product_name, p.reorder_point, SUM(i.quantity_on_hand) as total_stock
FROM products p
JOIN inventory i ON p.product_id = i.product_id
WHERE p.discontinued = false
GROUP BY p.product_id, p.product_name, p.reorder_point
HAVING SUM(i.quantity_on_hand) <= p.reorder_point;

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use defined customer and order tables to build sales analysis queries with consistent business rules. Calculate revenue from completed orders, rank customers by spending, and identify high-value orders using the supplied thresholds and SQL example.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Ranking the top ten customers by revenue over three months
  • Calculating revenue from completed orders
  • Finding orders with a total amount above 1,000
alibaba/spring-ai-alibaba1.1만2026년 10월 7일 업데이트

alibaba의 스킬 모두 보기

이 스킬의 문제 신고